@keyframes logo-spin-reverse{
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes logo-spin{
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
html{
    scroll-padding-top: 8rem;
}
*{
    box-sizing: border-box;
}

body{
   padding: 8rem 1rem 1rem 1rem;
   display: block;
   position: absolute;
   width: 100vw;
   height: 100vh;
   overflow-x: hidden;
   overflow-y: scroll;
   font-size: 16px;
   margin: 0;
   z-index: 0;
}

main {
    position: relative;
    width: 100%;
}

a{
    color: black;
    font-weight: bold;
}

a:hover{
    text-decoration: none;
}

a:visited{
    color: black;
}

.photo-gallery{
    display: box;
    width: 100%;
    height: auto;
}

.photo-gallery img{
    max-width: 100%;
    height: auto;
    padding: 1rem 0;
}

/* Header */
header{
    display: grid;
    place-items: center start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    padding: 1rem;
    transition: height 0.3s ease;
    grid-template-columns: 6rem 1fr;
    background-color: white;
    z-index: 1;
}

header.scrolled {
    height: 4rem;
}

/* Logo */
.logo-container {
    height: 100%;
    aspect-ratio: 1/1;
    position: relative;
    transition: height 0.3s ease, width 0.3s ease;
}

.logo-container .logo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: logo-spin 30s linear infinite;
}
.logo-container .logo-dotted-circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: logo-spin-reverse 15s linear infinite;
}
.logo-container .logo-peter{
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    left: 30%;
    top: 30%;
    height: 40%;
    image-rendering: pixelated;
    z-index: -1;
}
.menu {
    justify-self: stretch;
}

.menu ul{
    display: grid;
    grid-auto-flow: column;
    justify-content: end;
}

.menu ul li {
    list-style-type: none;
    padding-left: 1rem;
}

.menu ul li a{
    color: black;
    text-decoration: none;
}

.menu ul li a:hover{
    text-decoration: underline;
}

.menu ul li a:visited{
    color: black;
}
@media (min-width: 900px) {
    html{
        scroll-padding-top: 0;
    }
    body{
        padding: 0;
    }

    header{
        width: 200px;
        height: auto;
        display: block;
        margin: 1rem;
    }

    .menu {
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu ul{
        list-style-type: none;
        padding: 2rem 0;
        font-family: sans-serif;
        margin: 0;
        display: inline-block;
        width: auto;
        text-align: left;
    }

    .menu ul li{
        padding: 0 0 1rem 0;
        list-style-type: none;
    }


    .logo-container {
        width: 100%;
        aspect-ratio: 1/1;
        position: relative;
        min-width: 100px;
    }

    main{
        position: relative;
        padding: 1rem;
        margin-left: 232px;
        margin-top: 1rem;
        max-width: calc(100% - 232px);
        width: 600px;
        height: auto;
    }
}