* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@font-face {
    font-family: "Dancing Script";
    font-weight: 500;
    src: url("fonts/DancingScript-Medium.ttf");
}

:root {
    --electric-border-color: #dd8448;
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --gradient-color: oklch(
            from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4
    );
    --color-neutral-900: oklch(0.185 0 0);
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: oklch(98.5% 0 0deg);
    height: 100vh;

    background: linear-gradient(135deg, #221b3e 0%, #443171 50%, #723c80 100%);
    background-attachment: fixed;

    background-size: 400% 400%;
    animation: animate-background 10s infinite ease-in-out;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    margin: 50px auto;
    justify-content: center;
}

.svg-container {
    position: absolute;
}

.card-container {
    padding: 2px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(-30deg, var(--gradient-color), transparent, var(--gradient-color)), linear-gradient(to bottom, var(--color-neutral-900), var(--color-neutral-900));
}

.inner-container {
    position: relative;
}

.border-outer {
    border: 2px solid rgba(221, 132, 72, 0.5);
    border-radius: 24px;
    padding-right: 4px;
    padding-bottom: 4px;
}

.main-card {
    width: 90vw;
    height: 500px;
    border-radius: 24px;
    border: 2px solid var(--electric-border-color);
    margin-top: -4px;
    margin-left: -4px;
    filter: url(#turbulent-displace);
}

.glow-layer-1 {
    border: 2px solid rgba(221, 132, 72, 0.6);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(1px);
}

.glow-layer-2 {
    border: 2px solid var(--electric-light-color);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(4px);
}

.overlay-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 1;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
}

.overlay-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
}

.background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    filter: blur(32px);
    transform: scale(1.1);
    opacity: 0.3;
    z-index: -1;
    background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

.content-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.author {
    font-size: 3em;
    font-family: Dancing Script, sans-serif;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0d0d0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    animation: fade-out 1s ease-out reverse;
    pointer-events: none;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.shadow, .shadow-calendar, .shadow-timer, .shadow-alert, .shadow-btn, .shadow-input {
    box-shadow: 0 9px 10px -3px rgba(0, 0, 0, 0.19);
    border-radius: 30px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.boton {
    appearance: none;
    border: 1px solid;
    background-color: #0000;
    box-shadow: 2px 2px 0 2px #0000;
    cursor: pointer;
    transition: 0.1s ease;
    padding: 0.5em 1em;
    font-size: 1.3rem;
    border-radius: 1.2rem;
    color: #b4afc5;
}

.boton:active {
    box-shadow: -2px -2px 0 2px #0000, inset 2px 2px 6px #0008;
    translate: 2px 2px;
}

.timer-input {
    all: unset;
    color: #b4afc5;
    padding: 1rem;
    border: 1px solid #9e9e9e;
    border-radius: 20px;
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
    border: 1px solid var(--electric-light-color);
}

.input:is (:focus, :valid) ~ label {
    transform: translateY(-120%) scale(0.7);
    background-color: #1a1a1a;
    padding-inline: 0.3rem;
    color: var(--electric-light-color);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin: 20px 0;
}

.header-logo-icon {
    width: 28px;
    height: 28px;
    stroke: #ff9900;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 4px #ff9900);
}

.logo-link:hover .header-logo-icon {
    stroke: #00ffcc;
    filter: drop-shadow(0 0 8px #00ffcc);
    transform: scale(1.05);
}

.logo-text {
    color: #f0ede5;
    font-family: monospace;
    font-size: 1rem;
}

.plate {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.plate p {
    font-family: monospace;
    font-size: 1rem;
}

.alert {
    visibility: hidden;
    color: #afadad;
    box-shadow: 0 9px 10px -3px rgba(0, 0, 0, 0.19);
    border-radius: 30px;
    height: 39px;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-display {
    font-size: 15px;
    white-space: nowrap;
    font-family: monospace;
}

.plate-input, .plate-btn, .plate-timer {
    height: 70px;
    width: 120px;
}

iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    border: none;
}

.shadow-video {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.plate-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 10px;
}

.video-block {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.plate-btn-program {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 70px;
    padding: 10px;
}

.boton.btn {
    width: 70px;
}

.plate-program {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    padding: 15px 10px;
    text-align: center;
}

.shadow-program {
    width: 100%;
    max-width: 335px;
    height: auto;
    min-height: 195px;
}

.shadow-p {
    margin: 80px 0 40px 0;
}

.plate-p {
    height: 35px;
}

.btn.active {
    background-color: var(--electric-light-color);
}