* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* General body settings */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Container for the scene and footer */
.container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 100vh;
}

.scene {
  width: 100dvw;
  height: 100dvh;
  background-color: #049cd8;
}

.header-home {
  display: none;
}

#landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  width: 100%;
  padding: 10px;
}

.image-container {
  flex-grow: 1;
}

#title {
  width: clamp(10rem,50%, 600px);
}

.nav-menu {
  flex-shrink: 0;
}

label.menu-icon {
  opacity: 1;
  color: #ffffff;
  background-color: #000000;
}

.menu-icon {
  cursor: pointer;
  display: inline-block;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  background-color: #ffffff00;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  color: #000;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.menu-icon::before {
  top: 0;
}

.menu-icon::after {
  bottom: 0;
}

.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked + .menu-icon::before {
  transform: rotate(45deg);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#menu-toggle:checked + .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

#menu-toggle:checked + .menu-icon span {
  transform: scale(0);
}

.nav {
  position: absolute;
  top: 130px;
  right: 0;
  z-index: 10;
  border-radius: 5px;
  padding: 10px;
  background:transparent;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: none;
  width: 100%;
  height: 100%;
}

#menu-toggle:checked ~ .nav {
  transform: translateX(0);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-image {
  width: 85%;
}

h1 {
  font-family: "Press Start 2P", cursive;
  text-align: center;
  width: 100%;
  font-size: 30px;
  position: fixed;
  top: 300px;
}


#screen {
  display: block;
  image-rendering: pixelated;
  height: 100vh;
  margin: auto;
}

#game-choices {
  display: flex;
  flex-direction: column;

  position: absolute;
  top: 50%;
  margin-inline: auto;

}

.game-buttons {
  width: 80%;
  display: flex;
}

#start {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  margin-inline: auto;
  top: 60%;
  background: #000000c7;
  border-radius: 16px;
  padding: 16px;
  border: 2px solid white;
}

#start:hover, #start:focus,
#start2:hover, #start2:focus {
box-shadow: 0 0 20px 10px #ffffff;
}

#start2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin-inline: auto;
  top: 35%;
  background: #ffffff9d;
  border-radius: 16px;
  padding: 16px;
  border: 2px solid #fff;
  display: flex;
}

#start img {
  width: 90%;
}

img#star-image {
  width: 10%;
}


#start2 img {
  width: 90%;
}

img#mushroom-image {
  width: 10%;
}

.mario {
  background-image: url(http://vignette3.wikia.nocookie.net/fantendo/images/0/05/Mystery_Mushroom_Mario.png/revision/latest?cb=20150913142904);
  background-size: 50px;
  width: 50px;
  height: 66px;
  position: absolute;
  bottom: 50px;
  transition: all 1s ease;
  animation: animateMario 3s linear forwards infinite;
}

  @keyframes animateMario {
    0% {
      margin-left: -50px;
    }
    60% {
      transform: translateY(0px);
    }
    70% {
      transform: translateY(-90px);
    }
    90% {
      transform: translateY(0px);
    }
    100% {
      margin-left: 100vw;
    }
  }
  
  .cloud {
    background-image: url("https://i.pinimg.com/originals/8a/49/4b/8a494b1e5e26314180a1ded2c8d0a6a5.png");
    background-size: contain;
    width: 100px;
    height: 80px;
    margin: 20px;
    position: absolute;
  }
  
  .box {
    background-image: url("https://media.giphy.com/media/GPtziRMoxcwuc/giphy.gif");
    background-size: cover;
    position: absolute;
    height: 50px;
    width: 50px;
    bottom: 180px;
    left: 70vw;
    z-index: 1;
    animation: animateBox 3s ease forwards infinite;
    animation-delay: 2.1s;
  }
  
  @keyframes animateBox {
    0% {
      bottom: 200px;
    }
    50% {
      bottom: 260px;
    }
    100% {
      transform: scale(0);
    }
  }
  
  .coin {
    background-image: url("http://piq.codeus.net/static/media/userpics/piq_132831_400x400.png");
    background-size: cover;
    position: absolute;
    height: 50px;
    width: 50px;
    bottom: 180px;
    left: 70vw;
    animation: animateCoin 3s ease forwards infinite;
    animation-delay: 2.1s;
  }
  
  @keyframes animateCoin {
    0% {
      bottom: 250px;
    }
    50% {
      bottom: 350px;
    }
    100% {
      bottom: 250px;
      transform: scale(0);
    }
  }
  
  .floor {
    background-image: url("https://t3.rbxcdn.com/1977bb7bbfc6b959cf6556daf6381793");
    background-size: 50px;
    position: absolute;
    width: 100vw;
    height: 100px;
    bottom: 0;
  }
  
  @keyframes animateCloud {
    0% {
      margin-left: -1000px;
    }
    100% {
      margin-left: 100%;
    }
  }
  
  .cloud1 {
    animation: animateCloud 35s linear infinite;
    transform: scale(0.75);
  }
  
  .cloud2 {
    animation: animateCloud 20s linear infinite;
    transform: scale(1);
  }
  
  .cloud3 {
    animation: animateCloud 30s linear infinite;
    transform: scale(1.25);
  }
  
  .cloud4 {
    animation: animateCloud 18s linear infinite;
    transform: scale(1.5);
  }

  .card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 40%;
    margin-bottom: 5px;
    font-size: 8.7px;
    height: 150px;
}

