/*Author: Felix Davis-Eldridge*/
/*Date Created: 17/06/2024*/
/*Last Updated: 24/06/2024 */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Roboto+Slab:wght@100..900&display=swap');
body {
    background-color:  rgb(8, 20, 43);
    color: rgb(250, 235, 215);
    font-family: "Rubik", sans-serif;
    padding: 0;
    margin: 0;
    transition: background-color 0.6s ease;
    overflow-x: hidden;
    padding-bottom: 150px;
    height: 100vh;
    margin: 0;
    position:relative;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth
    }

section {
    display: grid!important;
    place-items: center;
    min-height: 100vh;
    align-content: center;
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    padding-bottom: 20px;
    border-bottom: 1px solid #f7f7f7; 
    margin-bottom: 40px;
  }
    
  .container {
    grid-column: 1; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 5px; 
    text-align: left; 
  }

.hidden {
    opacity: 0;
    transform: translateX(-100%);
    filter: blur(5px);     
    transition: all 1s;
}

.show {
opacity: 1;
filter: blur(0);       
transform:translateX(0); 
}

.gallery {
  grid-column: 2; 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-around; 
  align-items: center;
}

.gallery-item {
  margin: 20px;
  opacity: 0;
  transform: translateX(-100px);
  transition: transform 1s, opacity 1s;
}

.gallery-item:nth-child(1) {
  transition-delay: 0ms;
}

.gallery-item:nth-child(2) {
  transition-delay: 200ms;
}

.gallery-item:nth-child(3) {
  transition-delay: 400ms;
}

.gallery-item img {
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 200px;
  height: 200px;
  object-fit: cover;
}
.gallery-item {
  animation: slide-in 1s forwards;
}

@keyframes slide-in {
  0% {
      opacity: 0;
      transform: translateX(-100px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

h1 { 
font-family:"Roboto Slab", serif; 

}

#title-image {
max-width: 100%;
height: auto;
z-index: -1;
}

.nav {
  overflow-x: hidden;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #055e1d;
  color: #fff;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.5s ease-in-out;
}

.nav.bottom {
  top: auto;
  bottom: 0;
}

.nav-text {
  font-size: 1.5em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-right: 50px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ccc;
}

#section-one-and-a-half {
  height: 100vh;
  overflow: hidden;
}

#split-image {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.6s ease;
}

body.scrolled {
  background-color: #333; 
}

#split-image.scrolled {
  transform: translateY(-100vh);
}

.scroll-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: opacity 0.3s;
  transform: scale(5);
  animation: bounce 2s infinite; /* animation */
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.scroll-icon.hidden {
  opacity: 1;
}

.scroll-icon:not(.hidden) {
  opacity: 0;
}

.scroll-icon img {
  filter: invert(1);
}

body.scrolled {
  background-color: #000; 
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 50px;
}

.container {
  grid-column: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px;
  text-align: left;
}

.section-description {
  margin-left: 20px;
  grid-column: 2;
}

#title-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.image-container {
  grid-column: 1 / -1; /* span across all columns */
  display: flex;
  justify-content: center;
  margin-top: 40px; /* add some margin to separate from the text */
}

.image-container img {
  width: 400px; /* adjust the width of the image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#section-three {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.section-three-content {
  flex-basis: 60%; 
  margin-right: 20px;
}

.gallery {
  grid-column: 1 / -1; 
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: center;
}

.gallery-item {
  display: flex; 
  justify-content: center; 
  margin: 20px; 
  animation: slide-in 1s forwards;
}

.gallery-item:nth-child(1) {
  transition-delay: 0ms;
}

.gallery-item:nth-child(2) {
  transition-delay: 200ms;
}

.gallery-item:nth-child(3) {
  transition-delay: 400ms;
}

.gallery-item img {
  max-width: 300px; 
  height: auto; 
  object-fit: cover; 
  border-radius: 10px; 
  transition: transform 0.2s ease-in-out;
  border: 1px solid #ddd; 
}


.gallery-item {
  animation: slide-in 1s forwards;
}

@keyframes slide-in {
  0% {
      opacity: 0;
      transform: translateX(-100px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

.gallery-item {
  animation: slide-in 1s forwards;
}

.item-1 img {
  background-image: url('image1.jpg');
}

.item-2 img {
  background-image: url('image2.jpg');
}

.item-3 img {
  background-image: url('image3.jpg');
}

.item-4 img {
  background-image: url('image4.jpg');
}

.item-5 img {
  background-image: url('image5.jpg');
}

.item-6 img {
  background-image: url('image6.jpg');
}

.gallery-item img:hover {
  transform: scale(1.7);
  cursor: zoom-in;
}

#section-four {
  display: grid;
  place-items: center;
  min-height: 100vh;
  align-content: center;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f7f7f7;
  margin-bottom: 40px;
}

#section-four .container {
  grid-column: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px;
  text-align: left;
}

#section-four .image-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

#section-four .image-container img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

button {
  padding: 20px 40px;
  font-size: 24px;
  border: none;
  border-radius: 10px;
  background-color: #4CAF50;
  color: #fff;
  cursor: pointer;
  opacity: 0; 
  transition: opacity 0.3s;
}

button:hover {
  background-color: #3e8e41;
}

.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 20px;
}

.footer-container button {
  padding: 20px 40px;
  font-size: 24px;
  border: none;
  border-radius: 10px;
  background-color: #4CAF50;
  color: #fff;
  cursor: pointer;
}

.footer-container button:hover {
  background-color: #3e8e41;
}

button.show {
  opacity: 1; 
}

.quiz-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
