

:root {
    --color-light-blue: #8486a9;
    --color-yellow: rgb(226 213 0);
    --color-white: rgb(255, 255, 255);
    --color-dark-blue: #343650;
    --color-very-dark-blue: #1e1f29;
    --color-black: #191a24;
}



main {
    justify-content: center;
    align-items: center;
}

.caption {
    font-size: 1.3rem;
    color: var(--color-white);
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    margin-bottom: 3em;
    letter-spacing: .4em;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 21%);
    justify-content: space-between;
    width: 100%;
    max-width: 750px; 
}

.time-content {
    height: 70px;
    box-shadow: 0px 7px 2px -2px rgb(25, 26, 36);
    background-color: var(--color-very-dark-blue);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    margin-bottom: 1em;
}

.time {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-blue);
    position: relative;
}

.time::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 50%;
    background-color: #272938c0;
}

.time > span {
    display: block;
    color: var(--color-yellow);
    font-size: 2.5em;
    z-index: 2;
}

.rings {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.rings::before, .rings::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-very-dark-blue);
    top: -2px;
}

.rings::before {
    left: -3.5px;
}

.rings::after {
    right: -3.5px;
}

.metric {
    text-transform: uppercase;
    text-align: center;
    color: var(--color-light-blue);
    font-size: .6rem;
    letter-spacing: 3px;
}

footer {
    background: url(../images/pattern-hills.svg) top right 16% / 290% 100% no-repeat;
    height: 25%;
}

.socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    height: 100%;
    width: 50%;
    margin: 0 auto;
    padding-top: 5rem;
}

.socials > .icon {
    justify-content: center;
    cursor: pointer;
}

.socials > .icon:hover path {
    fill: var(--color-yellow);
}

.attribution {
    font-size: 11px;
    padding: 1em;
    text-align: center;
}

.attribution p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.attribution a {
    color: hsl(228, 45%, 44%);
    font-weight: 700;
    text-decoration: none;
}

.attribution a:hover, .attribution a:focus {
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .caption {
        font-size: x-large;
        margin-bottom: 4em;
    }
    .countdown {
        grid-template-columns: repeat(4, 18%);
    }
    .time-content {
        height: 120px;
        box-shadow: 0px 9px 2px -1px rgb(25, 26, 36);
    }

    .time > span {
        font-size: 5em;
    }

    .metric {
        margin-top: 1.5em;
        font-size: 1rem;
    }

    .rings {
        position: absolute;
        top: 50%;
        width: 100%;
    }
    
    .rings::before, .rings::after {
        width: 10px;
        height: 10px;
        top: -4px;
    }

    .rings::before {
        left: -5px;
    }
    
    .rings::after {
        right: -5px;
    }

    footer {
        background-position: center;
        background-size: cover;
    }

    .socials {
        width: 13%;
    }
}

@media (min-width: 500px) and (max-width: 640px) {
    .caption {
        font-size: 1.5rem;
        width: 80%;
    }

    .countdown {
        grid-template-columns: repeat(4, minmax(100px, 120px));
        gap: 1rem;
    }

    .time-content {
        height: 90px;
    }

    .time > span {
        font-size: 3.5em;
    }

    .socials {
        width: 30%;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .caption {
        font-size: 1.7rem;
        width: 70%;
    }

    .countdown {
        grid-template-columns: repeat(4, minmax(100px, 140px));
        gap: 1rem;
    }

    .time-content {
        height: 110px;
    }

    .time > span {
        font-size: 4em;
    }
}