html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; 
    background-color: lightblue;
}

.hidden {
    display: none;
}

/* Street View */
#street-view, #image-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* UI Overlay Container*/
#ui-elements {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    /* allow clicks to pass through the overlay container so Street View underneath can be clicked,
       but enable pointer-events on actual interactive children (buttons/inputs) below */
    pointer-events: none;
}

#ui-elements .timer {
    background-color: rgba(96, 18, 117, 0.9);
    color: white;
    text-align: center;
    padding: 8px 16px;
    border-radius: 10px;
}

#ui-elements h2, h1 {
    background-color: white;
    text-align: center;
    border-radius: 5px;
}

/* Make interactive controls inside the UI clickable while keeping the container click-through */
#ui-elements button,
#ui-elements a,
#ui-elements input,
#ui-elements select,
#ui-elements textarea {
    pointer-events: auto;
}

#map-ui-container {
    position: fixed;
    bottom: 3px;
    right: 2px;
    z-index: 1000;
    
    width: 25%;
    height: auto;
    transition: width 0.15s;

    pointer-events: auto;
    
    /* Arrange map and button vertically */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Enlarge the container (and its children) on hover */
#map-ui-container:hover {
    width: 50%;
}

/* Mini Map */
#map {
    width: 100%;
    height: 30vh;
    
    border-radius: 4px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    background-color: #e0e0e0; /* shouldn't be visible */
    transition: height 0.15s;
    overflow: hidden; /* keeps map inside the corners */
}

#map-ui-container:hover #map {
    height: 60vh;
}

#submit-guess {
    width: 100%;
    height: 50px;

    z-index: 1001;
    
    color: #ffffff;

    background-color: #6fa51d;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submit-guess:hover {
    background-color: #547d17;
}

/* index.html */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 65vh;
    text-align: center;
}
.img-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: flex-start;
}
.img-container img {
    width: 16%;
    height: auto;
}
.img-container #uci-map {
    border-radius: 50%;
}
.center-content h1 {
    font-size: 6rem;
    color: darkblue;
    position: relative;
    background: none;
}
.center-content h1::after {
    content: '';
    position: absolute;
    bottom: -0.2rem;
    left: -50%;
    width: 200%;
    height: 7px;
    background: linear-gradient(120deg, transparent, gold, transparent);
}
.center-content h2 {
    font-size: 2rem;
    margin-top: 2px;
    margin-bottom: 15px;
}

#start-button {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    background-color: #0062ff;
    color: white;
}
#start-button:hover {
    background-color: #004ecc;
}

#instructions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 30px;
    border-radius: 20px;
}
#instructions h2, h3 {
    text-align: center;
}