html {
  height: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(to bottom, #73a7be, #072f6b);
  background-attachment: fixed;
}

@font-face {
  font-family: "Original Surfer";
  src: url("../Font/OriginalSurfer-Regular.ttf") format("truetype");
}

* {
  font-family: "Original Surfer";
  color: white;
  text-decoration: none;
}

header {
  background-image: linear-gradient(to bottom, #67a9c6, #1e94c6);
  background-attachment: fixed;
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 0.4fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "logo nav";
  align-items: center;
}
/* Hamburger button hidden on large screens */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger .bar {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

.nav {
  grid-area: nav;
  display: grid;
  grid-auto-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "Home About Games Contact";
  transition: transform 0.2s ease, box-shadow 0.5s ease;
}

nav a {
  transition: transform 0.2s ease, text-shadow 0.4s ease;
}

nav a:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

nav a:active {
  transform: scale(1.1);
  text-shadow: 0 4px 10px rgb(1, 22, 255);
}

.home {
  grid-area: "Home";
  margin-left: 5%;
  font-size: 1.5vw;
}
.about {
  grid-area: "About";
  margin-left: 5%;
  font-size: 1.5vw;
}
.games {
  grid-area: "Games";
  margin-left: 5%;
  font-size: 1.5vw;
}
.contact {
  grid-area: "Contact";
  margin-left: 5%;
  font-size: 1.5vw;
}

.logo {
    grid-area: "logo";
}

.logo img {
    width: 100px;
    height: auto;
    margin: 10px 20px;
}

.gameCraft {
    font-size: 60px;
    text-align: center;
    margin-top: 20px;

}
.about-section,
.our-goals,
.ideeen {
  background-image: linear-gradient(to bottom, #73a7be, #072f6b);
  width: 95%;
  opacity: 0.9;
  margin-left: 2.5%;
  border-radius: 25px;
  z-index: 2;
  position: relative;
}

.logo {
    background-image:none;
}

.bubble {
  position: fixed;
  width: 70px;
  height: 70px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: float 15s ease-in forwards;
}

@keyframes float {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-300vh);
    opacity: 0.75;
  }
}

h1,
p {
  padding: 1%;
}
p {
  margin-bottom: 10%;
}

.about-section {
  height: 30%;
  margin-bottom: 5%;
  margin-top: 5%;
  padding: 2%;
  width: 91%;
}

.our-goals {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 0.5fr;
  grid-template-rows: 0.3fr 1fr 1fr;
  gap: 0px 0px;
  grid-template-areas:
    "titel titel"
    "tekst image"
    "tekst team";
  margin-bottom: 5%;
}

.tekst {
  padding: 3%;
  grid-area: tekst;
}

.woo_h1 {
  margin-left: 3%;
}

.teamfoto {
  background-image: url(../images/team.jpg);
  background-size: cover;
  border-radius: 15px;
  width: 90%;
  height: 130%;
  grid-area: image;
}

.teamfoto-tekst {
  grid-area: team;
  margin-left: 11vw;
  margin-top: 15%;
}

.ideeen {
  height: 25%;
  width: 93%;
  padding: 1%;
  margin-left: 2.5%;
}

#buble {
  position: relative;
  width: 5%;
  height: auto;
  z-index: 1;
  animation: fly 9s linear infinite;
}

footer {
  background-color: #ad9c65;
  height: 10vh;
  margin-top: 25vh;
}

footer img {
  width: 7%;
  height: auto;
  margin-top: -5%;
  margin-left: 6%;
}
.coral {
  margin-left: 70%;
  margin-top: -5%;
}

@media screen and (max-width: 670px) {
  p {
    font-size: 2vw;
  }

  h1 {
    font-size: 4vw;
    text-align: center;
  }

  header {
    height: 10%;
  }
  .about-section {
    height: 17.5vh;
    text-align: center;
  }

  .ideeen {
    height: 15vh;
  }

  .our-goals h1 {
    margin-left: 50%;
  }

  .our-goals p {
    margin-left: 10%;

    font-size: 3vw;
    padding: 0%;
  }

  .teamfoto,
  .teamfoto-tekst {
    display: none;
  }
  .nav {
    width: 20px;

  }
}
/* Show hamburger on smaller screens */
@media screen and (max-width: 750px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 5px;
        right: 0px;
        background: linear-gradient(to bottom, #73A7BE, #072F6B);
        flex-direction: column;
        width: 150px;
        display: none; 
        border-radius: 10px;
        padding: 10px ;
    }

    .nav a {
        margin: 10px;
    }

    .nav.active {
        display: flex; 
    }
}
@media screen and (max-height: 730px) {
  footer {
    margin-top: 23%;
  }


body {
  height: fit-content;
}
}

@media screen and (max-width: 1000px) {
  html {
    overflow-x: hidden;
  }
}

#shark {
  width: 20%;
  position: absolute;
  top: 80%;
  animation: sharkSwim 25s Linear infinite;
}

@media screen and (min-width: 1300px) {
    p{
        font-size: 1.9vw;
    }

    h1{
        font-size: 3.5vw;
    }

    .teamfoto-tekst{
        margin-left: 10vw;
    }

    .about-section{
      height: fit-content ;
    }

    .ideeen{
      height: fit-content;
    }
}

@keyframes sharkSwim {
  0% {
    left: 0px;
    transform: scaleX(-1);
  }
  49% {
    left: 300px;
    transform: scaleX(-1);
  }
  50% {
    left: 300px;
    transform: scaleX(1);
  }
  90% {
    left: 70px;
    transform: scaleX(1);
  }
  100% {
    left: 0px;
    transform: scaleX(1);
  }
}

::-webkit-scrollbar {
    width: 12px; 
    background-color: #4224abbd;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #73a7be, #072f6b); /* Color of the track */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #73a7be, #072f6b); /* Color of the thumb (draggable part) */
    border-radius: 6px; /* Rounded corners */
    border: solid 1px #ad9c65;
}

::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to bottom, #73a7be, #072f6b); /* Hover color for the thumb */
    }