html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    font-family: courier, monospace;
    line-height: 1.5;
    background-color: #000000;
}

a {
    color: #5e8bde;
    text-decoration: none;
    transition: color 140ms ease;
}

a:hover {
    color: #00bda4;
}

img {  
    width: 16em;  
    margin: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 75vh;
} 

#home h1 {  
    margin: 0;  
    font-size: 2rem;
    color: #fff;
}

#home p {  
    margin: 6px; 
    font-size: 1rem;  
    color: #666;
}

#layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #000000;
}

#footer {
    background-color: #070707;
    color: #666;
    font-size: 1rem;
}

.nav {
    margin-top: 24px;
    margin-bottom: 24px;
    justify-content: center;
    gap: 16px;
    font-size: 1.2rem;
}

.nav-card-deselected {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    transition: background-color 140ms ease, color 140ms ease;
}

.nav-card-deselected:hover {
    background: rgba(95, 140, 225, 0.25);
    color: #5e8bde;
}

.nav-card-selected {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(95, 140, 225, 0.25);
    color: #5e8bde;
    transition: background-color 140ms ease, color 140ms ease;
}

.nav-card-selected:hover {
    background: transparent;
    color: #fff;
}

.nav:hover .nav-card-selected {
    background: transparent;
    color: #fff;
}

.content {
    color: #fff;
    font-size: 1.2rem;
    text-align: justify;
    max-width: 36em;
    width: 100%;
}

@media (max-width: 600px) {
    #footer {
        font-size: 0.6rem;
    }

    .nav {
        gap: 10px;
        font-size: 1rem;
    }
    
    .content {
        font-size: 1rem;
        max-width: 20em;
    }
}

.proverb {
    display: block;
    text-align: center;
    color: #fff;
    padding: 1em 1em;
}
