:root {
    --primary-color: #1eecfb;
    --hover-color: #1eecfb;
    --font-family: "novecento-sans-condensed", sans-serif;
}

body {
    margin: 0;
    padding: 0;

    font-family: var(--font-family);
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(30, 236, 251, 33%);

    background-color: black;
}

main {
    position: absolute;
    height: 100%;
    width: 100%;

    margin: 0;
    padding: 0;
}

section {
    display: flex;

    height: 100%;
    width: 100%;

    margin: 0;
    padding: 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px;

    text-align: center;
}

dialog {
    background-color: #000;
    color: var(--primary-color);

    border: 2px solid var(--primary-color);
}

dialog::backdrop {
    background: black;
    opacity: 0.65;
}

h1 {
    position: relative;
    margin: 0;
    padding: 0;

    font-size: 140px;
    font-weight: 800;
    line-height: 0.8em;

    background: linear-gradient(to right, #1694a2, #23d7e4, #1dc1ce, #19d4e0, #1cc0ce, #21dee9, #12949e);
    color: transparent;
    background-clip: text;
}

h1 .top {
    font-size: 63px;
    font-weight: 600;
    line-height: 0.5em;
}

h2 {
    position: relative;
    margin: 0;
    padding: 0;

    font-size: 38px;
    font-weight: 600;

    background: linear-gradient(to right, #1694a2, #23d7e4, #1dc1ce, #19d4e0, #1cc0ce, #21dee9, #12949e);
    color: transparent;
    background-clip: text;
}

p {
    margin: 0;
    padding: 0;
}

figure {
    margin: calc((70 / 1440) * 100svh);
    padding: 0;
}

small {
    font-family: "novecento-sans-condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
}

button, a.button-look {
    position: relative;

    padding: calc((15 / 1440) * 100svh) calc((60 / 1440) * 100svh);

    font-family: var(--font-family);
    font-size: calc((55 / 1440) * 100svh);
    font-weight: 600;

    background-color: transparent;
    color: var(--primary-color);

    outline: none;
    border: 1px solid var(--primary-color);

    cursor: pointer;
}

button:hover, a.button-look:hover {
    color: black;
}

button:hover:before, a.button-look:hover:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(to right, #1694a2, #23d7e4, #1dc1ce, #19d4e0, #1cc0ce, #21dee9, #12949e);
    pointer-events: none;
    z-index: -1;
}

a, a:visited {
    color: var(--primary-color);
}

a:hover {
    color: white;
}

dialog p {
    font-size: 22px;
    text-align: center;
}

dialog p.prompt {
    margin: 40px auto;
}

dialog button {
    margin: auto 5px;
}

div.flex-group {
    margin: 40px auto;
    text-align: center;
}

p.big-number {
    position: relative;
    margin-top: -0.1em;
    font-size: 105px;
    letter-spacing: -0.05em;
    line-height: 0.8em;

    background: linear-gradient(to right, #1694a2, #23d7e4, #1dc1ce, #19d4e0, #1cc0ce, #21dee9, #12949e);
    color: transparent;
    background-clip: text;
}

p.message-big {
    position: relative;
    font-size: calc((110 / 1440) * 100svh);

    background: linear-gradient(to right, #1694a2, #23d7e4, #1dc1ce, #19d4e0, #1cc0ce, #21dee9, #12949e);
    color: transparent;
    background-clip: text;
}

p.message-big:before, button:after, a.button-look:after, h1:after, h2:after, p.big-number:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url("../image/interlace.png");
    background-repeat: repeat;
    background-size: 1px 6px;
    pointer-events: none;
    opacity: 0.75;
}

button:after, a.button-look:after {
    left: 4px;
    top: 4px;
    right: 4px;
    bottom: 4px;

    background-size: 1px 3px;

    border: 2px solid var(--primary-color);

    opacity: 0.5;
}

button.close {
    width: 40px;
    min-width: auto;
    height: 40px;
    min-height: auto;
    padding: 0;

    font-size: 16px;

    border: none;
}

a.button-look {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}

.close-wrap {
    position: absolute;
    top: 5px;
    right: 5px;
}

#result-container {
    height: 50svh;

    padding: 5px;
    border: 1px solid var(--primary-color);

    vertical-align: top;
}

#result-container video {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: contain;

    border: 2px solid var(--primary-color);
}