@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;600;800&display=swap');

*{
    font-family: 'Dosis', sans-serif;
    font-size: 5vh;
    text-align:center;
    color:white;
}

body{
  background-color:#004879;
}

.hidden{
  display: none;
}

#totalBal{
  font-size: 20vh;
}

div{
    position: relative;
    top: 10vh;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

div > .down{
    animation: fadeInDown 1s;
}

div > .slide{
    animation: fadeInLeft 2s;
}

.nav-button{
    border-radius: 10px;
    width: 10vw;
    animation: buttonTransition 2s;
}

button{
 box-shadow: inset 0 0 5px #000000;
  color:black;
}

#myBtn, #restart{
  position: relative;
  top: 10vh;
  border-radius: 10px;
  margin-right: 2vw;
  margin-left: 2vw;
}

button:hover{
  box-shadow: 0 0 7.5px 3.25px #ffffff;
}


button > span{
  color:black;
}


div > .slam{
 animation: slam 2s;
}

div > .delayed-slam{
  animation: slam 4s;
}

@keyframes slam
{
  0%
  {
    transform: scale(10, 10);
    opacity: 0;
  }
  
  40%
  {
    opacity: 0;
  }
  
  100%
  {
    transform: scale(1, 1);
    opacity: 1;
  }
}

#button-container{
  position: absolute;
  top: 90vh;
  left: 10vw;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60vw;
}

.answer-container{
    display: inline;
    text-align: center;
    padding: 1vw;
}

.answer-container > button{
  border-radius: 10px;
  margin: 3vw;
}

.emoji-container{
/*   top: 0vh; */
  font-size: 20vh;
  animation: fadeInLeft 1s;
}

.car{
  left: 100vw;
  font-size: 20vh;
  animation: drive 3s infinite;
}

@keyframes drive{
  0% {
      transform: translateX(0);
    }
  100% {
    transform: translateX(-200%);
  }
}

@keyframes fadeInDown{
    0%{
        transform: translateY(-2vh);
        opacity:0;
    }
    100%{
        opacity:1
    }
}

@keyframes fadeInLeft{
    0%{
        opacity:0;
    }
    50%{
        transform: translateX(-5vw);
        opacity:0;
    }
    100%{
        opacity:1
    }
}

@keyframes buttonTransition{
    0%{
        width: 0;
        font-size: 0px;
    }

    100%{
        width: 10vw;
    }
}

.bg1{
    overflow-x: hidden;
    overflow-y: hidden;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position:absolute;
    top:0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg2{
  height:100vh;
}

.bg2::before {
    content: "";
    position: fixed;
    width: 300%;
    height: 100%;
    top: 45%;
    left: 50%;
    background-color: #D22E1E;
    opacity: .6;
    border-radius: 50%;
    transform: translateX(-50%) skew(0, -10deg);
    animation: wave 7s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes wave {
    from {
        transform: translateX(-50%) skew(0, -10deg);
    }
    to {
        transform: translateX(-30%) skew(10deg, 0);
    }
}

.box {
	position: fixed;
	top: 0;
	transform: rotate(80deg);
	left: 0;
  z-index: -1;
}

.wave {
    position: fixed;
    top: 0;
    left: 0;
  opacity: .4;
  position: absolute;
  top: 3%;
  left: 10%;
  background: #eb594c;
  width: 83vw;
  height: 125vh;
  margin-left: -8.3vw;
  margin-top: -25vh;
  transform-origin: 50% 48%;
  border-radius: 83%;
  animation: drift 7s infinite linear;
}

.wave.-three {
  animation: drift 10s infinite linear;
	position: fixed;
	background-color: #D22E1E;
}

.wave.-two {
  animation: drift 12s infinite linear;
  opacity: .1;
  background: black;
	position: fixed;
}

.box:after {
  content: '';
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  transform: translate3d(0, 0, 0);
}

@keyframes drift {
  from { transform: rotate(0deg); }
  from { transform: rotate(360deg); }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  text-align: center;
  background-color: grey;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

div > table{ 
  margin-top: 2px;
  margin-left: auto;
  margin-right: auto;
  font-size: 10px;
}

section{
  position: relative;
  bottom: 10vh;
}

/* .page-display.open {
  visibility: visible;
  transform: scale(1);
} */

#main-table{
  transform: 0.3;
}

.rainbow {
  position: fixed;
  top: 0vh;
  left: 0vh;
  overflow-y: hidden;
  overflow-x: hidden;
  width: 100%;
	margin: 0;
	width: 100%;
	height: 100vh;
	background: linear-gradient(-45deg, #D22E1E, #004879);
	background-size: 400% 400%;
	animation: gradientBG 5s ease infinite;
    z-index: -1;
}
@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

