/* CSS Document */
html {
    --s: 30px; /* control the size*/
    --c1: #8c2318;
    --c2: #f2c45a;

    background:
        conic-gradient(at 60% 60%,var(--c1) 75%,#0000 0)
            0 0/calc(5*var(--s)/2) calc(5*var(--s)/2),
        repeating-conic-gradient(var(--c1) 0 25%,#0000 0 50%)
            0 0/calc(5*var(--s)) calc(5*var(--s)),
        repeating-conic-gradient(var(--c2) 0 25%,var(--c1) 0 50%)
            0 0/var(--s) var(--s);

    font-size: 62.5%;
    font-family: 'Lexend', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;


}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

.outer {
        background: darkseagreen;
        padding: 1.5rem;
        width: 30rem;
        height: 30rem;
        animation: rotate-outer 1.3s ease-in-out forwards;
}

.outer.profile, .outer.portfolio, .outer.contact, .outer.misc {
    width: 70vw;
    height: fit-content;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes rotate-outer {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

.outer > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: lightcyan;
    border-radius: 1.5rem;
    padding: 1rem 3rem;
    height: 100%;
    font-size: 1.5rem;
}

#nav {
    display: block;
    width: 100%;
    height: 100vh;
    background-color: aquamarine;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    transition: opacity 0.5s, visibility 0.5s;
    opacity: 0;
    pointer-events: none;
}

#nav > ul {
    text-align: center;
    padding: 0;
    margin: 0 auto;
    margin-top: 11rem;
}

#nav > ul li {
    margin: 3rem 0;
}

#nav > ul a {
    color: pink;
    font-weight: bold;
    font-size: 3rem;
    text-decoration: none;
}

#nav.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

@media screen and (max-width: 1023px) {
    html {
        font-size: 0.9765625vw;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 62.5%;
    }

    body {
        height: 100%;
        padding: 3rem 0;
    }

    .outer.profile, .outer.portfolio, .outer.contact, .outer.misc {
        width: calc(100% - 6rem);
        margin: 0 auto;
    }
}

@media screen and (max-width: 375px) {
    html {
        font-size: 2.6666666667vw;
    }
}