body {
    margin: 2vw;
    font-size:9.5vw;
}

a {
    color:darkgreen;
    text-decoration:underline solid;
}

a:hover {
    text-decoration:underline wavy;
}

nav {
    position: fixed;
    top: 0px;
    right: 0px;
    padding: 30px;
    background:none;
}

.container {
  display: grid;
  place-content: center; /* Centers horizontally and vertically */
  height: fit-content;
}

.container a {
    margin: 40vh 0px;
}

.container img {
    width:100%;
}

.grid-item {
    container-type: inline-size;
    width: 80vw;
    padding:20px;
    max-width: 480px;
    border: 2px solid darkgreen;
}

.grid-item > * {
    font-size: 13cqw;
    padding: 0px;
    margin: 0px;

}


/* Hide the checkbox */
#menu-toggle {
    display: none;
}

/* Hamburger icon */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 6vw;
    height: 3.5vw;
    cursor: pointer;
    filter: drop-shadow(4px 4px 8px gold);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 0.7vw;
    background: darkgreen;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when checked */
#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(2.5vw) rotate(45deg);
}

#menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-0.2vw) rotate(-45deg);
}

/* Hide menu by default */
.menu {
    display: none;
    list-style: none;
    padding: 10px;
    margin: 0px;
    line-height: 2em;
}

/* Show menu when checkbox is checked */
#menu-toggle:checked ~ .menu {
    display: block;
}

nav:has(#menu-toggle:checked){
    background:white;
    box-shadow: 10px 10px 100px gold;
    height: 100%;
    overflow: scroll;
}