body {
    background-image: url("/img/background.png");
    background-color: #cccccc;

    min-height: 50vh;

    color: white;
    font-size: 1.25vw;
    font-family: 'Courier New', Courier, monospace;
}

hr {
    border: 1px solid black;
}

a:link {
    color: rgb(231, 187, 227);
}

a:visited {
    color: rgb(196, 122, 192);
}

a:hover {
    color: white;
}

#container {
    margin: auto;
    min-height: 50vh;
    width: 80%;
}

/* header */
#header {
    text-align: center;
}

#logo {
    width: 40%;
    transition-duration: 500ms;
}

#logo:hover {
    width: 45%;
    transition-duration: 500ms;
}

/*top navbar*/
#topbar {
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    border-color: black;
    background: rgba(56, 67, 83, 0.75);

    display: none;
    width: 100%;
    overflow: hidden;

    text-align: center;
    font-size: large;
    font-weight: bold;
}

#topbar a {
    padding: 15px;
    transition-duration: 500ms;
}

#topbar a:hover {
    transition-duration: 500ms;
    font-size: larger;
}

/* main content */
#main-content {
    display: flex;
    min-height: 50vh;
    gap: 5px;
}

/* sidebar */
#sidebar {
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    border-color: black;
    background: rgba(56, 67, 83, 0.75);
    padding-left: 1%;

    display: block;
    float: left;
    width: 15%;
    min-height: 50vh;
    overflow: hidden;
}

#sidebar ul {
    list-style-type: "o";
}

#sidebar a {
    display: block;
    padding: 2px;
    font-weight: bold;
    transition-duration: 500ms;
}

#sidebar a:hover {
    transition-duration: 500ms;
    font-size: 1.5vw;
}

/* content */
#content {
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    border-color: black;
    background: rgba(56, 67, 83, 0.75);

    display: block;
    float: left;
    /*calc due to the gap*/
    width: calc(85% - 5px);
    padding: 5px;
    min-height: 50vh;

    text-align: center;
}

/* footer */
#footer {
    display: inline-block;
    width: 100%;

    text-align: center;
}

#footer img {
    display: block;
    float: left;
    width: 25%;
}

/*image with caption*/
.item {
    margin: auto;
    width: 80%;
    padding: 5px;
    overflow: hidden;

    text-align: left;
}

.item h2 {
    text-align: center;
}

.item img {
    float: left;
    width: 25%;
    padding: 0 5px 5px 0;
}

.item img:hover {
    width: 30%;
    transition-duration: 500ms;
}

@media only screen and (max-width: 1024px) {
    body {
        font-size: medium;
    }

    #container {
        width: 100%;
    }

    #logo {
        width: 60%;
    }

    #logo:hover {
        width: 65%;
        transition-duration: 500ms;
    }

    #content {
        width: 100%;
    }

    #sidebar {
        display: none;
    }

    #topbar {
        display: block;
    }
}

@media only screen and (max-width: 400px) {
    body {
        font-size: small;
    }
}