:root {
    --gap: 8.33%;
    overflow: hidden;
}

arcade-body {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    min-height: auto;
    line-height: 1;
}

#startButton{
    width: auto;
    margin-top: 35px;
}

#gameContainer {
    width: 100vw;
    height: calc(100vh - 60px); /* Adjust for header height */
    position: relative;
    background-color: black;
}

#gameScreen {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #e57373 0%, #e57373 calc(0% + var(--gap)),
        #ffb74d 8.33%, #ffb74d calc(8.33% + var(--gap)),
        #fff176 16.66%, #fff176 calc(16.66% + var(--gap)),
        #81c784 25%, #81c784 calc(25% + var(--gap)),
        #4caf50 33.33%, #4caf50 calc(33.33% + var(--gap)), 
        #66bb6a 41.66%, #66bb6a calc(41.66% + var(--gap)), 
        #26a69a 50%, #26a69a calc(50% + var(--gap)), 
        #29b6f6 58.33%, #29b6f6 calc(58.33% + var(--gap)), 
        #42a5f5 66.66%, #42a5f5 calc(66.66% + var(--gap)),  
        #7e57c2 75%, #7e57c2 calc(75% + var(--gap)), 
        #ab47bc 83.33%, #ab47bc calc(83.33% + var(--gap)), 
        #8e24aa 91.66%, #8e24aa 100%);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    z-index: 2000;
    width: 300px;
    height: 250px;
    display: none; /* Hidden by default */
}


#gameOverModal{
    height: 190px;
    top: 80%;
}

.modal.active {
    display: block;
}

.modal button {
    padding: 10px 20px;
    background-color: #008080; /* Teal */
    color: white;
    border: none;
    cursor: pointer;
    width: 115px;
    border-radius: 20px;
    margin-inline: 3px;
}

.modal button:hover {
    background-color: #FFA500; /* Secondary (Orange) */
    color: white;
    border: 2px solid #FFA500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none; /* Hidden by default */
}

.overlay.active {
    display: block;
}

#gameContainer {
    width: 100vw;
    height: calc(100vh - 60px); /* Adjust for header height */
    position: relative;
    background-color: black;
}

.noteSection {
    height: calc(100% / 12);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 10px;
    font-size: 1.5rem;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#player {
    width: 40px; /* size for collision detection */
    height: 40px; /* size for collision detection */
    background: transparent;
    position: absolute;
    left: 100px; 
    top: 50%; 
    transform: translateY(-50%) scale(2.8); /* Visually scale the guitar (2x size) */
    background-image: url('/assets/img/guitar.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease; /* Smooth transformation when moving */
}

.pipe {
    position: absolute;
    width: 80px;
    background: green;
    transition: left 0.1s;
}

.pipe.top {
    top: 0;
}

.pipe.bottom {
    bottom: 0;
}

.retroButton {
    outline:none;
    border:none;
    cursor:pointer;
    display:block;
    position:relative;
    background-color:#008080;
    font-size: 20px;
    color:white;
    text-transform: uppercase;
    letter-spacing:2px;
    padding: 15px 80px;
    margin: 0 auto;
    border-radius:50px;
    box-shadow: 0 6px #28283d;
    top: 80px;
    margin-top: -35px;
}

.retroButton:hover{
    box-shadow: 0 4px #28283d;
    top: 82px;
}

.retroButton:active{
    box-shadow: none;
    top: 86px;
}

#start-screen{
    text-align: center;
}

#title{
    width: max-content;
    margin-top: 75px;
    font-size: 75px;
    padding-inline: 40px;
    border-radius: 50px;
    border-width: 2px;
    border-style: dashed;
    color: #008080;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#triviaContainer{
    text-align: center;
    justify-items: center;
    justify-content: center;
}

#timer{
    font-size: 50px;
    color: #006464;
    margin-top: 50px;
    border-width: 2px;
    border-radius: 50px;
    border-style: double;
    width: 400px;
    position: relative;
    left: 50%;
    transform: translateX(-50%)

}

#time-left{
    font-weight: bold;
}

#question-container{
    font-size: 30px;
}

#question{
    font-size: 30px;
    color: #008080;
    margin-top: 50px;
    border-width: 1px;
    border-radius: 50px;
    border-style: double;
    width: 700px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding-inline: 20px;
}

#score{
    width: max-content;
    margin-top: 75px;
    font-size: 40px;
    padding-inline: 40px;
    border-radius: 50px;
    border-width: 2px;
    border-style: dashed;
    color: #008080;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

}

#options {
    display: grid;
    justify-content: center;
    height: 200px;
    line-height: 190px;
    grid-template-columns: repeat(2, 350px); /* Creates 2 columns of equal width */
    gap: 10px; /* Adds space between grid items */
    list-style-type: none; /* Removes default list bullets */
    padding: 0; /* Removes default padding */
    text-align: center;
    color: white;
}

coso{background-color: #d51515;}


#options li {
    padding: 10px;
    background-color: #008080;
    text-align: center;
    cursor: pointer;
    border-radius: 10px; /* Optional: rounds the corners */
    transition: background-color 0.3s ease; /* Optional: smooth hover effect */
}

#options li:hover {
    background-color: #009f9f; /* Optional: highlight on hover */
}


#scoreContainer{
    display: grid;
    grid-template-columns: repeat(15, 3%);
    text-align: center;
    justify-items: center;
    justify-content: center;
    position: absolute;
    margin-top: 15%;
    margin-bottom: 15%;
    top: 20%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.scoreBall{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #b5b5b5;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

#levelCounter{
    top: 20px;
    position: relative;
}