:root {
    --bg-color: #bcdceb;
    --text-color: #07032bb4;
    --tile-bg-color: #ffffff;
    --tile-attempted-bg-color: #07032b;
    --correct-letter-placement: #60ee5b;
    --letter-present: #fdff69;
    --letter-absent: #ff7c7c;
    --key-bg-color: #ffffffc9;
    --key-text-color: #07032bb4;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --tile-bg-color: #478a688f;
    --tile-attempted-bg-color: #070707;
    --correct-letter-placement: #91f88d;
    --letter-present: #f1f379;
    --letter-absent: #b92323;
    --key-bg-color: #ffffff6b;
    --key-text-color: #07032bde;
}

body {
    font-family: "Sono", monospace;
    font-weight: bold;
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

.opening-message {
    position: fixed;
    width: 94vw;
    height: 98vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #cdf033;
    z-index: 5;
    font-size: 1rem;
    color: #000000c7;
    padding: 1rem;
}
.icon {
    font-size: 5rem;
}

.opening-message span {
    font-size: 1rem;
    color: #000000;
}

.opening-message button {
    background-color: #000000;
    border: solid 1px;
    border-radius: 5px;
    color: #cdf033;
    font-family: "Sono", monospace;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem;
}

.animate__zoomInDown {
    --animate-duration: 4s;
}

.animate__slideInLeft {
    --animate-duration: 10s;

}

.animate__slideInRight {
    --animate-duration: 10s;
}

.animate__jackInTheBox {
    --animate-duration: 2s;
}

.opening-message p:first-of-type {
    margin-top: 2rem;
}

ul {
    text-align: start;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: lighter;
    letter-spacing: 0.1rem;
    color: var(--text-color);
    margin-top: 1rem;
}

#theme-toggle {
    background: var(--text-color);
    width: 2rem;
    border-radius: 1rem;
    padding: 0.25rem;
    position: absolute;
    border: 0;
    top: 1rem;
    right: 1rem;
}

.toggle-icon {
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--tile-bg-color);
    border-radius: 100%;
    cursor: pointer;
}

.dark-theme-on {
    position: relative;
    left: 0.9rem;
    background: var(--tile-attempted-bg-color);
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.row {
    width: 18rem;
    height: 3rem;
    margin: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.tile {
    height: 100%;
    width: 20%;
    background: var(--tile-bg-color);
    font-family: "Sono", monospace;
    font-weight: bold;
    display: flex;
    place-content: center;
    align-items: center;
    font-size: 1.75rem;
    color: var(--text-color);
    border-radius: 2px;
}

.correct-letter-placement{
    background: var(--correct-letter-placement);
    font-size: 2rem;
    color: var(--tile-attempted-bg-color);
    border-radius: 5px;
}

.letter-present{
background: var(--letter-present);
    font-size: 2.2rem;
    color: var(--tile-attempted-bg-color);
}

.letter-absent{
background: var(--letter-absent);
    font-size: 1.8rem;
    color: var(--key-bg-color);
}

.container-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    width: 99%;
}

.key, .enter-key, .delete-key {
    height: 2.6rem;
    min-width: 2.2rem;
    padding: auto 0.3rem;
    margin: 0.3rem -0.2rem;
    cursor: pointer;
    font-family: "Sono", monospace;
    font-size: 1.3rem;
    font-weight: 500;
    border: none;
    border-radius: 2px;
    background-color: var(--key-bg-color);
    color: var(--key-text-color);
}

footer {
    text-align: center;
    color: var(--text-color);
    margin-top: 3rem;
}

.message-container {
  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 */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(23, 70, 14, 0.637); /* Black w/ opacity */
}

.alert-message {
    display: none;
    background-color: #e900006b;
    color: #ffffff;
    position: absolute;
    text-align: center;
    margin: auto;
    width: 13rem;
    padding: 0.5rem;
    margin-left: 2.5rem;
    margin-top: -1.3rem;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
}

/* Modal Content/Box */
.modal-content {
  background-color: #124e1a;
  color: #ffffffc2;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin: 10rem auto;
  padding: 1.2rem;
  width: 24rem;
}

.result-message em, .es-message em {
    font-size: 1.5rem;
    color: rgb(135, 255, 155);
}

.es-translation strong {
    font-size: 1.75rem;
    color: rgb(131, 255, 114);
    text-transform: capitalize;
}

.message button {
    background-color: #91f88d;
    border: solid 1px;
    border-radius: 5px;
    color: #124e1a;
    font-family: "Sono", monospace;
    font-weight: bold;
    font-size: 1rem;
}


@media (max-width: 380px) {
    h1 {
    font-size: 2.3rem;
    margin-top: 2rem;
}

    .row {
    width: 16rem;
    height: 2.5rem;
    margin: 0.3rem;
    gap: 0.3rem;
}

    .key, .enter-key, .delete-key {
    height: 2.4rem;
    min-width: 1.8rem;
    padding: auto 0.2rem;
    margin: 0.3rem -0.2rem;
    cursor: pointer;
    font-family: "Sono", monospace;
    font-size: 1.3rem;
    font-weight: 500;
    border: none;
    border-radius: 2px;
    background-color: var(--key-bg-color);
    color: var(--key-text-color);
}

.modal-content {
  font-size: 1.1rem;
  padding: 1.2rem;
  width: 18rem;
}

.result-message em, .es-message em {
    font-size: 1.3rem;
    color: #87ff9b;
}

.es-translation strong {
    font-size: 1.5rem;
    color: #83ff72;
}
}