@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
 
}
html, body {
  height: 100vh; /* Ensure full height */
  display: flex;
  justify-content: flex-start; /* Move everything to the top */
  align-items: center;
  flex-direction: column; /* Stack elements */
  background-color: #003066;
  
    
}
  
/* Centering Wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  padding-top: 10px;
}

/* Centering Logo */
.form-logo {
  width: 80%;
  max-width: 300px;
  margin-bottom: 5px; /* Space between logo and form */
}

/* Centering Form Box */
.form-box {
  padding: 2vh;
  border: 3px solid #CC0066;
  border-radius: 20px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 0 10px #CC0066;
  width: 100%;
  margin: 5px auto 0 auto; /* Centers the form-box */
}
/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;  /* Stack logo and text vertically */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  animation: fadeIn 1s ease-out; /* Fade in the entire splash screen */
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  animation: fadeOut 1s ease-in forwards; /* Fade-out animation */
}

/* Fade-out effect for splash screen */
@keyframes fadeOut {
    0% {
       opacity: 1;
      }
    100% {
      opacity: 0;
    }
}

/* Style for the logo */
#splash-screen img {
  max-width: 70%;  /* Adjust the size of the logo */
  max-height: 450px;
  animation: zoomIn 1s ease-out; /* Zoom-in effect for the logo */
  
}

@keyframes zoomIn {
  0% {
      transform: scale(0.5);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

.loginscreen {
  width: 80vw;
  text-align: center;
  justify-content: center;
  position: relative;
  display: none;
  align-items: center;
  background-color: #003066;
}
.inputbox{
  position: relative;
  margin: 20px 0;
  width: 310px;
  border-bottom: 2px solid #CC0066;
}
.inputbox label{
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  color: #CC0066;
  font-size: 1em;
  pointer-events: none;
  transition: .5s;
}
.inputbox input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  padding:0 35px 0 5px;
  color: #000;
  font-size: 1em;
}
input:focus ~ label,
input:valid ~ label{
  top: -5px;
}


#btn {
  width: 100%;
  height: 40px;
  margin-bottom: 10px;
  top: 7px;
  border-radius: 40px;
  background:  #CC0066;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  
}
#btn:focus {
  outline: none; /* Removes default outline */
  box-shadow: 0 0 10px #CC0066;
}

#instructions-container{
  padding: 5vh;
  border: 3px solid  #CC0066;
  border-radius: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40%;
  box-shadow: 0 0 10px  #CC0066;
  flex-direction: column;
  background-color: #fff; 
 
}
#game{
  width: 170px;
  padding: 8px;
  color: #fff;
  background-color: #CC0066;
  margin-top: 30px;
  border-radius: 20px;
  border: 1px solid #CC0066;
  font-size: 18px;
  animation: pulse 1.5s infinite;
  cursor: pointer;
}
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}
#instructions-container h1{
  font-weight: 600;
  color: #CC0066;
  margin-left: 30%;
  margin-bottom: 10px;
  opacity: 0;
  animation:slideInFromTop 1s ease-out forwards 0.5s;
  margin-top: 10px;
  font-size: 25px;
}
@keyframes slideInFromTop {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#instructions-container p{
  font-size: 20px;
  font-weight: 500;
  margin-right: 10px;
  opacity: 0;
  animation:slideInFromTop 1s ease-out forwards 0.5s;
  color: #000;
}
@keyframes slideInFromTop {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#game:hover {
  transform: scale(1.1); /* Slightly enlarges the button on hover */
  background-color: #993366;

}

#game:focus {
  outline: none; /* Removes default outline */
  box-shadow: 0 0 10px #993366;
}

/* Responsive Styles */

/* For Landscape Orientation */
@media (max-width: 1024px) and (orientation: landscape) {
  .form-logo {
    width: 40%;
    height: auto;
    margin-top: 130px;
  }
  body{
    background-color: #003066;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    height: 100vh;
    display: flex; /* Enable flexbox for vertical centering */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    overflow-y: auto;
  }
  .form-box {
    width: 90%;
    margin-bottom: 50px;
    
  }

  .inputbox {
    width: 300px;
  }

  #btn {
    font-size: 14px;
    margin-right: 5px;
  }

  #game {
    width: 150px;
    font-size: 14px;
  }

  #instructions-container {
    padding: 4vh;
    margin-top: 15%;
    width: 200%;
  }

  #instructions-container h1 {
    font-size: 20px;
    margin-left: 27%;
    
  }

  #instructions-container p {
    font-size: 16px;
  }
}

@media (min-width: 667px) and (max-width: 768px) and (orientation: landscape) {
  body{
    background-color: #003066;
  }
  
  #instructions-container {
    padding: 2vh;
    margin-top: 15%;
    width: 180%;
  }
  #game{
    width: 120px;
    font-size: 13px;
    height: 35px;

  }

  #instructions-container h1 {
    font-size: 16px;
    margin-left: 30%;

  }

  #instructions-container p {
    font-size: 15px;
  }
}
@media (min-width: 1024px) and (max-width: 1368px) {

  body{
    background-color: #003066;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    height: 100vh;
    display: flex; /* Enable flexbox for vertical centering */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
  }
  .form-logo{
    margin-top: 5px;
    
  }
  #form-box{
    width: 100%;
    margin-bottom: 70px;
  }
  .inputbox label{
    font-size: 20px;
  }
  .inputbox{
    width: 300px;
  }
  #btn{
    font-size: 16px;
  }
  #game {
    width: 150px;
    font-size: 18px;
    margin-bottom: 20px;
  }

  #instructions-container {
    padding: 4vh;
    margin-bottom: 40%;
    width: 180%;
  }

  #instructions-container h1 {
    font-size: 25px;
    margin-left: 27%;
    
  }

  #instructions-container p {
    font-size: 20px;
  }
}