div.powers {
  display: flex;
  position: absolute;
  bottom: 46px;
}

  .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
  .mushroom {
    padding: 2px 16px;
  }
  .powers{
  display:flex;
  gap:20px;
 
  }
  
/*Footer*/

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background: url(../images/bricks.webp);
  background-size: cover;
  background-color: black;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flip-card {
  background-color: transparent;
  width: 50px;
  height: 50px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #ffffff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

.flip-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100px;
  max-height: 100px;
  display: block;
  margin: 0 auto;
}

.footer-icon {
  color: #049cd8;
  font-size: 24px;
}

.fa-brands {
  color: #049cd8;
}


/* Styles for error page */

#error-header {
  top: 300px;
}

#error-text {
  font-family: "Press Start 2P", cursive;
  text-align: center;
  width: 90%;
  left: 5%;
  font-size: 24px;
  position: fixed;
  top: 430px;
  margin-top: 50px;
}

#error-link {
  font-family: "Press Start 2P", cursive;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  top: 580px;
  color: #E52521;
  text-decoration: none;
  height: 70px;
  width: 240px;
  margin-top: 60px;
}

/* Styling for thank you page */

.scene-thank-you {
  width: 100dvw;
  height: 100dvh;
  background-color: #049cd8;
  position: relative;
  overflow: hidden;
}

.box-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Box styling */
.centered-box {
    font-family: "Press Start 2P", cursive;
    text-align: center;
    background-color: #ffffff9d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    left: 5%;
    opacity: 0;  /* Initially hidden */
    transform: scale(0);  /* Start from a small scale */
    transition: transform 3s ease-out, opacity 3s ease-out;
    animation: expand-box 3s ease-out forwards;
}

/* Keyframes to handle the expansion */
@keyframes expand-box {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.centered-box h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #000000;
}

.centered-box p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #000000;
}

.centered-box a {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

#homepage-link {
  height: 70px;
  width: 190px;
}

/* Contact page */

body.contact-page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

.scene-contact {
  width: 100dvw;
  min-height: 1100px;
  background-color: #049cd8;
  position: relative;
  height: auto;
}

.contact-box-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Box styling */
.contact-centered-box {
    font-family: "Press Start 2P", cursive;
    text-align: center;
    background-color: #ffffff9d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    left: 5%;
    opacity: 0;  /* Initially hidden */
    transform: scale(0);  /* Start from a small scale */
    transition: transform 3s ease-out, opacity 3s ease-out;
    animation: expand-box 3s ease-out forwards;
}

/* Keyframes to handle the expansion */
@keyframes expand-box {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-centered-box h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #000000;
}

.contact-centered-box p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #000000;
}

/* Contact Form */

#form-container {
  margin-top: 25px;
  margin-bottom: 5px;
}

.form-label {
  color: #E52521;
  display: block;
  margin-bottom: 5px;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 30px;
  border-radius: 6px;
  font-size: 20px;
}

.form-text {
  font-size: 14px;
  color: #049cd8;
}

.form-check-label {
  font-size: 14px;
  color: #049cd8;
}

#checkbox-div {
  margin-top: 5px;
}

#privacy-link {
  color: #E52521;
}

#submit-button {
  height: 40px;
  width: 150px;
  background-color: #049cd8;
  color: #E52521;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Press Start 2P", cursive;
}

#submit-button:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
    
  /* Media queries for devices larger than 320px */
@media screen and (min-width:320px){

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 40%;
  margin-bottom: 5px;
  font-size: 8.3px;
  height: 145px;
}
}

/* Media queries for tablet and larger 768px */
@media screen and (min-width:768px){
  .card{
    font-size: 30px;
    
  }

  /* error page */
  #error-text {
    font-size: 30px;
    margin-top: 0;
  }

  #error-link {
    font-size: 24px;
    margin-top: 0;
    height: 90px;
    width: 300px;
  }

  /* thank you page */
  .centered-box h2 {
    font-size: 32px;
  }

  .nav-image {
    width: 50%;
  }

  #homepage-link {
  height: 90px;
  width: 300px;
  }
}

/* Media queries for labtops/desktops and larger 992px */
@media screen and (min-width:992px){
  /* contact page */
  .contact-centered-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #000000;
}

  .contact-centered-box p {
    margin-bottom: 15px;
    font-size: 20px;
    color: #000000;
}

  .form-label {
    font-size: 18px;
}

  #submit-button {
    height: 60px;
    width: 200px;
    font-size: 20px;
}
}