/* COPY AND PASTE START */
:root {
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    --text-primary: #b8b9b9;
}

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

main {
    margin-left: 5rem;
}

body::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.25rem;
}

body::-webkit-scrollbar-track {
    background: #8320F5;
}

body::-webkit-scrollbar-thumb {
    background: #523275;
}

/* Nav */
.navbar {
    position: fixed;
    background: rgb(35, 27, 49);
    transition: 300ms ease;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.nav-item {
    width: 100%;
}

.nav-item:last-child {
    margin-top: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: var(--text-primary);
    text-decoration: none;
    filter: grayscale(100%) opacity(0.7);
    transition: 500ms;
}

.nav-link:hover {
    filter: grayscale(0%) opacity(1);
    background: #1b0130;
}

.nav-link svg {
    min-width: 2rem;
    margin: 0 1rem;
}

.link-text {
    display: none;
    margin-left: 1rem;
    font-size: 2rem;
}

.logo {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.2ch;
    width: 100%;
}
.logo .nav-link:hover {
    cursor: default;
}
.logo svg {
    transform: rotate(0deg);
    transition: transform 500ms;
}
.nav-item svg,
.logo svg {
    width: 48px;
    height: 48px;
}

.navbar:hover .logo svg {
    transform: rotate(-180deg)
}

/* Small Screens */
@media only screen and (max-width: 700px) {
    .navbar {
        bottom: 0;
        width: 100vw;
        height: 5rem;
    }

    .logo {
        display: none;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link {
        justify-content: center;
    }

    main {
        margin: 0;
    }
}
/* to remove the squish thing */
@media only screen and (max-width: 400px) {
    .nav-item:last-child{
        display: none;
    }
}
/* Large Screens */
@media only screen and (min-width: 700px) {
    .navbar {
        top: 0;
        width: 5rem;
        height: 100vh;
    }

    .navbar:hover {
        width: 16rem;
    }

    .navbar:hover .link-text {
        display: inline;
        transition: opacity 500ms;
    }

    .navbar:hover .logo svg {
        margin-left: 1rem;
    }

    .navbar:hover .logo-text {
        left: 0px;
    }
}

body {
    background-color: #3F0F75;
    width: 100%;
    height: 100vh;
}
/* COPY AND PASTE END */

#logo {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fill 0.8s ease forwards 2.5s;
}

#logo path:nth-child(1) {
    stroke-dasharray: 1509.8533935546875;
    stroke-dashoffset: 1509.8533935546875;
    animation: line-anim 2s ease forwards 0.3s;
}
#logo path:nth-child(2) {
    stroke-dasharray: 980.5855102539062;
    stroke-dashoffset: 980.5855102539062;
    animation: line-anim 2s ease forwards 0.6s;
}
#logo path:nth-child(3) {
    stroke-dasharray: 594.4320678710938;
    stroke-dashoffset: 594.4320678710938;
    animation: line-anim 2s ease forwards 0.9s;
}
#logo path:nth-child(4) {
    stroke-dasharray: 594.43212890625;
    stroke-dashoffset: 594.43212890625;
    animation: line-anim 2s ease forwards 1.2s;
}
#logo path:nth-child(5) {
    stroke-dasharray: 744.2997436523438;
    stroke-dashoffset: 744.2997436523438;
    animation: line-anim 2s ease forwards 1.5s;
}
@keyframes line-anim {
    to{
        stroke-dashoffset: 0;
    }
}
@keyframes fill {
    from{
        fill: transparent;
    }
    to {
        fill: white;
    }
}
/* clock */
/* Layout */
.main {
    padding: 2em;
    height: 20vh;
}

.clockbox,
#clock {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,0);
    pointer-events: none;
}

/* Clock styles */
.circle {
    fill: none;
    stroke: rgb(255, 255, 255);
    stroke-width: 15;
    stroke-miterlimit: 10;
}

.mid-circle {
    fill: rgb(80, 0, 0)
}
.hour-marks {
    fill: none;
    stroke: rgb(255, 255, 255);
    stroke-width: 9;
    stroke-miterlimit: 10;
}

.hour-arm {
    fill: none;
    stroke: rgb(58, 69, 105);
    stroke-width: 17;
    stroke-miterlimit: 10;
}

.minute-arm {
    fill: none;
    stroke: rgb(3, 103, 143);
    stroke-width: 11;
    stroke-miterlimit: 10;
}

.second-arm {
    fill: none;
    stroke: rgb(255, 255, 255);
    stroke-width: 4;
    stroke-miterlimit: 10;
}

/* Transparent box ensuring arms center properly. */
.sizing-box {
    fill: none;
}

/* Make all arms rotate around the same center point. */
/* Optional: Use transition for animation. */
#hour,
#minute,
#second {
    transform-origin: 300px 300px;
    transition: transform .5s ease-in-out;
}

/* Media queries */
@media (max-width: 900px) {
    #logo {
        width: 600px;
        top: 40%;
    }
    .clockbox,
    #clock {
        width: 250px;
        top: 40%;
    }
}
@media (max-width: 700px) {
    #logo {
        width: 500px;
        top: 35%;
    }
    .clockbox,
    #clock {
        width: 200px;
        top: 35%;
    }
}
@media (max-width: 550px) {
    #logo {
        width: 450px;
        top: 30%
    }
    .clockbox,
    #clock {
        width: 175px;
        top: 30%;
    }
}
@media (max-width: 500px) {
    #logo {
        width: 425px;
        top: 25%;
    }
    .clockbox, 
    #clock {
        top: 25%;
    }
}
@media (max-width: 425px) {
    #logo {
        width: 375px;
        top: 25%
    }
    .clockbox, 
    #clock {
        top: 25%
    }
}
@media (max-width: 376px) {
    #logo {
        width: 350px;
        top: 20%
    }
    .clockbox,
    #clock {
        top: 20%
    }
}
@media (max-height: 550px){
    #logo {
        width: 550px;
    }
    .clockbox, #clock {
        width: 150px;
        top: 30%;
    }
}

