/* STYLE SHEET FOR COFFEE WEBSITE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Lora', sans-serif;
  background-color: #3B2F2F;
  scroll-behavior: smooth;
  color: white;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  margin-top: -0.5rem;
}

header {
  width: 100%;
  height: 100vh;
  padding: 0;
  background-image: url('https://images.stockcake.com/public/8/a/d/8ad10cc4-8d2c-4e05-bcfe-f834e639c9d4_large/steaming-coffee-aroma-stockcake.jpg');
  background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.2); 
  background-blend-mode: lighten;
  justify-content: space-between;
  flex-wrap: wrap; 
  position: relative;
}

nav {
  width: 100%;
}

nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 1rem;
  width: 100%;
}

nav ul li {
  flex: 1;
  text-align: center;
}

nav ul li a {
  color: white;
  text-decoration: none; 
  font-weight: bold;
  font-size: 32px;
  transition: transform 0.3s ease-out;
  display: inline-block;
}

nav ul li a:hover {
  animation: shake 0.9s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.welcome-textbox {
  position: absolute;
  top: 50%;               
  left: 50%;              
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);  
  color: white;
  padding: 2rem 3rem;
  border-radius: 10px;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

#about {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #3E2C1C;
}

.about-container {
  display: flex;
  max-width: 90vw;
  width: 100%;
  align-items: stretch;
  flex-wrap: wrap;
}

.about-section1 {
  background-color: #4B3621;
  color: white;
  padding: 2rem;
  font-size: 1.2rem;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
}

.about-section1 ul li {
  list-style: none;
  padding: 0;
  font-style: italic;
  font-weight: bold;
}

.about-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.about-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.coffee-quiz {
  color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;      
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: 'Lora', serif;
  text-align: center;
  flex: 1 1 80%;         
  min-width: 300px;
  background-color: #4B3621;
}

.coffee-quiz h2 {
  margin-bottom: 1rem;
}

.option-button {
  background-color: #C4A484;
  border: none;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.option-button:hover {
  background-color: #ffffff;
}

.result-card {
  background-color: #fff;
  color: #4B3621;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 2rem;
}
  
  .quiz-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  font-size: 1rem;
  font-style: italic;
}

.quiz-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#wizard {
  text-align: center;
  font-size: 1.2rem;
  background-image: url("https://esquirescoffee.co.uk/wp-content/uploads/2021/02/nathan-dumlao-vbt-Fp3b5FA-unsplash-scaled.jpg");
  background-size: cover;    
  background-position: center;   
  background-repeat: no-repeat; 
  min-height: 100vh;
  margin-top: -1.5rem;
  padding: 1rem 1rem;
  font-style: italic;
}

#finder {
  margin-bottom: 0;
  padding-bottom: 0;
}

.store-finder {
  text-align: center;
  background-color: #4B3621;
  font-size: 1.5rem;
  padding: 2rem;
}

.store-finder iframe {
  max-width: 100%;
  height: 400px;
  border: none;
  display: block;
  margin: 0 auto;
}


footer {
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
  position: relative;
  display: flex;
  font-size: 1.5rem;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 60vh;
    padding: 2rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease-out;
}

.copyright {
  margin-top: 2rem;
}

.profile-link {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem;
}

.profile-link:hover {
  transform: translateY(8px);
}

#gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: auto;
}

#gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: block;
  onject-fit: cover;
  border-radius: 5px; 
}

h2 {
  text-align: center;
  font-size: 2rem;
}

/* Laptop / tablet screens */
@media (min-width: 768px) and (max-width: 1023px) {
  
  nav ul {
    flex-wrap: wrap; 
  }

  nav ul li {
    flex: 1 1 50%; 
    text-align: center;
    margin-bottom: 0.5rem;
  }

  nav ul li a {
    font-size: 24px; 
  }

  #gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .welcome-textbox {
    max-width: 90vw;
    padding: 1.5rem 2rem;
    font-size: 1rem;
  }
}

/* Mobile screens */
@media (max-width: 767px) {
  
  nav ul {
    flex-direction: column;
    padding: 0.5rem;
  }

  nav ul li {
    flex: none;
    text-align: center;
    margin-bottom: 1rem;
  }

  nav ul li a {
    font-size: 20px; 
  }

  #gallery {
    grid-template-columns: 1fr; 
    gap: 0.5rem;
    margin: 1rem;
  }

  #gallery img {
    aspect-ratio: 1 / 1;
  }

  .welcome-textbox {
    position: static; 
    transform: none;
    margin: 2rem auto;
    max-width: 90vw;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  header {
    height: auto;
    padding: 2rem 1rem;
  }
  
  .about-container {
    flex-direction: column;
  }

  .about-section1, .about-image-wrapper {
    flex: none;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .coffee-quiz {
    max-width: 100%;
    padding: 1rem;
  }
  
  .store-finder iframe {
    height: 300px;
  }
  
  footer {
    font-size: 1.2rem;
    padding: 1rem;
    flex-direction: column;
  }

  .footer-content {
    height: auto;
    padding: 1rem;
  }
}
