@import url("https://fonts.googleapis.com/css2family=Nunito&display=swap");

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

:root {
    --grow-shrink-time: 3.2s;
}

body {
    background: #413f42 url(./assets/images/peter-f-fibrknjbpUo-unsplash.jpg) no-repeat center center/cover;
    min-height: 100vh;
    color: #fff;
    font-family: "Nunito", sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

h1 {
    font-size: 2.5rem;
}


/*===== hamburger menu =====*/
.hamburger-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    /* top: 2rem; */
    left: 2rem;
    margin-top: 0.5rem;
}

.hamburger-menu .checkbox {
    position: absolute;
    display: block;
    height: 1.625rem;
    width: 2rem;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
}

.hamburger-menu .hamburger-lines {
    display: block;
    height: 1.625rem;
    width: 2rem;
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #224a64;
}

.hamburger-menu .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
}

.hamburger-menu .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
}

.hamburger-menu .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

.hamburger-menu .time {
    width: 5rem;
    transform: translate(-200%);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    text-align: center;
    padding-top: 8rem;
}

.hamburger-menu .time-control {
    display: flex;
    justify-content: space-between;
}
.hamburger-menu #total-breath-time{
    font-size: 2rem;
    margin-bottom: 1rem;
}
.hamburger-menu .time-control-buttons{
    width: 2rem;
    height: 1.4rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.hamburger-menu .set-time button{
    color: #d7e6f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.hamburger-menu #update-time{
    width: 3.5rem;
    height: 1.8rem;
    margin-top: 1.2rem;
    font-size: 1.2rem;
    background: #205375;
}
.hamburger-menu #update-time:hover{
    background: #16003b;
}
.hamburger-menu #reset-time{
    width: 3.2rem;
    height: 1.6rem;
    margin-top: 0.8rem;
    font-size: 1rem;
    background: #413f42;
}
.hamburger-menu #reset-time:hover{
    background: #302e30;
}

.hamburger-menu input[type="checkbox"]:checked~.time {
    transform: translateX(0);
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-lines .line1 {
    transform: rotate(45deg);
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-lines .line2 {
    transform: scaleY(0);
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-lines .line3 {
    transform: rotate(-45deg);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 19rem;
    width: 19rem;
    margin: auto;
    position: relative;
}

#instructions {
    font-size: 1.5rem;
}

.circle {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background: #16003b;
    position: absolute;
    z-index: -1;
}

.outer-circle {
    background-image: conic-gradient(#3977a0 0deg,
            #205375 144deg,
            #d7e6f0 144deg,
            #afcde0 216deg,
            #316080 216deg,
            #224a64 360deg);
    height: 20rem;
    width: 20rem;
    top: -0.5rem;
    left: -0.5rem;
    border-radius: 50%;
    position: absolute;
    z-index: -2;
}

.pointer-container {
    height: 24rem;
    position: absolute;
    border-radius: 50%;
    background: #413f42;
    /* animation: rotate 8s infinite linear; */
}

.pointer {
    height: 1.25rem;
    width: 1.25rem;
    left: -0.625rem;
    border-radius: 50%;
    background: #afcde0;
    position: absolute;
    z-index: 1;
}

.grow {
    animation: grow var(--grow-shrink-time);
}

.shrink {
    animation: shrink var(--grow-shrink-time);
}

@keyframes grow {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

@keyframes shrink {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.9);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media only screen and (min-width: 1400px) {
    html {
        font-size: 20px;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media only screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    .hamburger-menu{
        left: 1.5rem;
    }
}

@media only screen and (max-width: 348px) {
    html {
        font-size: 13px;
    }
    .hamburger-menu{
        left: 1rem;
    }
}

@media only screen and (max-width: 320px) {
    html {
        font-size: 11px;
    }
}

@media only screen and (max-width: 576px) and (orientation: landscape) {
    body {
        overflow: visible;
    }
}