@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Red Hat Text', sans-serif;
    --dark-desaturated-blue: hsl(236, 21%, 26%);
    --dark-blue: hsl(235, 16%, 14%);
    --very-dark-blue: hsl(234, 17%, 12%);
    --grayish-blue: hsl(237, 18%, 59%);
    --soft-red: hsl(345, 95%, 68%);
}

html,
body {
    height: 100%
}

body {
    background-color: var(--dark-blue);
    color: white;
    /* display: flex;
    justify-content: center;
    align-items: center */
}

img {
    width: 100%;
}


.attribution a {
    color: hsl(228, 45%, 44%);
}

.stars {
    position: absolute;
    z-index: -2;
    height: 80%;
}

.stars img{
    height: 100%;
}

main {
    /* background-color: green; */
    position: relative;
    top: 25vh;
    left: 50vw;
    transform: translate(-50%, -50%);
}

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4rem;
}

.container {
    text-align: center;
}

.timer {
    margin: 0 auto;
    width: 55%;  
    display: flex;
    justify-content: space-between;
}


.display {
    width: 125px;
    height: 125px;
    background-color: var(--dark-desaturated-blue);
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--soft-red);
}

.time-segment p{
    color: var(--grayish-blue);
    font-weight: bold;
    letter-spacing: 2px;
}

.mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.socials {
    /* background-color: orange; */
    position: absolute;
    display: flex;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.socials div{
    margin: 10px;
}

.socials div:hover{
    filter:   hue-rotate(100deg) saturate(240%);
}

.attribution {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    text-align: center;
}
@media (max-width:900px){
    .timer {
        width: 80%;  
    }

    .display {
        width: 115px;
        height: 115px;
    }
}

@media (max-width:700px){
    .timer {
        width: 90%;  
    }

    .display {
        width: 100px;
        height: 100px;
    }
}

@media (max-width:500px){

    main {
        top: 35vh;
        left: 50vw;
        transform: translate(-50%, -50%);
    }
    h1 {
        margin-bottom: 3rem;
    }
    .timer {
        width: 90%;  
    }

    .time-segment {
        /* background-color: green; */
        width: 23%;
    }

    .time-segment p{
        font-size: 13px;
    }

    .display {
        width: 100%;
        height: 85px;
        font-size: 30px !important;
    }

    .socials {
        bottom: 50px;
    }
    
    .mountains img{
        height: 170px;
    }
}
