body{
  margin: 0;
  font-family: sans-serif!important;
  height: 100vh;
}

button, select {
  border-radius: 0;
  border-style: none;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

#active{
  height: 100vh;
  background-image:none;
  background-color: #252D80;
  color: white;
  overflow: auto;
}

#rules{
  height: 100vh;
  background-image:none;
}

a:hover {
  background-color: yellow;
  cursor: pointer;
}

.flash {
  animation: flash 0.5s infinite;
}

@keyframes flash {
  0%,49% {
    background-color: yellow;
  }
  50%,100% {
	background-color: inherit;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: orange auto 1px;
}

button:hover {
  cursor: pointer;
}

a {
  color: "#2a3698";
  text-decoration: underline;
}

#demo{
  color: black
}

#restartGame, #restartGame2, #changeName, #modal{
  z-index: 3;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-image: linear-gradient(to left bottom, #f29e00, #f5a008, #f8a20f, #fca515, #ffa71a);
  padding: 50px;
  border-radius: 25px;
  width: min-content;
}

.modal-overlay {
  z-index: 2;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Gray color with 60% transparency */
  z-index: 9999; /* Higher z-index to ensure it appears on top of other elements */
}

.overlay2 {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Gray color with 60% transparency */
  z-index: 9999; /* Higher z-index to ensure it appears on top of other elements */
}

.text2 {
  color: white;
  text-align: center;
  font-size: 10vw;
  padding-top: 30vh;
}


button:disabled {
    color: lightgrey!important;
    background-color: #EFEFEF4D;
    cursor: not-allowed;
}

input{
  width:224px;
  text-align: center;
}

input[type=checkbox] {
  text-align: left;
  width: auto;
}

input[type=text], input[type=number], #oldName {
  padding: 14px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

.block2 {
  display: block;
  width: 100%;
  height: 2vh;
  position:fixed;
  bottom: 0;
  border: none;
  background-image: radial-gradient(circle, #d4403b, #d93d38, #dd3a34, #e23731, #e6332d);
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  text-align: center;

}

.start-button{
  width: min(200px,80vw);
  background-color: #ff474c;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background: linear-gradient(to right, rgb(33, 126, 173) 0%, rgb(29, 111, 152) 50%, rgb(161, 184, 220) 50%, rgb(161, 184, 220) 100%);
  overflow-x: hidden;
  transition: 0.5s;
}


/* NEW BELOW */

/* NavBar */


/* Auto layout */

#navBar {
overflow: auto;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 0px 10px;



/* Inside auto layout */

flex: none;
order: 0;
align-self: stretch;
flex-grow: 0;
flex-wrap:wrap;
}


#siteName {
/* Poopardy */


height: 39px;

font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-size: 32px;
line-height: 39px;
/* identical to box height */


color: #000000;


/* Inside auto layout */

flex: none;
order: 0;
flex-grow: 0;



}

.link {
  /* Build a Board */
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 15px;
display: flex;
align-items: center;
text-decoration: underline;
height:58.5px;

color: #000000;


/* Inside auto layout */

flex: none;
order: 1;
align-self: stretch;
flex-grow: 0;
}

#twoSides{
/* Body */


/* Auto layout */

display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
padding: 0px;


/* Inside auto layout */

flex: none;
order: 1;
align-self: stretch;
flex-grow: 0;
flex-wrap: wrap;

}

.side {
  /* Left Side */


/* Auto layout */

display: flex;
flex-direction: column;
align-items: flex-start;
padding: 3px 0px;

width: 320px;

background: #4415FF;

/* Inside auto layout */

flex: none;
order: 0;
flex-grow: 0;
}

@media only screen and (max-width: 440px){
  .side{
    width: 100%;
  }
}



#tile{
  /* How to play */


/* Auto layout */

display: flex;
flex-direction: column;
align-items: center;
padding: 10px 15px;

/* Inside auto layout */

flex: none;
order: 1;
align-self: stretch;
flex-grow: 0;
}

.text{

  width: 100%;

  
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
  
  color: #000000;
  
  
  /* Inside auto layout */
  
  flex: none;
  order: 0;
  flex-grow: 0;
}

