@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;500;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --grayish-blue: hsl(237, 18%, 59%);
    --soft-red: hsl(345, 95%, 68%);
    --white: hsl(0, 0%, 100%);
    --dark-desaturated-blue: hsl(236, 21%, 26%);
    --very-dark-blue: hsl(235, 16%, 14%);
    --darker-blue: hsl(234, 17%, 12%);
}

a {
    text-decoration: none;
    display: inline-block;
}

li {
    list-style: none;
}

body {
    font-family: 'Red Hat Text', sans-serif;
    height: 100vh;
    background: var(--darker-blue) url(./imgs/bg-stars.svg) no-repeat center center / cover;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.container {
    text-align: center;
    padding-inline: 1rem;
    max-width: 1440px;
}

/* Fixed Countdown Container at Bottom */
.countdown-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    z-index: 10;
}

/* Countdown Styles */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Smaller font size */
}

.countdown .count {
    margin: 0 0.5rem;
}

.countdown .title {
    position: relative;
    background-color: #2c2c44;
    border-radius: 0.3rem;
    box-shadow: 0 4px rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Adjust font size */
}

.countdown .title h2 {
    color: var(--soft-red);
    line-height: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.countdown .title h2::before, .countdown .title h2::after {
    content: '';
    position: absolute;
    top: 43%;
    width: 9px;
    height: 9px;
    background-color: var(--darker-blue);
    border-radius: 50%;
    z-index: 1;
}

.countdown .title h2::before {
    left: -5px;
}

.countdown .title h2::after {
    right: -5px;
}

.countdown .count p {
    font-size: 0.6rem;
    color: var(--grayish-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background-image: url(./imgs/pattern-hills.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 25%;
    width: 100%;
}

.footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 3rem;
}

.footer .social-links a {
    color: var(--grayish-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.footer .social-links a:hover {
    color: var(--soft-red);
    transform: translateY(-5px);
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    .countdown-container {
        height: 30%;
    }

    .countdown .title {
        width: 40px;
        height: 40px;
    }

    .countdown .count p {
        font-size: 0.5rem;
    }
}
