/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

*{
    text-align: center;
}

.entire-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#container{
    display: flex;
    gap: 25px;
}

#container img{
    height: 100px;
    width: 100px;
}
button{
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.2rem;
   
  
}

.button-languages{
  font-size: 1.4em;
  border: 0;
  background-color: white;
}

.modal-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgb(42, 42, 42);
    opacity: 0.975;
}

.modal{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: rgb(252, 252, 252);
    width: 40%;
    max-width: 100%;
    padding: 1rem;
    opacity: 1;
    
    border-radius: 1.5rem;

}

.options-container{
  width: 90%;
  height: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  grid-template-rows: 25px repeat(4, 60px);
  border: 1px solid black;
  border-radius: 2rem;
  padding: 1.5rem;
    
}

.optionButtons{
   box-shadow: 0 9px #999;
  
}

.optionButtons:active{
box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.optionButtons:disabled{
    cursor: initial;
    background-color: #666;
    opacity: 0.8;
}

#human-option-placeholder{
    width: 200px;
    grid-column: 1/2;
    grid-row: 2/5;
   
}



.computer-option-placeholder{
  grid-column: 3/4;
  grid-row: 1/5;
  display: grid;
  grid-template-rows: 2rem 1fr 1fr;
  grid-template-columns: repeat(5,1fr);
  justify-items: center;
}

.human-option-placeholder{
  grid-column: 1/2;
  grid-row: 1;
  display: grid;
  grid-template-rows: 2rem 1fr 1fr;
  grid-template-columns: repeat(5,1fr);
  justify-items: center;
  align-items: center;
}

.scores.human{
  grid-row: 3;
  grid-column: 3;
}

.scores.computer{
  grid-row: 3;
  grid-column: 3;
}

.rounds{
  grid-column: 2 ;
  grid-row: 5 ;
  align-self:flex-end;
}
.weo{
  grid-row: 1/2;
  grid-column: 3;
  align-self: flex-start;
}

.point_image {
  animation-duration: 1s;
  animation-name: slide-in;
  width: 2rem;
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
}


#computer-option-placeholder,
#human-option-placeholder{
    width: 90%;
    max-width: 200px;
    grid-column: 1/6;
    grid-row: 2;
   
}
.buttons-result{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#play-button{
  background-color: white;
  border: 2px solid #04AA6D;
  padding: 0.5rem 1.5rem;
  transition-duration:0.4s;
}
#play-button:hover{
  background-color: #04AA6D;
  color: white;
}

#play-again-button{
  background-color: white;
  border: 2px solid #04AA6D;
  padding: 0.2rem 0.8rem;
  transition-duration:0.2s;
}

#play-again-button:hover{
  background-color: #04AA6D;
  color: white;
}

#close-button{
  background-color: white;
  border: 2px solid #f44336;
  padding: 0.2rem 0.8rem;
  transition-duration:0.2s;
}

#close-button:hover{
  background-color: #f44336;
  color: white;
}

#vs{
  grid-row: 3;
  grid-column: 2/3;
  align-self: center;
}

#draw{
  animation-duration: 1s;
  animation-name: slide-in;
  grid-row: 4;
  grid-column: 2;
  align-self: center;
}


@keyframes slide-in {
  from {
    translate: 0 15vh;
    scale: 150% 1;
  }

  to {
    translate: 0 0;
    scale: 100% 1;
  }
}

@media (max-width:600px){

  .modal{
    width: 100%;
    margin: 1rem;
  }

  .options-container{
    width: 100%;
    padding: 0.8rem;
  }

  .human-option-placeholder,
  .computer-option-placeholder{
    grid-row: 2/5;
    height: 100%;
   grid-template-columns: 1fr;
   grid-template-rows: 15px 2rem 1fr 1fr;
    
  }

  .weo{
    grid-row: 2/3;
    grid-column: 3;
    
  }



  .point_image{
    grid-column: 2/4;
    align-self: flex-start;
    width: 1rem;
    opacity: 0.8;
  }

  .scores.computer,
  .scores.human{
    grid-row: 4;
    grid-column: 3;
  }

  #human-option-placeholder,
  #computer-option-placeholder{
    height: 100%;
    width: 100%;
    grid-row: 3;
    grid-column: 3;
  }
  

  #container{
    padding: 1rem;
  }
}
