* {
    box-sizing: border-box;
}
body {
    background-color: #121212;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

body,
fieldset {
    margin: 0;
    padding: 0;
}

html {
    /* body won't work ¯\_(ツ)_/¯ */
    scroll-snap-type: y mandatory;
    font-size: 14px;
}

#vote {
    position: relative;
}

#vote fieldset {
    text-align: center;
    border: none;
}

#vote input[type=radio] {
    display: none;
}

#vote label {
    scroll-snap-align: start;
    width: 100dvw;
    height: 100dvh;
    padding: 2dvh;
    padding-bottom: 7dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

button {
    min-width: 5dvw;
    background-color: black;
    font-size: 2em;
    border: .1dvw solid #f1b434;
    border-radius: 5px;
    color: white;
}

#vote button {
    position: fixed;
    top: 80dvh;
    right: 5%;
}

#register {
    margin-top: 3em;
    display: flex;
    flex-direction: column;
    gap: .5em;
    max-width: 80ch;
}

#register label,
#register input {
    font-size: 1.5rem;
}

#register button {
    margin-top: 1em;
}

footer button {
    border: none;
    border-bottom: 1px solid #f1b434;
    color: #f1b434;
    cursor: pointer;
    font-size: 1em;
}

#vote label .icon {
    display: none;
    color: #f1b434;
    border: .1dvw solid #f1b434;
    border-radius: 50%;
    position: absolute;
    top: 10dvh;
    right: 6dvw;
    width: max(50px, 5dvw);
    height: auto;
}

#vote label .icon.unchecked {
    display: block;
}

#vote label:has(:checked) .icon.checked {
    display: block;
}

#vote label:has(:checked) .icon.unchecked {
    display: none;
}

img {
    margin: 0 auto;
    width: auto;
    height: 100%;
    max-width: 100dvw;
    max-height: 80dvh;
    object-fit: scale-down;
}

legend {
    position: fixed;
    padding-top: 10px;
    top: 0;
    left: 0;
    height: 5dvh;
    background-color: black;
    display: block;
    width: 100%;
}

footer {
    min-height: 7dvh;
    width: 100%;
    background-color: black;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer label {
    width: 95%;
}

.thank-you-for-voting {
    position: fixed;
    z-index: 1000;
    border: 1px solid white;
    background-color: black;
    top: 50%;
    margin: 0 auto;
    padding: 3dvh;
    font-size: max(3dvw, 25px);
}

:has(.thank-you-for-voting) #vote .icon,
:has(.thank-you-for-voting) #vote button {
    display: none !important;
}