@import url('https://fonts.cdnfonts.com/css/sf-mono');
@font-face {
    font-family: 'Exposure VAR';
    src: url('assets/fonts/Exposure-205TF-VAR.ttf') format('truetype');
    font-weight: 100 900; /* Specify the full range of weights */
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'SF Mono', monospace;
    /* font-family: 'Exposure VAR';
    font-variation-settings: 'EXPO' -10; */
    font-size: 0.8em;
    line-height: 2;
    margin: 2vw;
    padding: 10vw;
    background-color: #fff;
    color: #000;
}
a {
    color: inherit;
    text-decoration: underline;
}
form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
input, button {
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.2;
    height: 1.5rem;
    box-sizing: border-box;
    white-space: nowrap;
}
input {
    flex: 1;
    min-width: calc(33.33% - 0.33rem);
    outline: none;
}
input.error {
    border-color: #ff4136;
}
button {
    cursor: pointer;
    transition: background 0.2s ease;
    width: auto;
    margin-left: auto;
}
@media (hover: hover) {
    a:hover {
        font-weight: bold;
    }
}
footer {
    margin-top: 2vw;
    padding-top: 1vw;
    border-top: 0.1vw solid lightgray;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: gray
}
.italics {
    font-style: italic;
}
.center-align {
    text-align: center;
    flex: 1 1 100%;
}
.left-align, .right-align {
    flex: 1 1 45%;
}
.left-align {
    text-align: left;
}
.right-align {
    text-align: right;
}
.play-icon {
    width: 0.8em;
}

.logo {
    width: min(70px, 15vw);
    height: auto;
    margin-bottom: min(2rem, 5vw);
}
.footer-content {
    margin-bottom: -1em;
}
.error-message {
    color: #ff4136;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: #2ecc40;
    font-size: 12px;
    margin-top: 5px;
}
@keyframes button-success-flash {
    0% { background: inherit; }
    50% { background: #2ecc40; }
    100% { background: inherit; }
}

.button-success {
    animation: button-success-flash 0.2s ease;
}

@keyframes button-success-flash-dark {
    0% { background: #333; }
    50% { background: #2ecc40; }
    100% { background: #333; }
}
@media (max-width: 375px) {
    .left-align, .right-align {
        text-align: left;
        flex: 1 1 100%;
    }
}
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
        color: #fff;
    }
    a {
        color: inherit;
    }
    footer {
        border-top-color: #666;
        color: #666;
    }
    a.video-link .play-icon {
        content: url('play.rectangle.medium.white.svg');
    }
    #logo-light { display: none; }
    #logo-dark { display: block; }
    .button-success {
        animation: button-success-flash-dark 0.2s ease;
    }
    input {
        background: #333;
        color: white;
        border: 1px solid #555;
    }
    button {
        background: #444;
        color: white;
        border: 1px solid #555;
    }
    input::placeholder {
        color: #aaa;
    }
    input:focus {
        border-color: #fff;
    }
    button:hover {
        background: #555;
    }
    @media (hover: hover) {
        a.video-link:hover .play-icon {
            content: url('play.rectangle.black.white.svg');
        }
    }
}
@media (prefers-color-scheme: light) {
    #logo-light { display: block; }
    #logo-dark { display: none; }
    input {
        background: white;
        color: black;
        border: 1px solid #ddd;
    }
    button {
        background: #eee;
        color: black;
        border: 1px solid #ddd;
    }
    input::placeholder {
        color: #666;
    }
    input:focus {
        border-color: #000;
    }
    button:hover {
        background: #ddd;
    }
    @media (hover: hover) {
        a.video-link:hover .play-icon {
            content: url('play.rectangle.black.svg');
        }
    }
}
@media (max-width: 950px) {
    input {
        min-width: calc(50% - 0.25rem);
    }
    button {
        width: 100%;
        margin-left: 0;
    }
}
@media (max-width: 424px) {
    input {
        min-width: 100%;
    }
}
@media (min-height: 700px) and (min-width: 951px) {
    form {
        flex-wrap: nowrap;
    }
    form input {
        min-width: 0;
    }
}