#loginScreen {
  /* Login Screen */


/* Auto layout */

display: flex;
flex-direction: column;
align-items: flex-end;
padding: 10px 15px;

background: #D9D9D9;

/* Inside auto layout */

flex: none;
order: 0;
flex-grow: 0;
}

.tb{
  /* Frame 2 */


/* Auto layout */

display: flex;
flex-direction: row;
align-items: flex-start;
padding: 10px;
gap: 10px;
/* font size is set to 16px to avoid zomming in to text box on safari on iphone */
font-size: 16px;

width: 100%;
height: 35px;

background: #FFFFFF;

/* Inside auto layout */

flex: none;
order: 0;
align-self: stretch;
flex-grow: 0;
}

.btt{
  /* Frame 1 */


/* Auto layout */

display: flex;
flex-direction: row;
align-items: flex-start;
padding: 10px;
gap: 10px;

height: 35px;

background: #065187;

/* Inside auto layout */

flex: none;
order: 2;
flex-grow: 0;
color: white;
}

.gray1{
  background: #D9D9D9;
}

.gray2{
  background: #E0E0E0;

}

.blue0{
  background: #065187;
}

.blue1{
  background: #9AC8FF;

}

.blue2{
  background: #A1CBE9;
}


/*
.blinking-clue-animation {
  animation-name: blinking-clue;
  animation-iteration-count: infinite;
  animation-duration: 2s;
}

@keyframes blinking-clue {
  0% { color: white; }
  50% { color: orange; }
  100% { color: white; }
}

*/


/*
html, body {
  background: black;
  margin:0;
  padding:0;
  
  height: 100%;
  color: white;
}

body { 
  display: grid;
  place-content: center;
}

*/


#site-title {
  text-transform: uppercase;
  font-size: 3rem;
  font-family: 'Impact', sans-serif;
  transform: skew(-8deg);
  font-weight: bold;
  color: black;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 47%, rgba(255,156,0,1) 47%, rgba(255,156,0,1) 53%, rgba(255,255,255,1) 53%, rgba(255,255,255,1) 100%);
  animation: gradient 5s linear infinite;
  background-position: -100% 0%;
  background-size: 400% 400%;
  overflow: auto;
}

@keyframes gradient {
	0% {
		background-position: 100% 0%;
	}
	100% {
		background-position: 0% 0%;
	}
}

.box {
  width: 150px;
  height: 100px;
  background: red;
  position: absolute;
  animation-name: example;
  animation-duration: 10s;  
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  z-index: -1;
}

.pos1 {
    top: -50px;
  right: 50px;
}

.pos2 {
    top: -200px;
  right: 50px;
}

.pos3 {
    top: -350px;
  right: 50px;
}

.pos4 {
    top: -50px;
  left: 50px;
}

.pos5 {
    top: -200px;
  left: 50px;
}

.pos6 {
    top: -350px;
  left: 50px;
}


@keyframes example {
  0% {}
  20%, 100% {transform: translateY(100vh) translateY(350px);background-color: blue;}
}




/* Mobile Friendliness */

#actualAnswer, #answer {
  margin-left: 15vw;
  margin-right: 15vw;
  font-size: 3vw;
}

#buzz{
  font-size:2vw;
  height:5vw;
}

#scores{
  font-size: 1.8vw;
}

#board {
  font-size: 2vw;
}

#round,#settings,#correct,#incorrect {
  width: 50%;
  font-size: 1.8vw;
  padding: 7px 0
}

@media only screen and (max-width: 500px) {
  #actualAnswer, #answer {
    margin-left: 1vw;
    margin-right: 1vw;
    font-size: 5vw;
  }
  
  #buzz{
    font-size:3vw;
    height:12vw;
    padding-left: 0;
    padding-right: 0;
  }

  #scores{
    font-size: 3vw;
  }

  #board {
    font-size: 3vw;
  }

  #round,#settings,#correct,#incorrect {
    width: 100%;
    font-size: 3vw;
    padding: 5px 0;
  }

  #lockTimer3sec{
    height:21px

  }
}