:root {
    --hazard-yellow: #fcd000;
    --hazard-black: #000;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #333;
    font-family: 'Oswald', sans-serif;
}

.main-container {
    width: 100%;
    height: 100vh;
    top: 20px;
    background: url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Hazard Stripes */
.hazard-stripe {
    position: fixed;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 1000;
    background-image: linear-gradient(45deg,
            var(--hazard-yellow) 25%,
            var(--hazard-black) 25%,
            var(--hazard-black) 50%,
            var(--hazard-yellow) 50%,
            var(--hazard-yellow) 75%,
            var(--hazard-black) 75%,
            var(--hazard-black) 100%);
    background-size: 80px 80px;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.hazard-stripe.top {
    top: 0;
    animation: slideRight 4s linear infinite;
}

.hazard-stripe.bottom {
    bottom: 0;
    animation: slideLeft 4s linear infinite;
}

@keyframes slideRight {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 80px 0;
    }
}

@keyframes slideLeft {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -80px 0;
    }
}

/* Crane Wrapper */
.crane-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    /* Managed by JS */
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.crane-content {
    position: relative;
    width: 600px;
    /* Adjusted width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crane-img {
    width: 100%;
    height: auto;
}

/* Man positioning */
/* Standing on the hook/beam area */
.man-container {
    position: absolute;
    bottom: 10%;
    /* Relative to crane height */
    left: 57%;
    /* To the right of center */
    width: 150px;
    z-index: 11;
}

.man-img {
    width: 100%;
    height: auto;
}

/* Text Overlay */
.text-overlay {
    position: absolute;
    bottom: 15%;
    /* Relative to crane height */
    left: 0px;
    /* To the left of center */
    display: flex;
    align-items: center;
    color: #222;
    pointer-events: none;
    z-index: 12;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.side-text {
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-90deg);
    margin-right: -25px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.under {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.8;
}

.construction {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    border-top: 4px solid #000;
    margin-top: 5px;
    padding-top: 2px;
}

/* Countdown Timer */
.countdown-container {
    position: absolute;
    bottom: 90px;
    /* Above the hazard stripe and some padding */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.countdown-row {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-item span {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown-item label {
    font-size: 11px;
    font-weight: bold;
    color: var(--hazard-yellow);
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .crane-content {
        width: 100vw;
    }

    .under {
        font-size: 40px;
    }

    .construction {
        font-size: 20px;
    }

    .countdown-row {
        gap: 10px;
        padding: 15px 20px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-item span {
        font-size: 28px;
    }
}