:has(#lightModeToggle:checked) {
    background-color: #f1f1f1;
    color: black;
}

:has(#lightModeToggle:checked) .navbody {
    background-color: #E1F0DA;
}

:has(#lightModeToggle:checked) .navbody a {
    color: black;
}

:has(#lightModeToggle:checked) .footerbody {
    background-color: #E1F0DA;
}

:has(#lightModeToggle:checked) .footerbody .switch {
    background-color: #E1F0DA;
}

:has(#lightModeToggle:checked) .mainbody {
    background-color: #D4E7C5;
}

:has(#lightModeToggle:checked) .mainbody article {
    background-color: #BFD8AF;
    color: #1f1f1f;
}

:has(#lightModeToggle:checked) .mainbody article a {
    background-color: #99BC85;
    color: #1f1f1f;
}

:has(#lightModeToggle:checked) button {
    background-color: #99BC85;
    color: #111111;
}

html {
    margin: 0;
    padding: 0;
    height: 0;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
}

.navbody {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #3B1C32;
    padding-top: 1ch;
    padding-bottom: 1ch;
}

ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-evenly;
}

li {
    text-decoration: none;
}

li a {
    text-decoration: none;
    color: #f9f9f9;
    font-size: larger;
    font-weight: bold;
}

.collumn {
    display: flex;
    flex-direction: column;
}

.mainbody {
    background-color: #282828;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    flex: 1 0 25%;
    margin: 1em;
    border-radius: 1em;
}

@media (max-width: 620px) {
    .mainbody {
        border-radius: 1em;
    }
}

.title {
    border-radius: 1em;
    padding: 1em;
    margin: 1em;
    max-height: 100%;
    flex-basis: 90%;
    justify-content: center;
    background-color: #2f2f2f;
    text-align: center;
}

@media (max-width: 620px) {
    .title {
        flex-basis: 90%;
        border-radius: 1em;
    }
}

.card {
    border-radius: 1em;
    padding: 1em;
    margin: 1em;
    max-height: 100%;
    flex-basis: 30%;
    justify-content: center;
    background-color: #2f2f2f;
    text-align: center;
}

.card img {
    width: 30em;
    border-radius: 1em;
}

@media (max-width: 620px) {
    .card {
        flex-basis: 90%;
        border-radius: 1em;
    }
    .card img {
        width: 20rem;
    }
}

.card a {
    border-radius: 1em;
    padding: 1ch;
    background-color: #3B1C32;
    text-decoration: none;
    color: #f9f9f9;
    font-weight: bold;
}

/* Footer */
.footerbody {
    position: sticky;
    z-index: 10;
    background-color: #3B1C32;
    padding: 2ch;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #f9f9f9;
    font-weight: bold;
}

/* Forms */
.card form {
    font-weight: bold;
}

.card form input {
    width: 25rem;
    border-radius: 1em;
    padding: 0.5em;
    border: none;
}

.card form textarea {
    width: 25rem;
    border-radius: 1em;
    padding: 0.5em;
    border: none;
}

.card form button {
    font-family: 'Courier New', Courier, monospace;
    padding: 0.5em 3em;
    border-radius: 2em;
    background-color: #3B1C32;
    color: white;
    font-weight: bold;
}