body {
    background-color: #000000;

}

#soup-game-wrapper-red {
    position: relative;
    width: 950px;
    height: 750px;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    margin: 0 auto;  
    display: flex;
}
  
/* Start menu screen styling*/

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #4a4a4a 0%, #1a1a1a 60%, #000000 100%);
    z-index: 3;
}

#start-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    pointer-events: none;
    animation: screenFlicker 6s infinite;
}

@keyframes screenFlicker {
    0%, 96%, 100% { opacity: 0; }
    97% { opacity: 0.08; }
    98% { opacity: 0; }
    99% { opacity: 0.05; }
}

#play-button {
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    color: #ffffff;
    padding: 10px 60px;
    cursor: pointer;
    background-color: #000000;
    border: solid 2px #ffffff;
    border-radius: 40px;
    animation: pulseButton 1.5s ease-in-out infinite;
}

@keyframes pulseButton {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* static screen styling */

#static-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: none;
}

/* game screen styling */

#game-screen {
    display: none;
}

#soup-game-tv {
    position: relative;
    width: 800px;

}

#soup-game-tv img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}


#previous-guesses {
    position: absolute;
    top: 62.5%;
    left: 79.5%;
    width: 15.75%;
    height: 25.5%;
    background-color: #1a1e1c;
    color: white;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
    overflow-y: auto;
    padding: 5px;
    z-index: 6;
    border: solid 2px #817878;
    font-size: 1rem;
}

#soup-game-screen {
    position: absolute;
    top: 11%;
    left: 10%;
    width: 63%;
    height: 73%;
    background-color: #d47ba1;
}

#soup-game-screen::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #4d7a3e;
    background-image: 
        radial-gradient(circle, #6fa855 1px, transparent 1px),
        radial-gradient(circle, #8fc470 1px, transparent 1px),
        radial-gradient(circle, #2f4d24 1px, transparent 1px);
    background-size: 6px 6px, 9px 9px, 4px 4px;
    background-position: 0 0, 3px 4px, 5px 2px;
    border-top: solid 3px #000000;
}


.soup-bowl {
    position: absolute;
    top: 35%;
    left: 3.3%;
    border-radius:50% 50% 40% 40% / 30% 30% 70% 70%;
    border: solid 3px #000000;
    width: 450px;
    height: 350px;
    background-color: #e8dcc8;
}

.soup-broth {
    position: absolute;
    top: 4%;
    left: 0%;
    bottom: 43px;
    border-radius: 50% 50% 50% 50%;
    border: solid 3px #000000;
    width: 445px;
    height: 200px;
    background-image: radial-gradient(ellipse, #c9432e, #9e2a1f);
    animation: floatInBowl 3s ease-in-out infinite alternate;
    background-color: #9e2a1f;
}

/* answer-type styling */

#answer-type {
    position: absolute;
    top: 7%;
    left: 4%;
    width: 20%;
    height: 20%;
    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: #7e3f9e;
    overflow: hidden;
}

#category-label {
    color: #fc974a;
    font-size: 1rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    border-bottom: solid 2px #ffffff;
}

#category-value {
    color: #fc974a;
    font-size: 1.5rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
}

/* hint styling */

#hint {
    position: absolute;
    top: 5%;
    left: 27%;
    width: 43%;
    height: 25%;
    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: #d9782e;
    text-transform: uppercase;
    overflow: hidden;
}

#hint-label {
    color: #7e3f9e;
    font-size: 1.2rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    border-bottom: solid 2px #ffffff;
}

#hint-value {
    color: #7e3f9e;
    font-size: 1.4rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    font-weight: bold;
    
}



#round-counter {
    position: absolute;
    top: 7%;
    left: 73%;
    width: 20%;
    height: 20%;
    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: #c24e86;
    text-transform: uppercase;
    overflow: hidden;
}

#round-label {
    color: #fc974a;
    font-size: 1rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    border-bottom: solid 2px #ffffff;
}

#round-value {
    color: #fc974a;
    font-size: 3rem;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    
}

/* answer blanks styling */

/* container for answer */
#answer-area {
    position: absolute;
    top: 25%;
    left: 5%;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    white-space: normal;
}

/* blank underscore styling */
.blank-letter {
    height: 30px;
    width: auto;
    transform: rotate(90deg);
    margin: 0 15px;
    
}

.word-group {
    margin: 0 20px;
    display: inline-flex;
}

#answer-area img {
    height: 30px;
    width: auto;
    
}

.guessed-letter {
    height: 30px;
    width: auto;
    margin: 0 5px;
}

#soup-float {
    bottom: 20%;
    left: 23%;
    animation-delay: 0s;
}

.float {
    position: absolute;
    animation: floatInBowl 3s ease-in-out infinite alternate;
}

@keyframes floatInBowl {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
 } 

 /* guess input and submit button styling */

 #guess-input-area {
    position: absolute;
    bottom: 3%;
    left: 50%;
    
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    height: 8%;
    display: none;
}

#guess-input {
    color: #ffffff;
    font-size: 1.5rem;
    padding: 5px 10px;
    border: solid 4px #ffffff70;
    background-color: #56505095;
}


#submit-guess {
    color: #ffffff;
    font-size: 1.5rem;
    padding: 5px 20px;
    cursor: pointer;
    border: solid 4px #ffffff70;
    background-color: #56505095;
}

#submit-guess:hover {
    background-color: #24202095;
}


/* game result styling */
#result-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 5;
    text-align: center;
    display: none;
}

#colorblock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 4;
}

#result-message {
    position: absolute;
    top: 15%;
    left: 10%;
    height: 75%;
    width: 75%;
    color: white;
    font-family: "Caprasimo", serif;
    font-size: 2rem;
    z-index: 5;
    background-color: #00000095;
    border: solid 3px #ffffff50;
}

#play-again {
    position: absolute;
    top: 75%;
    left: 40%;
    background-color: #2277c4;
    color: #ffffff;
    height: 10%;
    width: 17%;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 5;
    border: 2px solid #ffffff;
}