body {
    overflow: hidden;
}

#wrapper {
    position: relative;
}

#menu_container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

#menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 6fr 1fr 5fr 1fr 6.8fr;
    height: 100vh;
    padding: 0;
    margin: 0;
}

#menu div {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu {
    z-index: 999;
    position: relative;
}

.menu a {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(2.3rem, 4vw, 2.1rem);
    text-decoration: none;
    color: black;
}

.menu a:hover {
    color: blue;
    filter: drop-shadow(0px 0px 0px) !important;
}

:root {
    --dani_size: .9;
}

#dani_container {
    grid-column: 2 / 3;
    grid-row: 2 / 6;
    align-items: end !important;
}

#dani {
    position: relative;
    /* border: dashed 1px rgba(0, 0, 0, 0.5); */
    display: flex;
    z-index: 0;
    bottom: 0;
    transform: translate(0, 45%);
}

#body {
    width: calc(270px * var(--dani_size));
    z-index: 2;
}

#hand_left {
    position: absolute;
    width: calc(180px * var(--dani_size));
    left: calc(182px * var(--dani_size));
    top: calc(171px * var(--dani_size));
    transform-origin: 33.2% 12.3%;
    z-index: 1;
    transform: rotate(-5deg);   
}

#hand_right {
    position: absolute;
    width: calc(180px * var(--dani_size));
    left: calc(-78px * var(--dani_size));
    top: calc(167px * var(--dani_size));
    transform-origin: 65.8% 11.9%;
    z-index: 1;
    transform: rotate(10deg);
}

#menu div:nth-child(1):not(#dani):not(#dani_container) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    transform: scaleX(1.55);
}

#menu div:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    transform: scaleX(0.73);
}

#menu div:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

#menu div:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
    transform: scaleX(0.75);
}

#contact_container {
    width: 100vw;
    height: auto;
    position: fixed;
    padding: 0 50px 25px 50px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    right: 0;
}

#contact {
    width: 100%;
    background: yellow;
    padding: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.text_container {
    animation: move 80s linear infinite;
    padding: 10px 0;

    &:hover {
        animation-play-state: paused;
      }
}

#contact p {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.5rem;
    text-decoration: none;
    color: black;
    display: inline-block;
}

@keyframes move {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-200%) translateY(0);
    }
}


#name_container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    opacity: 1;
    border: solid white;
    border-width: 25px 50px 74px 50px;
}

#name_container img {
    display: block;
    width: 100%;
    height: calc((100% - 190px) / 3);
    margin: 0 0;
    border: solid white;
    border-width: 32.5px 0;
}

#background_showreel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;

    max-width: 100%;
    background: rgba(0, 0, 0, 0.04);
}

#background_showreel video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 99.9%;
    border: none;
    object-fit: cover;
    opacity: 0;
}



:root {
    --mobile_menu_img: calc(30vh - 25px);
}


#mobile_menu_container {
    display: none;
    position: relative;
    border: solid white;
    border-width: 15px 20px 0 20px;
    grid-template-columns: 1fr 1fr;
}


#mobile_menu_container .menu {
    background-color: white;
    border: 4px white;
}


#mobile_menu_container .menu:nth-of-type(1) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: left;
}
#mobile_menu_container .menu:nth-of-type(1) a {
    color: #757fb1;
}

#mobile_menu_container .menu:nth-of-type(2) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    text-align: right;
}
#mobile_menu_container .menu:nth-of-type(2) a {
    color: #58b5c8;
}

#mobile_menu_container .menu:nth-of-type(3) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    text-align: left;
}
#mobile_menu_container .menu:nth-of-type(3) a {
    color: #e3ed3a;
}

#mobile_menu_container .menu:nth-of-type(4) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
    text-align: right;
}
#mobile_menu_container .menu:nth-of-type(4) a {
    color: #42baa9;
}


#mobile_menu_container img {
    display: block;
    width: 100%;
    height: calc(30dvh - 35px);
    margin: 0 0;
    border: solid white;
    border-width: 2px 0;
}

#mobile_menu_container img:nth-of-type(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

#mobile_menu_container img:nth-of-type(2) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

#mobile_menu_container img:nth-of-type(3) {
    grid-column: 1 / 3;
    grid-row: 5 / 6;
}


@media (max-width: 1065px), (max-height: 650px) {
    /* .menu a {
        font-size: 2.5rem;
    } */

    #dani_container {
        align-items: center !important;
    }

    #dani {
        transform: translate(0, 10%);
    }

    :root {
        --dani_size: 0.55;
    }

}

@media (max-width: 650px), (max-height: 430px)  {
    #menu_container {
        padding: 20px 20px 0 20px;
    }
    
    #menu {
        height: calc(100vh - 20px);
    }

    #dani_container {
        align-items: center !important;
    }

    #dani {
        transform: translate(0, 0);
    }

    #name_container {
        border-width: 0px 25px 53px 25px;
    }

    #contact_container {
        padding: 0 25px 17px 25px;
    }

    #contact p {
        font-size: 1.2rem;
    }

    :root {
        --dani_size: 0.45;
    }

}

@media only screen and (max-width: 550px), (max-device-width: 550px) {
    #background {
        background-color: white;
    }

    #menu_container {
        padding: 0;
        height: 85vh;
    }
    
    #menu {
        height: auto;
        position: absolute;
        top: 49%;
        left: 52%;
        transform: translate(-50%, -50%);
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 3.7fr 1fr;
    }

    #dani_container {
        display: none !important;
    }

    #dani {
        display: none !important;
    }

    #menu div, div.about {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    #menu div:nth-child(3) {
        grid-column: 1 / 2 !important;
        grid-row: 3 / 3 !important;
    }
    
    #menu div:nth-child(4) {
        grid-column: 2 / 2 !important;
        grid-row: 3 / 3 !important;
    }

    #name_container {
        border-width: 0px 25px 58px 25px;
    }
    
    #name_container img {
        height: calc((100% - 140px) / 3);
    }

    #background_showreel video {
        opacity: 1;
    }

    .text_container {
        animation: none !important;
        overflow: scroll;
    }
    .text_container::before {
        content: '';
        margin-left: 15px;
    }




    body {
        min-height: 100vh !important;
        /* mobile viewport bug fix */
        min-height: -webkit-fill-available !important;
    }

    html {
        height: -webkit-fill-available !important;
    }

    #menu_container,
    #name_container {
        display: none;
    }

    #mobile_menu_container {
        display: grid;
    }

    #contact_container {
        padding: 0 20px 17px 20px;
    }

    .menu a {
        font-size: 1.8rem;
    }

}