html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

@font-face {
    font-family: 'Azedo-Bold';
    src: url('fonts/Azedo-Bold.otf');
}

@font-face {
    font-family: 'EurostileBold';
    src: url('fonts/EurostileBold.ttf');
}

/* TITLE SCREEN */
#start-button {
    position: fixed;
    color: #B2FF66;
    top: 55%;
    left: 70%;
    z-index: 1000;
    font-size: 30px;
}


/* FOR SOLAR MAP */
.button-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-button {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 6px 12px;
    color: white;
    font-family: 'Azedo-Bold';
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #003300
}

.map-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Inside the map */
#conclusion-button {
    position: fixed;
    font-family: 'Azedo-Bold';
    top: 90%;
    right: 1%;
    z-index: 1000;
    padding: 10px 20px;
    background: none;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px #003300
}

#conclusion-button:hover {
    transform: scale(1.05);
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#intro-text-box {
    color: white;
    font-family: 'EurostileBold';
    font-size: 25pt;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#intro-text-box:hover {
    transform: scale(1.05);
}


/* buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    color: white;
    font-family: 'Azedo-Bold';
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

button:hover {
    transform: scale(1.15);
}

/* CONCLUSION STUFF */
#conclusion-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    z-index: 10;
}

#conclusion-text {
    background: none;
    text-align: center;
    color: #003366;
    font-family: EurostileBold;
    transition: all 0.3s ease;
}

h1:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

#poll-container {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, 0);
    display: none;
    text-align: center;
    margin-top: 20px;
    z-index: 10;
}

#poll-container button {
    font-size: 20px;
    padding: 10px 20px;
    text-align: center;
    margin: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: background-color 0.3s ease;
}

#results-container {
    font-family: 'EurostileBold';
}

#results-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 300px;
    /* space between yes / no blocks */
}

.poll-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;

}

.poll-result-label {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #003366;
}

.poll-result-percentage {
    flex-direction: row;
    font-size: 50px;
    color: #003366;
}

#restart {
    color: #003366;
    text-align: center;
    font-size: 30px;
    position: relative;
    margin-top: 75px;
    text-decoration: none;
}

#restart:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

#external-link {
    white-space: nowrap;
    position: fixed;
    left: 50%;
    top: -35%;
    transform: translate(-50%, -50%);
    font-family: 'EurostileBold';
    color: #003366;
    font-size: 30px;
    text-align: center;
    z-index: 10;
}

#loading-spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}