html,
body {
  background: var(--default);
}


.modal-instructions{
  background-color: yellow;
}

.show-modal{
  display: block;
}


:root {
  --default: #121213;
  --empty: #3a3a3c;
  --wrong: #b59f3b;
  --right: #538d4e;
}

#game {
  display: flex;
  justify-content: center;
  align-items: start;
  margin-top: 5rem;
  width: 100%;
  height: 72vh;
}

.grid {
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-template-columns: repeat(5, auto);
}

.box {
  width: 60px;
  height: 60px;
  border: 2px solid var(--empty);
  margin: 4px;
  color: white;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
}

.box.empty {
  background: var(--empty);
}

.box.wrong {
  background: var(--wrong);
}

.box.right {
  background: var(--right);
}

.animated {
  animation: flip 0.5s ease;
}

@keyframes flip {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

.title {
  color: white;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  margin-bottom: 0;
  position: relative;
}


.v-separator {
  margin-left: 1rem;
  margin-right: 1rem;
}

.footer {
  display: flex;
  justify-content: center;
  color: white;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


#keyboard {
  /* background-color: yellow; */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
}

.row {
  display: flex;
  justify-content: center;
  margin: 4px 0;
  flex-wrap: wrap;
}

.key {
  padding: 10px 20px;
  margin: 4px;
  font-size: 1.5em;
  border: none;
  background-color: #3a3a3c;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  flex: 1 1 auto;
  text-align: center;
}

.key:active {
  background-color: #535353;
}



.bg-modal{
  height: 100Vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.bg-modal.show {
  opacity: 1;
  visibility: visible;
}


.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  width: 70vw;
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.modal-content h2 {
  color: #007bff;
  margin-bottom: 20px;
}
.modal-content p, .modal-content ul {
  font-size: 1.1em;
  margin-bottom: 10px;
}
.modal-content ul {
  padding-left: 0;
  margin-left: 0;
  text-align: center;
  /* background-color: yellow; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: s;
  list-style: none;
}

.modal-content ul li::before {
  content: "•";
  color: #007bff;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.modal-content em {
  color: #6c757d;
  font-style: italic;
}

.green-box{
  background-color: #538d4e;
  padding: 2px 3px;
  color: white;
}

.yellow-box{
  background-color: #b59f3b;
  padding: 2px 3px;
  color: white;
}

.no-display{
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: none;
}

/* Media Queries */

/* Cellphones */
@media (max-width: 600px) {

  .title {
    color: white;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
    position: relative;
  }
  

  
.box {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

  .key {
    /* background-color: red; */
    padding: 4px 8px;
    font-size: 1em;
    margin: 0px 2px;
  }

  .row {
    display: flex;
    width: 100%;
    /* background-color: yellow; */
    justify-content: center;
    margin: 4px 0;
    flex-wrap: nowrap;
  }

  /* Modal */
  .modal-content {
    font: 8px;
    /* background-color: yellow; */
    width: 90%;
    height: 80vh;
    padding: 10px;
  }

  .modal-content h2 {
    font-size: 1.5em;
  }

  .modal-content ul {
    
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    /* background-color: yellow; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: s;
    list-style: none;
  }

  .modal-content p,
  .modal-content ul {
    font-size: 11px;
  }
  
}

/* Tablets */
@media (min-width: 601px) and (max-width: 900px) {
  .key {
    padding: 10px 18px;
    font-size: 1.3em;
  }

   /* Modal */
   .modal-content {
    width: 80%;
    padding: 25px;
  }

  .modal-content h2 {
    font-size: 1.75em;
  }

  .modal-content p,
  .modal-content ul {
    font-size: 1.1em;
  
}
}

/* Desktop (default, no changes needed) */
@media (min-width: 901px) {
  .key {
    padding: 10px 20px;
    font-size: 1.5em;
  }
  #keyboard {
    display: none;
  }

}



