body {
    background-color: #0c0c0c !important;
}

#homepage-container {
    background: radial-gradient(circle at -10% -120%, #059379, #07685c, #06403b, #031919, #0c0c0c, #0c0c0c, #0c0c0c, #0c0c0c) !important;
}

#mainpage {
    height: auto;
    display: flex;
    width: 90%;
    margin-left: 5%;
    border: 2px solid white;
    border-radius: 30px 0 0 30px;
}

#sidebar {
    width: 25%;
    font-size: 0.75em;
    height: 75vh;
    border-right: 2px solid white;
    padding: 1em;
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-item a {
    display: flex;
    color: white;
    font-family: Oswald, sans-serif;
    align-items: center;
    justify-content: left;
    margin-bottom: 1em;
    transition: transform 0.3s ease;
    text-decoration: none;
    margin-left: 0.5em;
}

.sidebar-item a:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#sidebar hr {
    border-color: #059379;
    width: 50%;
    margin: 1em 35% 1em 15%;
}

#sidebar img {
    width: 15%;
    height: auto;
    margin-right: 0.5em;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(7deg) brightness(104%) contrast(104%);
}

#chemistry-img {
    filter: invert(42%) sepia(51%) saturate(7183%) hue-rotate(153deg) brightness(95%) contrast(96%) !important;
}

#content {
    width: 75%;
    padding: 0em 2em 0em 2em;
    color: white;
    font-family: Oswald, sans-serif;
    overflow: auto;
    height: 75vh;
}

.content-item {
    margin-top: 0;
    margin-bottom: 2.5em;
    padding-top: 1.5em;
    width: 100%;
    font-size: 0.8em;
    display: none;
}

#chemistry {
    display: block;
}

.content-item h1 {
    font-size: 3.5em !important;
    margin-bottom: 0.5em;
    text-align: center;
}

.content-item h5 {
    margin-bottom: 2em;
    text-align: center;
}

.content-item p,
.content-item h2 {
    margin-bottom: 0.5em;
}

div>ul,
section>ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0.5em;
}

li>ul {
    list-style-type: circle;
    padding-left: 40px;
    margin: 0.5em 0 1em 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    margin: 2em 0;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-container {
    width: 100%;
    margin: 1em 0;
}

.image-container img,
.subimage-container img {
    width: 100%;
    height: auto;
}

.image-container p,
.subimage-container p {
    text-align: center;
    margin: 0;
    color: #b4b4b4;
}


@media screen and (max-width: 900px) {
    #sidebar {
        font-size: 1em;
    }
}

@media screen and (max-width: 800px) {
    #sidebar {
        font-size: 1.2em;
        padding: 0.8em;
    }
}

@media screen and (max-width: 700px) {
    #sidebar {
        font-size: 1.25em;
        padding: 1em 0.2em;
    }

    .sidebar-item a {
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    #mainpage {
        margin-top: 3em !important;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-item a {
        justify-content: center;
        margin: 0;
    }

    #sidebar img {
        width: 60%;
        height: auto;
        margin-right: 0;
    }

    #sidebar hr {
        width: 80%;
        margin: 1em 10% 1em 10%;
    }

    #sidebar {
        width: 15%;
        padding: 1em 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
    }

    #content {
        width: 85%;
    }

    li>ul {
        padding-left: 30px;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
    }
}