@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --fsize-h1: clamp(5vw, 2rem, 3rem);
    --fsize-h2: clamp(2.5vw, 1.8rem, 2.8rem);
    --fsize-h3: clamp(2vw, 1.2rem, 2.4rem);
    font-size: clamp(.9vw , 20px , 16px);
    animation-duration: .2s;
}

/* body {
    background-image: url('batik.jpg');
    background-size: auto;
    background-position: center;
    min-height: 100vh;
    color : white;
    position: cover;
    isolation: isolate;
}

body::after {
    content: "";
    position: fixed;
    z-index : -1;
    background: black;
    inset: 0;
    opacity: .7;
} */

body {
    background-color: rgb(218, 160, 109);
}

header {
    position: relative;
    padding: 1em;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(32,32,32);
    transition: .3s;
}
header h1 {
    align-self: flex-start;
    display: block;
    text-transform: uppercase;
    color: white;
}
nav {
    display : flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown {
    z-index: 9999;
    position: absolute;
    display: None;
    background-color: rgb(32,32,32);
}
.dropdown li {
    display: block;
    padding: .4em;
}
.wrap:hover ul.dropdown {
    display: block;
}

.menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    transition: .5s;
}
.menu li {
    list-style-type: none;
}
.menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
}
.menu li a:hover {
    box-shadow: 0 -2px 0px white inset;
    background-color: rgb(32,32,32);
    transition: .3s linear;
}

.dropdown {
    display: invisible;
}

.toogle-menu {
    position: absolute;
    width: 15px;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
}
.hamburger, .toogle-menu {
    display: none;
}
nav input:checked ~ .hamburger {
    background: transparent;
}
nav input:checked ~ .hamburger::before {
    top: 0;
    transform: rotate(-45deg);
}
nav input:checked ~ .hamburger::after {
    top: 0;
    transform: rotate(45deg);
}
nav input:checked ~ .menu {
    right: 0;
}
.hamburger {
    position: relative;
    width: 20px;
    height: 4px;
    background-color: white;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: .3s;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    background-color: white;
    width: 20px;
    height: 4px;
    border-radius: 10px;
    transition: .3s;
}
.hamburger::before {
    top: -10px;
    width: 20px;
}
.hamburger::after {
    top: 10px;
    width: 20px;
}

@media (width <= 1042px) {
    header {
        padding: 10px;
    }
    .hamburger, .toogle-menu {
        display: block;
    }
    .menu {
        justify-content: start;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: rgb(32,32,32);
        padding: 50px;
    }
    .menu li {
        width: 100%;
    }
    .menu li a {
        padding: 15px;
    }
}

.anchor {
    display: grid;
    text-align: center;
  }
  .anchor > a {
    text-decoration: none;
    color: black;
    display: block;
    padding: .5em;
    transition: .5s;
  }
  .anchor > a :hover {
    text-decoration: 1px solid black;
    transition: .5s;
  }