@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-size: 16px;
    --primary-color: #e51c29;
    --dark-color: #100e14;
    --light-color: #fff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-color);
    margin-left: auto;
    margin-right: auto;
    color: var(--light-color);
    overflow: hidden;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-screen img {
    width: 200px;
    animation: pulse 2s infinite ease-in-out;
}

header {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    width: 100%;
    padding: 2rem;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
}

.barlow {
    font-family: 'Barlow Condensed', serif;
    font-weight: 800;
    font-style: normal;
}

.countdown {
    display: flex;
    justify-content: center;
    color: var(--light-color);
    font-size: 3rem;
    gap: 0.5rem;
}

.countdown-block {
    width: 75px;
    text-align: center;
    text-transform: uppercase;
}

.countdown .small {
    display: block;
    font-size: 1rem;
}

.weather {
    display: flex;
    gap: 3rem;
    text-align: right;
    font-size: 2.5rem;
    img {
        height: 3rem;
    }
}

.weather-details {
    display: flex;
    align-items: center;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
}

.logo-circle {
    fill: var(--primary-color);
}

.logo-stripes {
    fill: var(--light-color);
}

.webcam {
    display: flex;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

@media (max-width: 768px) {
    header {
        flex-direction: column-reverse;
        gap: 2.5rem;
        padding: 1rem;
    }

    .container {
        justify-content: space-between;
    }

    .countdown {
        font-size: 3.5rem;
        gap: 1.5rem;
    }

    .countdown-block {
        width: 100px;
    }

    .weather {
        justify-content: space-between;
        font-size: 1.5rem;
    }
    .webcam {
        height: 45%;
        flex-grow: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
