body {
    background-color: #FFFFE8;
    font-family: 'IBM Plex Mono', monospace;
    color: #492828;
}

.title, h4 {
    text-align: center;
    margin-bottom: -5px;
    margin-top: 5px;
}

a:active, a:link, a:visited {
    color: #492828;
    text-decoration: none;
}

a:hover {
    color: #AACB73;
}

header {
    text-align: center;
}

nav {
    position: fixed;
    width: 200px;
    height: max-content;
    margin-left: 75px;
    border: 1px solid #492828;
    box-shadow: #AACB73 5px 5px;
    font-size: .85em;
}

.navlinks ul {
    list-style-type: none;
    margin-left: -30px;
}

.nav {
    display: flex;
    justify-content: space-evenly;
}

.nav a {
    border: 1px solid #492828;
    box-shadow: #AACB73 5px 5px;
    font-size: .85em; 
    padding: 5px;
    text-align: center;
    
    &:hover, :active {
        color: #AACB73;
    }
}

form {
    padding: 5px;
    text-align: center;
    line-height: 1.5;
    height: max-content;
    border: 1px solid #492828;
    box-shadow: #AACB73 5px 5px;
    font-size: .85em;
    
    input[type="radio"] {
        display: none;
    }
    
    & label {
      cursor: pointer;
    
        &:hover {
           color: #AACB73; 
        }

        &:has(:checked) {
            color: #AACB73;
        }
    }
}

form:has([id="jan"]:checked)~#logs section:not([category~="jan"]), 
form:has([id="feb"]:checked)~#logs section:not([category~="feb"]), 
form:has([id="mar"]:checked)~#logs section:not([category~="mar"]), 
form:has([id="apr"]:checked)~#logs section:not([category~="apr"]), 
form:has([id="may"]:checked)~#logs section:not([category~="may"]), 
form:has([id="jun"]:checked)~#logs section:not([category~="jun"]), 
form:has([id="jul"]:checked)~#logs section:not([category~="jul"]), 
form:has([id="aug"]:checked)~#logs section:not([category~="aug"]),
form:has([id="sep"]:checked)~#logs section:not([category~="sep"]),
form:has([id="oct"]:checked)~#logs section:not([category~="oct"]),
form:has([id="nov"]:checked)~#logs section:not([category~="nov"]),
form:has([id="dec"]:checked)~#logs section:not([category~="dec"]),
form:has([id="book"]:checked)~#logs section:not([category~="book"]),
form:has([id="tv"]:checked)~#logs section:not([category~="tv"]),
form:has([id="game"]:checked)~#logs section:not([category~="game"]),
form:has([id="repeat"]:checked)~#logs section:not([category~="repeat"]) {
    display: none;
}

main {
    margin: auto;
    width: 800px;
}

.mainflex {
    display: flex;
    column-gap: 10px;
}

.mainp1 {
    border: 1px solid #492828;
    padding: 5px; 
    width: 600px;
    font-size: .85em;
    box-shadow: #AACB73 5px 5px;
}

.mainp1 p {
    margin-top: 17px;
     margin-left: 5px;
}

.entry {
    border: 1px solid #492828;
    box-shadow: #AACB73 5px 5px;
    padding: 5px; 
    height: max-content;
    font-size: .85em;
    display: flex;
    margin-top: 15px;
    margin-bottom: 15px;
}

.typedate {
    margin-left: 5px;
    margin-top: 5px;
}

.name {
    text-align: center;
    margin-top: -10px;
    margin-bottom: -10px;
    white-space: nowrap;
    flex: 2;
}

.icon {
    vertical-align: bottom;
}

.currently {
    width: 250px;
    height: max-content;
    border: 1px solid #492828;
    box-shadow: #AACB73 5px 5px;
    font-size: .85em;  
}

.currentlylist ul {
    list-style-type: none;
    margin-left: -30px;
    margin-top: 25px;
    white-space: nowrap;
    line-height: 1.5;
}

footer {
    text-align: center;
    font-size: 0.75em;
    line-height: .75;
    margin-top: 25px;
}

@media (max-width: 850px) {
    main {
        width: 600px;
    }
    .mainp1 {
        width: 475px;
    }
    .currently {
        height: auto;
    }
}

@media (orientation: portrait) {
    .mainflex {
        display: inline-block;
    }
    .mainp1, .currently {
        width: auto;
        margin-bottom: 20px;
    }
    form {
        font-size: .75em;
        line-height: 2;
         
        & h4 {
          font-size: 1.10em;  
        }
    }   
}