@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Open Sans", sans-serif;
}

#panorama {
    width: 100vw;
    height: 100vh;
}

#guess_box {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-bottom: 20px;
    padding-right: 20px;
    width: 20%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

#map {
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-radius: 8px;
    transition: all 0.3s;
}

#guess_button {
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(to top, #b10f14, #b83b40);
    text-shadow: 3px 3px 1px darkred;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    display: none;
    width: 90%;
    border: none;
}

#guess_button:disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

#guess_box:hover {
    width: 35%;
    height: 400px;
}

#guess_box:hover #guess_button {
    display: block;
    transition: transform 0.2s;
}

#guess_box:hover #guess_button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#round_popup {
    text-align: center;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 15%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: none;
}

#round_popup.show {
    display: flex;
    flex-direction: column;
}

#round_popup h1 {
    margin: 0;
    font-size: x-large;
}

#round_popup p {
    margin: 0;
}

#next_round_button {
    margin: auto;
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(to top, #b10f14, #b83b40);
    text-shadow: 3px 3px 1px darkred;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    border: none;
    transition: transform 0.2s;
}

#next_round_button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#final_screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #130e2b;
    color: white;
    font-family: "Open Sans", sans-serif;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    display: none;
}

#final_screen.show {
    display: flex;
}

#final_title {
    margin: 0;
    font-size: 4em;
    font-weight: 700;
}

#final_rounds {
    width: 900px;
    display: grid;
    gap: 10px;
}

.final_round_row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2em;
}

.score_bar_wrap {
    position: relative;
    width: 900px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

#score_bar_fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #7f0f14, #b10f14, #b83b40);
    border-radius: 50px;
    transition: width 1s ease;
}

#score_bar_text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.final_buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.final_buttons button {
    padding: 8px 30px;
    background: linear-gradient(to top, #b10f14, #b83b40);
    text-shadow: 3px 3px 1px darkred;
    color: white;
    font-weight: 700;
    font-size: 1.5em;
    border-radius: 8px;
    border: none;
    transition: transform 0.2s;
}

.final_buttons button:hover {
    cursor: pointer;
    transform: scale(1.1);
}