html,
body {
    padding: 0px;
    margin: 0px;
}

body {
    padding-inline: 20px;
}

h1 {
    font-size: 4em;
    font-weight: bold;
    color: white;
    background: repeating-linear-gradient(-45deg, red 0%, yellow 7.14%, rgb(0, 255, 0) 14.28%,
            rgb(0, 255, 255) 21.4%, cyan 28.56%, blue 35.7%, magenta 42.84%, red 50%);
    background-size: 100vw 100vw;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    animation: slide 2s linear infinite forwards;

}

output {
    grid-area: right;
}

label {
    display: block;
}

input {
    display: block;
    position: relative;
    padding: 5px;
    width: 10vw;
    border-radius: 6px;
    border: none;
    outline: none;
    z-index: 3;
}

fieldset {
    border: none;
}

button {
    /* margin-top: 15%; */
    font-size: 2em;
}

.btn {
    padding: 15px 30px;
    max-width: min-content;
    text-wrap: nowrap;
    border: none;
    outline: none;
    color: #FFF;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
}

.btn::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    left: 0;
    top: 0;
    border-radius: 10px;
}

/* glow */
.btn::before {
    content: "";
    background: linear-gradient(45deg,
            #FF0000, #FF7300, #FFFB00, #48FF00,
            #00FFD5, #002BFF, #FF00C8, #FF0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

.two-column {
    /* height: 100%; */
    width: 100%;
    padding: 0%;
    padding-top: 0%;
    font-size: 1.5em;
    display: grid;
    grid-template-areas:
        "left right"
    ;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10%;
}

.left-elements {
    grid-area: left;
    display: flex;
    flex-flow: column;
    gap: 10%;
}

.left-elements label {
    margin-block-end: 1em;
}

.questions {
    vertical-align: middle;
    float: left;
    padding-top: 10%;
}

.bow {
    contain: layout;
    width: 10vw;
    z-index: 3;
    display: flex;
    padding: 5px;
    border-radius: 10px;
    background: linear-gradient(to right,
            #ffa500,
            #ffff00,
            #008000,
            #00ffff,
            #ee82ee);
    align-items: center;
    justify-content: center;

    &::before {
        content: "";
        position: absolute;
        z-index: 2;
        width: 105%;
        height: 105%;
        background: linear-gradient(to right,
                #ffa500,
                #ffff00,
                #008000,
                #00ffff,
                #ee82ee);
        filter: blur(20px);
        opacity: 0;
        transition: opacity 0.3s;
    }

    &:has(> input:focus)::before {
        opacity: 1;
    }

    >input[type="checkbox"] {
        width: revert;
    }

    fieldset:has(&)>label {
        display: inline-block;
        padding-inline-end: 0.5em;
    }

    &:has(> input[type="checkbox"]) {
        display: inline-block;
        width: min-content;
        padding: 1px;
    }
}

#pyramid {
    display: block;
    white-space: pre;
    font-weight: bold;
    font-size: 2.5em;
    font-family: monospace;
    text-align: left;
    padding-top: 5%;
    color: white;
    background: repeating-linear-gradient(-45deg, red 0%, yellow 7.14%, rgb(0, 255, 0) 14.28%,
            rgb(0, 255, 255) 21.4%, cyan 28.56%, blue 35.7%, magenta 42.84%, red 50%);
    background-size: 100vw 100vw;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    animation: slide 10s linear infinite forwards;
}

@keyframes slide {
    to {
        background-position-x: 100vw;
    }
}


@keyframes glowing {
    to {
        background-position-x: 600%;
    }
}