body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #B3E1F8;
    margin: 0;
    padding: 0;
}
h1 {
    margin: 20px 10px;
    font-size: 2.5em;
    text-align: center;
    width: 100%;
}
.titleText {
  display: block;
  font-family: "Arial Rounded MT Bold", "Comic Sans MS", sans-serif;
  color: white;

  text-shadow:
    -2px -2px 0 #9ed0f5,
     2px -2px 0 #9ed0f5,
    -2px  2px 0 #9ed0f5,
     2px  2px 0 #9ed0f5,
     0  4px 6px rgba(0,0,0,0.15);
}
#titleText1 {
    display: inline-block;
    padding-right: 0px;
    font-variant: small-caps;
    font-family: "Arial Rounded MT Bold", "Comic Sans MS", sans-serif;
    font-size: 64px;
    color: #5ea0f5;

    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px  2px 0 #fff,
        2px  2px 0 #fff,
        0  4px 6px rgba(0,0,0,0.15);
}
#titleText2 {
    display: inline-block;
    padding-left: 0px;
    font-variant: small-caps;
    font-family: "Arial Rounded MT Bold", "Comic Sans MS", sans-serif;
    font-size: 64px;
    color: #5ef5a0;

    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px  2px 0 #fff,
        2px  2px 0 #fff,
        0  4px 6px rgba(0,0,0,0.15);
}
#gameTitle {
    text-align: center;
    margin-top: 20px;
}
#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    margin-top: 70px; 
}
/* #countdown {
    font-size: 1.5em;
    padding: 10px;
    background-color: #333!important;
    font-weight: bold;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: #f0f0f0!important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease-in-out;
    position: absolute;
    left: 0;
} */

#countdown {
    font-size: 2em;
    font-weight: bold;
    padding: 10px;
    color: #000;
    border-radius: 8px;
    text-align: center;
    position: fixed;
    /* top: 10px;
    right: 10px;
    z-index: 100; */
    transition: all 0.3s ease-in-out;
    animation: countdownBlink 1s infinite;
}
/* Countdown animation */
@keyframes countdownBlink {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

#status {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
}
#lives {
    font-size: 1.5em;
    margin: 0 10px;
}
#level {
    background-color: #333;
    color: white;
    font-size: 0.8em;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 15px;
}
#controls {
    margin: 20px;
    text-align: center;
}
#controls button {
    font-size: 1.5em;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    margin: 0 10px;
    cursor: pointer;
}
#startButton {
    background-color: #4CAF50;
    color: white;
    transition: all 0.3s ease-in-out;
    animation: startButtonBlink 1s infinite;
}
/*  startButton animation */
@keyframes startButtonBlink {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }

}
#startButton:hover {
    background-color: #2C8F30;
}
#stopButton {
    background-color: #f44336;
    color: white;
}
.bigButton {
    font-size: 1em;
    padding: 5px 5px;
    cursor: pointer;
}
#game {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
}
.card {
    width: 45%;
    padding: 10px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
.word {
    cursor: pointer;
    margin: 5px;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.2s;
    font-size: 1.2em;
}
.word:hover {
    transform: scale(1.2);
}
#message {
    margin-top: 10px;
    font-size: 1em;
    color: green;
    text-align: center;
}
.hidden {
    display: none!important;
}
#topLeftMenu {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 60%;
    padding-bottom: 20px;
}
.topMenuButton {
    background-color: lightblue;
    color: #333;
    font-size: 1.5em;
    text-decoration: none;
    /*border: 2px solid;*/
    border-radius: 35px;
    border-color: #333;
    padding: 4px 6px 4px 6px;
    margin: 1px 1px 6px 1px;
    cursor: pointer;
}
@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }
    #controls button {
        font-size: 1.3em;
        padding: 4px 10px;
    }
    #game {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
    }
    .word {
        margin: 4px;
        padding: 3px;
        font-size: 1em;
    }
}
@media (max-height: 500px) {
    #header {
        flex-direction: column;
    }
    #countdown {
        position: static;
        margin-bottom: 8px;
    }
    #status {
        position: static;
        margin-top: 6px;
    }
}
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.popup.active {
    display: block;
}
.popup-header {
    font-size: 20px;
    margin-bottom: 10px;
}
.popup-body {
    margin-bottom: 20px;
}
/*.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}*/

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 
        0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.lang-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.lang-dropdown.open .lang-dropdown-content {
    display: block;
}
.lang-dropdown-content a:hover {
    background-color: #c9c9c9;
}
.italic {
    -webkit-transform: skew(-5deg);
    -moz-transform: skew(-5deg);
    -o-transform: skew(-5deg);
    -ms-transform: skew(-5deg);
    transform: skew(-5deg);
}
.inverse_italic {
    -webkit-transform: skew(5deg);
    -moz-transform: skew(5deg);
    -o-transform: skew(5deg);
    -ms-transform: skew(5deg);
    transform: skew(5deg);
}

/*.lang-dropdown:hover {
    background-color: #3e8e41;
}*/