body {
    --h1: hsl(240, 48%, 54%);
    --h2: #333;
    --bg: hsl(0, 0%, 85%);
    --shadow: rgba(0, 0, 0, 0.3);
    --li-txt-dark: hsl(0, 0%, 2%);
    --li-txt-light: hsl(0, 0%, 2%);
    --li-brd: hsl(0, 0%, 60%);
    --li-bg: hsl(0, 0%, 95%);
    --dsm-brd: hsl(198, 80%, 30%);
    --dsm-bg: hsl(198, 80%, 50%);
    --boeken-brd: hsl(82, 80%, 30%);
    --boeken-bg: hsl(82, 60%, 50%);
    --films-brd: hsl(28, 80%, 30%);
    --films-bg: hsl(28, 80%, 50%);
    --foto-brd: hsl(50, 80%, 30%);
    --foto-bg: hsl(50, 80%, 50%);
    --kalender-brd: hsl(280, 80%, 30%);
    --kalender-bg: hsl(280, 80%, 50%);
    --drive-brd: hsl(164, 80%, 30%);
    --drive-bg: hsl(280, 80%, 50%);
}

@media (prefers-color-scheme: dark) {
    body {
        --h1: hsl(240, 48%, 54%);
        --h2: hsl(0, 0%, 100%);
        --bg: hsl(0, 0%, 15%);
        --shadow: hsl(0, 0%, 0%);
        --li-txt-dark: hsl(0, 0%, 70%);
        --li-txt-light: hsl(0, 0%, 70%);
        --li-brd: hsl(0, 0%, 30%);
        --li-bg: hsl(0, 0%, 20%);
        --dsm-brd: hsl(0, 0%, 45%);
        --dsm-bg: hsl(0, 0%, 30%);
        --boeken-brd: hsl(164, 40%, 45%);
        --boeken-bg: hsl(164, 40%, 30%);
        --films-brd: hsl(25, 40%, 45%);
        --films-bg: hsl(25, 40%, 30%);
        --foto-brd: hsl(90, 40%, 45%);
        --foto-bg: hsl(90, 40%, 30%);
        --calender-brd: hsl(360, 40%, 45%);
        --calender-bg: hsl(360, 40%, 30%);
        --drive-brd: hsl(190, 40%, 45%);
        --drive-bg: hsl(190, 40%, 30%);
    }
}

body {
    background-color: var(--bg);
    font-size: 32px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 1em;
    padding-top: 1em;
}

.show {
    opacity: 1;
    transform: translateX(0);
}

a.logo {
    font-size: 4em;
    transition-duration: 0.1s;
    text-decoration: none;
    height: 0.65em;
    width: 1ch;
    display: inline-block;
    vertical-align: top; /* Add this property to align the text with the top of the icon */
    line-height: 0.9em; /* Adjust this value as needed */
    opacity: .9;
}

a.logo:hover {
    text-shadow: inset 0 0 0 1px var(--shadow);
    opacity: 1;
}

h1 {
    color: var(--h1);
    font-size: 1.6em;
    font-weight: 300;
    text-align: left;
    padding: 0;
    margin: 0;
}

h2 {
    color: var(--h2);
    font-size: 1.2em;
    font-weight: 300;
    display: block;
    margin-block-start: 0.25em;
    margin-block-end: 0.25em;
    opacity: 0;
    transition-duration: 1s;
}

ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    grid-gap: 0.5em;
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    background-color: var(--li-bg);
    border: 1px solid var(--li-brd);
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow);
    overflow: hidden;
    transition: all 0.6s ease;
    font-style: underline;
    transform: translateX(-1em);
    opacity: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: .5em;
}

li:hover {
    transform: translateY(-0.3em) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

li a {
    color: var(--li-txt-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

li a img {
    height: 2rem;
}

/* Applicatie styling */

#dsm {
    border: 1px solid var(--dsm-brd);
    background-color: var(--dsm-bg);
}

#photos {
    border: 1px solid var(--foto-brd);
    background-color: var(--foto-bg);
}

#calibre {
    border: 1px solid var(--boeken-brd);
    background-color: var(--boeken-bg);
}

#plex {
    border: 1px solid var(--films-brd);
    background-color: var(--films-bg);
}

#calender {
    border: 1px solid var(--calender-brd);
    background-color: var(--calender-bg);
}

#drive {
    border: 1px solid var(--drive-brd);
    background-color: var(--drive-bg);
}

#dsm a,
#photos a,
#plex a,
#calibre a {
    color: var(--li-txt-light);
}

/* Animations */

h2.hovered {
    transform: translateX(0);
    opacity: 1;
}
li.hovered {
    transform: translateX(0);
    opacity: 1;
}

.visible {
    opacity: 1;
}
.typing {
    width: 14ch;
    height: 1em;
    line-height: 1em;
    animation: typing 1s steps(14), blink 0.3s step-end 4 alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid transparent;
padding-right: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
}

@keyframes blink {
    50% {
        border-color: var(--h1);
    }
}

.favicon {
  width: 1em;;
  height: 1em;;
  margin-right: 8px;
  vertical-align: middle;
  display: inline;
  flex: 0;
  margin-right: .5em;
  border-radius: .25rem;
}
