/* launch counterdown stylesheet */
:root {

    /* primary color */
    --gray-blue: hsl(237, 18%, 59%);
    --soft-red: hsl(345, 95%, 68%);

    /* neutral color */
    --white: hsl(0, 0%, 100%);
    --dark-d-blue: hsl(236, 21%, 26%);
    --very-dark-blue: hsl(235, 16%, 14%);
    --very-dark-black: hsl(234, 17%, 12%);

    /* font size */
    --font-size: 14px;

    /* font weight */
    --font-weight: 700;
}

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

html {
    font-size: 10px;
}

body {
    width: 100%;
    height: 100vh;
    background-image: url(images/bg-stars.svg);
    background-color: var(--very-dark-black);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body::after {
    content: '';
    width: 100%;
    height: 100vh;
    background-image: url(images/pattern-hills.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.counter-container {
    width: 100%;
    max-width: 700px;
    height: 90vh;
    margin: 5rem;
    /* border: 2px solid red; */
}

/* header styling */
header {
    padding: 7rem 0;
}

.counter-title {
    color: var(--white);
    font-size: 2rem;
    letter-spacing: 0.8rem;
    text-transform: uppercase;
    text-align: center;
}

/* main counter styling */
section#main-counter {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.counter-wrapper {
    width: 20%;
}

.counter {
    width: 100%;
    background-color: var(--dark-d-blue);
    text-align: center;
    border-radius: 10px;
    padding: 2.5rem 0;
    position: relative;   
}

.counter p {
    font-size: 7.2rem;
    font-weight: var(--font-weight);
    color: var(--soft-red);
}

.circle {
    width: 6px;
    height: 10px;
    position: absolute;
    top: 60px;
    background-color: var(--very-dark-black);
    
}

.left-circle {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.right-circle {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.center-line {
    width: 90%;
    height: 1px;
    background-color: var(--very-dark-black);
    position: absolute;
    top: 64px;
    left: 7px;
}

.timer-desc {
    color: aliceblue;
    font-size: 1.1rem;
    letter-spacing: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: var(--font-weight);
    margin-top: 20px;
    color: var(--gray-blue)
}


/* footer */
footer {
    transform: translateY(150px);
}

footer ul {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer ul li {
    list-style: none;
    margin: 0 1rem;
}

footer ul a {
    color: var(--white);
    font-size: 2rem;
    text-align: center;
} 

footer ul a:hover {
    color: var(--soft-red);
}

@media (max-width: 440px) {
    .counter-title {
        font-size: 1.5rem;
    }

    .counter-wrapper {
        width: 21%;
    }

    .counter {
        padding: 1rem 0;
    }

    .circle {    
        top: 30px;    
    }
    
    .center-line {
        top: 34px;
        left: 7px;
    }

    .counter p {
        font-size: 3.5rem;
    }

    .timer-desc {    
        font-size: 0.8rem;
    }
}
