:root {
    /* From u/perfecthue
    */
    --walpaper-img-url: url("../img/wallpaper-day.jpg");
    --desktop-font-family: "Segoe UI", Tahoma, Geneva, Verdana, system-ui, sans-serif;
}

:root[data-theme=night] {
    /* From u/perfecthue
    */
    --walpaper-img-url: url("../img/wallpaper-night.jpg");
}

body {
    background: var(--walpaper-img-url);
    background-size: cover;
    padding: 40px;
    display: flex;
    justify-content: center;
}

main {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

img {
    image-rendering: pixelated;
}

.main {
    width: 100%;
}

.main .main-header {
    position: relative;
    display: block;
    width: 70%;
    height: 20px;
}

.main .main-content {
    position: relative;
}

.logo {
    position: absolute;
    left: 100%;
    top: -20px;
    z-index: 1;
    transform: rotate(3deg);
    animation: logo-float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

header {
    position: absolute;
    top: 0;
    left : 0;
    padding: 20px;
}

.desktop-icon {
    width: 80px;
    height: 80px;
    display: grid;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: stretch;
    grid-auto-flow: row;
    text-decoration: none;
    margin-bottom: 20px;
}

.desktop-icon:hover,
.desktop-icon:focus {
    border: 1px solid #ffffff;
    box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    1px 0 0 rgba(0, 0, 0, 0.7),
    -1px 0 0 rgba(0, 0, 0, 0.7);
}

.desktop-icon * {
    filter: drop-shadow(2px 2px 5px black);
}

.desktop-icon img {
    width: 70%;
}

.desktop-icon span {
    color: #ffffff;
    font-family: var(--desktop-font-family);
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 60px;
}

nav  {
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav-button {
    width: 80px;
    height: 80px;
    display: grid;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: stretch;
    grid-auto-flow: row;
    text-decoration: none;
    z-index: 1;
    cursor: pointer;

    position: relative;
    bottom: 20px;
    filter: drop-shadow(2px 2px 5px black);
}
