@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', sans-serif;
}

body {
    background: #eee;
}

.content {
    background: #eee;
    width: 90vw;
    height: 90vh;
    position: fixed;
    left: 50%;
    /* transform: translateX(-50%); */
    transform: translate(-50%, 50%) scale(0.5);
    transform-origin: bottom center;
    top: 5vh;
    box-shadow: 0 8px 12px 4px #0004;
    border-radius: 20px;
    max-width: 150vmin;
    overflow: hidden;
    opacity: 0;
    transition: 1s;
}

.content.loaded {
    transform-origin: center center;
    transform: translate(-50%, 0%) scale(1);
    opacity: 1;
}

.content.fully-loaded {
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 0px;
}

.sidemenu {
    width: 35%;
    height: 100%;
    max-width: 500px;
    position: absolute;
    left: 0;
    top: 0;

    transition: 0.5s;
    transform: translateX(-100%);
    z-index: 10;
}

.sidemenu.loaded {
    transform: translateX(0%);
}

.sidemenu .nav {
    width: 80%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #0e7205;
    clip-path: polygon(0 0, 66% 0, 100% 100%, 0% 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.sidemenu .slice {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: 0.5s;
}

.sidemenu .slice1 {
    width: 90%;
    background-color: #0b5f04;
    z-index: 2;
    clip-path: polygon(0 0, 58% 0, 100% 100%, 0% 100%);
}

.sidemenu .slice2 {
    background-color: #0a4d04;
    width: 100%;
    z-index: 1;
    clip-path: polygon(0 0, 48% 0, 100% 100%, 0% 100%);
}

.sidemenu .nav .burger {
    width: 40px;
    height: 25px;
    align-self: center;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.8s;
}

.sidemenu .nav .burger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

.sidemenu .nav .burger span:last-of-type {
    width: 80%;
}

.sidemenu .nav .burger:hover span:last-of-type {
    width: 100%;
}

.sidemenu .nav a {
    font-size: 2rem;
    color: #fff;
    margin: 15% 10%;
    text-decoration: none;
    cursor: pointer;
    font-weight: bolder;
    transition: 0.2s;
    position: relative;
    
    transform: translateY(100%);
    opacity: 0;
}

.sidemenu .nav a.loaded {
    transform: translateY(0%);
    opacity: 1;
}

.sidemenu .nav a::after {
    content: "\"UNDERLINE\"";
    font-size: 0.7rem;
    position: absolute;
    left: 15px;
    bottom: 0;
    /* transform: translateY(100%); */
    transform: translateY(200%);
    opacity: 0;
    padding: 0 3px;
    background: #0e7205;
    border-radius: 12px;
    transition: 0.1s;
    pointer-events: none;
}

.sidemenu .nav a::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 5px;
    background: #fff;
    left: 0;
    bottom: 0;
    /* transform: translateY(200%); */
    transform: translateY(200%) scaleX(0);
    transform-origin: left;
    transition: 0.2s;
    pointer-events: none;
}

.sidemenu .nav a:hover {
    font-weight: lighter;
}

.sidemenu .nav a:nth-of-type(2)::before {
    width: 130%;
}

.sidemenu .nav a:last-of-type::before {
    width: 100%;
}

.sidemenu .nav a:hover::after {
    opacity: 1;
    transform: translateY(100%);
}

.sidemenu .nav a:hover::before {
    transform: translateY(200%) scaleX(1);
}

.title {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(100% - 35%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title .title-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 60%;
    padding-right: 15%;
}

.title h1 {
    font-size: 5.5rem;
    color: #000;
    -webkit-text-fill-color: #eee;
    -webkit-text-stroke: 3px #000;
    text-align: right;
    position: relative;

    transform: translateY(100%);
    opacity: 0;

    transition: 0.5s;
}

.title h1 .dots {
    position: absolute;
    width: 55px;
    height: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    right: 0;
    top: 0;
    transform: translateY(-100%);
}

.title h1.loaded {
    transform: translateY(0%);
    opacity: 1;
}

.title button.loaded {
    transform: translateY(0%);
    opacity: 1;
}

.title button {
    background: #fff;
    border: 3px solid #0e7205;
    border-radius: 30px;
    color: #000;
    font-size: 1.5rem;
    width: 38%;
    align-self: flex-end;
    padding: 0.2rem 2rem;
    margin-top: 0.5rem;
    cursor: pointer;
    font-weight: bolder;
    color: #0a4d04;
    transition: 0.5s;
    background: #eee;

    transform: translateY(500%);
    opacity: 0;
}

.title button:hover {
    font-weight: lighter;
}

.borders {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 3rem;
    width: 100%;
}

.border {
    transform: translateX(100%);
    transition: 0.5s;
}

.border.loaded {
    transform: translateX(0%);
}

.border1 {
    width: 95%;
    height: 100px;
    /* background: #000; */
    background: #041d01;
    align-self: flex-end;
    border-radius: 50px 0 0 50px;
    position: relative;
}

.border2 {
    width: 80%;
    height: 80px;
    /* background: #041d01; */
    background: #eee;
    border: 10px solid #073602;
    border-right: none;
    align-self: flex-end;
    border-radius: 50px 0 0 50px;
}

.border3 {
    width: 60%;
    height: 60px;
    background: #0a4d04;
    align-self: flex-end;
    border-radius: 50px 0 0 50px;
    position: relative;
}

@media (max-width: 1090px) {
    .title button {
        width: 60% ;
    }
}

@media (max-width: 900px) {
    .sidemenu {
        left: 0;
        top: 0;
        width: 100vw;
        height: 12vh;
        transform: none;
        max-width: none;
        display: flex;
        flex-direction: column;
    }

    .sidemenu .nav {
        width: 100%;
        height: 10vh;
        clip-path: none;
        position: relative;
        flex-direction: row;
        justify-content: center;
    }

    .sidemenu .nav a {
        margin: 0 1rem;
        height: 10vh;
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .sidemenu .nav a::after {
        display: none;
    }

    .sidemenu .nav a::before {
        display: none;
    }

    .sidemenu .nav a:hover {
        background: #0b5f04;
    }

    .sidemenu .slice {
        width: 100%;
        height: 1.25vh;
        position: relative;
        clip-path: none;
    }

    .sidemenu .slice2 {
        height: 0.75vh;
    }

    .title {
        width: 100vw;
        height: calc(100vh - 12vh);
        position: relative;
        top: 12vh;
    }

    .title .title-content {
        width: 100%;
        padding-right: 0;
        justify-content: center;
    }

    .title .title-content h1 {
        width: 100vw;
        text-align: center;
    }

    .title .title-content button {
        width: fit-content;
        align-self: center;
    }
}
@media (max-width: 600px) {
    .title .borders {
        display: none;
    }

    .sidemenu .nav {
        justify-content: center;
        transition: 0.5s;
        flex-direction: column;
        align-items: center;
    }

    .sidemenu .nav a {
        display: none;
        padding: 0;
        font-size: 3rem;
        text-transform: uppercase;
        text-align: center;
        height: fit-content;
        margin: 2rem 0;
        width: 100%;
    }

    .sidemenu .nav a:hover {
        background: transparent;
    }

    .sidemenu .nav .burger {
        position: absolute;
        left: 4vh;
        top: calc((10vh - 25px) / 2);
        display: flex;
    }

    .sidemenu.open {
        height: 100vh;
        width: 100vw;
    }
    
    .sidemenu.open .nav {
        height: 98vh;
        position: absolute;
    }

    .nav a {
        transition: 0.5s;
    }

    .burger::after {
        content: "";
        width: 15px;
        height: 15px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 100%;
        opacity: 0;
        transition: transform 1.5s ease-in;
        pointer-events: none;
    }

    .burger.open span {
        width: 100% !important;
        transition: 1s ease-in-out !important;
        background: #000 !important;
        z-index: 10;
    }

    .sidemenu.open .slice1 {
        height: 99.25vh;
        position: absolute;
    }

    .sidemenu.open .slice2 {
        position: absolute;
        height: 100vh;
    }

    .burger.open span.open {
        transform: rotate(calc(360deg));
    }

    .burger.open span:first-of-type {
        transform: rotate(405deg) translate(8px, 8px);
    }

    .burger.open span:nth-of-type(2) {
        transform: rotate(360deg);
        opacity: 0;
    }

    .burger.open span:last-of-type {
        transform: rotate(315deg) translate(8px, -6px);
    }

    .burger.open::after {
        transform: scale(200);
        opacity: 1;
    }

    .sidemenu.open .nav a:not(.openMenuLoaded) {
        transform: translateY(150%);
        opacity: 0;
    }

    .nav a.openMenuLoaded {
        color: #0a4d04 !important;
        opacity: 1 !important;
        z-index: 100;
        transform: translateY(0%);
    }
}
