html, body {
    margin: 0;
    height: 100%;
    font-family: sans-serif;
    background: #80dbff31;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    background: linear-gradient(120deg, #80dbff31, #c2f3fa);
    box-sizing: border-box;
}

#page {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: auto;
    gap: 10px;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 0%;
    max-width: 40%;
    height: 100%;
    min-height: 0;
}

#mapWrapper {
    flex: 1;
    background: rgba(194, 243, 250, 0.644);
    border: 1px solid #ccc;
    min-height: 0;
    position: relative;
}

#menu {
    text-align: center;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    gap: 12px;
    justify-content: center;
}

.menu-btn {
    display: block;
    width: min(80vw, 300px);
    aspect-ratio: 1 / 2;

    background: white;
    color: black;
    text-decoration: none;

    border-radius: 10px;
    font-size: min(70vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.15s ease;
}

.menu-btn:hover {
    background: rgb(241, 241, 241);
}

#homeButton {
    position: fixed;
    top: 10px;
    right: 10px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgb(226, 248, 250);
    color: black;
    text-decoration: none;

    border-radius: 6px;
    font-size: 20px;

    z-index: 9999;

    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.diamond-btn {

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: #646464;
    cursor: pointer;

    border-radius: 10px;
    transition: background 0.15s ease;
}

.diamond-btn:hover {
    background: #5e5e5e;
}

#notice {
    font-size: 16px;
    line-height: 1;
    margin: 0;
}

#continue {
    line-height: 1;
    margin-top: auto;
    text-align: center;
    font-size: 32px;
    cursor: pointer;

    position: absolute;
    bottom: 10px;
    right: 10px;

    display: flex;
    flex-direction: column;

    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 100px;
    padding-right: 100px;
    border-radius: 6px;
    border: 0;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

#legend {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    
    position: absolute;
    top: 10px;
    left: 10px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 8px;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);

    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    pointer-events: none;
}

#legend.show { 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; 
}

#legend_colors {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    
    position: absolute;
    bottom: 10px;
    left: 10px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 8px;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);

    font-size: 12px;
}

#legend_colors.show { 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; 
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    display: inline-block;
}

.color-box.correct { background: #2ECC71; }

.color-box.wrong { background: #E74C3C; }

.color-box.missing { background: #1F6FEB; }