@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Amatic SC', cursive;
}

body {
    background-color: #ffee00e0;
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111;
    transition: 0.2s;
    display: flex;
    visibility: hidden;
    opacity: 0;
}

.navigation.active {
    visibility: visible;
    opacity: 1;
}

.navigation .navArea {
    position: relative;
    width: 50%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation .navArea ul li {
    list-style: none;
}


.navigation .navArea ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: red;
    z-index: -1;
    opacity: 0;
    transition: 0.5s;
}

.navigation .navArea ul li:nth-child(1):before {
    background: #905c49;
}

.navigation .navArea ul li:nth-child(2):before {
    background: #ffde0f;

}

.navigation .navArea ul li:nth-child(3):before {
    background: #72a785;
}

.navigation .navArea ul li:nth-child(4):before {
    background: #137ac7;
}

.navigation .navArea ul li:nth-child(5):before {
    background: #01080e;
}

.navigation .navArea ul li:hover::before {
    opacity: 1;
}

.navigation .navArea ul li a {
    font-size: 3em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.navigation .navArea ul li:hover a {
    color: rgba(255, 255, 255, 1);
}

.imgArea {
    position: relative;
    height: 100vh;
    width: 50%;

}

.imgArea img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.menuToggle {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    background: #000 url(./images/menu.png);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.menuToggle.active {
    z-index: 1000;
    background: #000 url(./images/close.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width:768px) {
    .navigation .navArea {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: transparent;
    }

    .imgArea {
        width: 0;
        height: 0;
        opacity: 0;

    }

    .navigation .navArea ul li:hover::before {
        opacity: 0;
    }
}