@charset "utf-8";

/*
   Final Project
   Author: Ashikur Prodhan
   Business: Legends Vault
*/

html {
   background-image: url("background.jpg");
   background-size: cover;
   background-position: center center;
   background-attachment: fixed;
}

body {
   width: 90%;
   margin-left: auto;
   margin-right: auto;
   background-color: rgba(255, 255, 255, 0.70);
   border: 3px solid #1e3a5f;
   color: #222222;
   font-family: Arial, Helvetica, sans-serif;
}

header {
   background: linear-gradient(to right, #111827, #1e3a5f);
   color: white;
   text-align: center;
   padding: 30px 15px;
   border-bottom: 5px solid #f4a261;
}

header img {
   width: 100%;
   height: 250px;
   object-fit: cover;
   display: block;
}

header h1 {
   font-size: 3em;
   letter-spacing: 3px;
   margin: 0;
}

header h2 {
   color: #f4a261;
   text-shadow: none;
   margin: 8px 0;
}

header p {
   margin: 0;
   font-size: 1.1em;
}

nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
   overflow: hidden;
}

nav li {
   float: left;
   width: 33.33%;
}

nav a {
   display: block;
   background-color: #23395d;
   color: white;
   text-align: center;
   text-decoration: none;
   line-height: 3.8em;
   font-size: 18px;
   font-weight: bold;
   letter-spacing: 1px;
}

nav a:hover {
   background-color: #f4a261;
   color: black;
   font-size: 1.1em;
   transition:
      background-color 0.5s ease-in 0.2s,
      color 0.5s ease-in 0.2s,
      font-size 1s ease;
}

main {
   clear: both;
   padding: 25px;
   background-color: rgba(255, 255, 255, 0.92);
}

main h1 {
   position: absolute;
   left: -9999px;
}

h2, h3 {
   color: #1e3a5f;
}

.hero {
   background: linear-gradient(to right, #f8f9fa, #ffffff);
   padding: 35px;
   border-left: 8px solid #f4a261;
   border-radius: 10px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
   margin-bottom: 30px;
}

.hero h2 {
   font-size: 2.3em;
   margin-top: 0;
}

.hero p {
   font-size: 1.1em;
   line-height: 1.7;
}

.button {
   display: inline-block;
   background-color: #f4a261;
   color: black;
   padding: 18px 35px;
   text-decoration: none;
   margin-top: 15px;
   font-size: 18px;
   font-weight: bold;
   border-radius: 8px;
   transition: 0.3s;
}

.button:hover {
   background-color: #ffd27f;
   color: black;
}

.gallery {
   display: flex;
   flex-wrap: wrap;
}

.galleryItem {
   flex: 25%;
   max-width: 25%;
   padding: 12px;
   box-sizing: border-box;
}

.galleryItem img {
   width: 100%;
   height: 350px;
   object-fit: cover;
   display: block;
   border: 2px solid #1e3a5f;
   border-radius: 8px;
   transition: 0.3s;
}

.galleryItem img:hover {
   transform: scale(1.03);
}

.galleryItem p {
   text-align: center;
   font-weight: bold;
   color: #1e3a5f;
}

table {
   width: 100%;
   border-collapse: collapse;
   margin-top: 20px;
   background-color: white;
}

th, td {
   border: 1px solid #1e3a5f;
   padding: 10px;
   text-align: left;
}

thead {
   background-color: #1e3a5f;
   color: white;
}

tfoot {
   background-color: #23395d;
   color: white;
   font-weight: bold;
   text-align: center;
}

form {
   width: 90%;
   margin-top: 20px;
}

fieldset {
   border: 1px solid #1e3a5f;
   padding: 15px;
}

label {
   display: block;
   font-weight: bold;
   margin-top: 10px;
}

input, select, textarea {
   width: 90%;
   padding: 8px;
   margin-top: 5px;
}

input:focus, select:focus, textarea:focus {
   background-color: #fff3cd;
}

input[type="submit"], input[type="reset"] {
   width: 40%;
   background-color: #1e3a5f;
   color: white;
   padding: 10px;
   margin-top: 15px;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
   background-color: #f4a261;
   color: black;
}

footer {
   clear: both;
   background-color: #1e3a5f;
   color: white;
   text-align: center;
   padding: 15px;
   font-size: 0.9em;
   font-weight: bold;
}

footer p {
   margin: 5px;
}

/* Mobile */
@media only screen and (max-width: 768px) {

   body {
      width: 100%;
      margin: 0;
   }

   nav li {
      float: none;
      width: 100%;
   }

   .galleryItem {
      flex: 50%;
      max-width: 50%;
   }

   form {
      width: 100%;
   }

   input, select, textarea {
      width: 95%;
   }

   input[type="submit"], input[type="reset"] {
      width: 95%;
      display: block;
   }
}

/* Small phones */
@media only screen and (max-width: 480px) {

   .galleryItem {
      flex: 100%;
      max-width: 100%;
   }

   header h1 {
      font-size: 2em;
   }

   .hero h2 {
      font-size: 1.6em;
   }
}