/* Website Color Assignment
  * Header/Footer (text)  Color:  color: 2D232E;
  * Header/Footer Background Color: background-color: #F5F5DC;
  * Navbar Background Color: background-color: #FOF7EE;
  * Navbar (text) color: color: 424242;
  * Navbar hover background color: background-color: #9D96B8;
  * Navbar active page background color: background-color: #9D96B8;
  * Main Section Background Color: background-color: #E3E7AF;
  * Main Section (text) Color: color: 424242
  * Main headings (h1, h2, etc.) (text) color: color: 424242;
*/
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 1px;
  text-align: center;
  font-variant: small-caps;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: bold;
}

main ol,
main p {
  font-family: "Exo", sans-serif;
  font-weight: 500;
  font-style: normal;
}

#reasons p {
  color: #e9f5e9 ;
}

main {
  background-color: #e9f5e9;
  display: flex;
  flex-wrap: wrap;
}

/* -- HEADER FOOTER -- */
header,
footer {
  background-color: #BCF5A6;
  color: #424242;
}

img {
  width: 100%;
}

header img {
  width: 7em;
  height: 4em;
}

aside {
  flex: 30%;
  padding: 20px;
}

/* STYLE FOR FLEX CONTAINER */
.flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* header and nav section */
header {
  display: flex;
  justify-content: space-between;
  padding: 1em 0.5em;
  text-align: center;
  margin-top: 0em;
}
header .btn {
  background-color: #BCF5A6;
  border: none;
  padding: 0;
  padding-bottom: -10em;
  margin-bottom: -.8em;
}

header .btn:hover {
  background-color: #BCF5A6;
}
header h3 {
  text-align: center;
}

nav {
  display: flex;
}

nav li {
  display: inline;
  padding: 0em 0.5em;
}

nav li a {
  color: #424242;
  letter-spacing: 2px;
  line-height: 30px;
}

nav li a:hover {
  color: #2D232E;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1.2em;
    font-weight: bold;
    border: 4px solid black;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.02);
}

/* FOOTER */
footer {
  text-align: center;
  padding: .5em 0em;
  font-size: .9em;
}

footer li {
  display: inline;
}

footer i {
  color: #2D232E;
  font-size: 3.5em;
  padding-right: 1em;
}

footer i:hover {
  color: #2D232E;
}

footer a {
  color: #424242;
  text-decoration: none;
}

/* Gallery */
#galleryPage {
  justify-content: center;
}

#galleryPage h1 {
  font-size: 2.5em;
  margin: 0;
  letter-spacing: 2px;
  text-align: center;
}

.img-gallery {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 20px;
  color: #8F7E4F;
}

.img-box {
  position: relative;
  background-color: #424242;
  overflow: hidden;
}

.img-box:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: all .5s;
}

.img-box:hover img {
  transform: scale(1.1);
}

.img-box .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #424242;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .5s ease;
  z-index: 1;
}

.img-box:hover .overlay {
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  opacity: 1;
}

.img-box .details {
  text-align: center;
}

.img-box .details .title {
  margin-bottom: 4px;
  font-weight: bold;
  position: relative;
  top: -5px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.img-box:hover .details .title {
  top: 0px;
  opacity: 1;
  visibility: visible;
  transition: all .3s .2s ease;
}

.img-box .details .text {
  position: relative;
  bottom: -5px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.img-box:hover .details .text {
  bottom: 0;
  opacity: 1;
  visibility: visible;
  transition: all .3s .2s ease;
}

/* General Styles */
body {
  font-family: "Exo", sans-serif;
  color: #424242;
  background-color: #E8F5E9;
  margin: 0;
  padding: 0;
}

/* Main Layout */
#tablePage section {
  margin: auto;
  width: 100vw;
  border-bottom: 5px solid #424242;
  max-width: 75%;
  padding: 20px 0;
}

#tablePage .flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

#tablePage .flex-item {
  flex: 1;
  padding: 20px;
}

#tablePage .flex-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Text Content */
#tablePage .flex-item h3 {
  font-size: 1.5em;
  font-weight: bold;
  color: #424242;
  margin-bottom: 10px;
}

#tablePage .flex-item p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #424242;
}

/* Responsive Design */
@media (max-width: 768px) {
  #tablePage .flex-container {
    flex-direction: column;
    text-align: center;
  }

  #tablePage .flex-item {
    width: 100%;
    padding: 10px;
  }
}


/* Form */
form {
  margin: auto;
  border-radius: .4rem;
  border-style: solid;
  border-width: 2px;
  margin-top: 1em;
  margin-bottom: 1em;
}

legend { 
  font-weight: bold;
  margin-left: 10px;
  color: #424242;
}

label { 
  color: #424242; 
}

fieldset {
  border: none;
}

form h1 { 
  font-weight: normal;
  color: #424242;
  margin-bottom: 10px;
}

.user-info, #select { 
  width: 20rem;
  border: 1.5px solid #424242;
  padding: .4rem;
  margin-bottom: 10px;
  border-radius: .5rem;
}

#select {
  width: 10rem;
}

.other {
  margin-left: 10px;
}

#submit-button {
  text-align: center;
  width: 15rem;
  padding: .8rem;
  margin-bottom: 10px;
  background-color: #F5F5DC;
  color: #2D232E;
  font-weight: bold;
  font-size: 1.2rem; 
  border: 1.5px solid #424242;
  border-radius: .5rem;
}

#submit-button:hover { 
  background-color: #BCF5A6;
}

.horizontal-line {
  border: none;
  border-top: 5px solid #424242;
  margin: 2em auto;
  width: 80%; 
}
