::selection {
    background-color: rgb(0, 0, 0);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding-top: 80px;
    padding-bottom: 60px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #004690;
    color: white;
    height: 80px; /* Height of the header */
    width: 100%;
    position: fixed; /* Fix it at the top of the page */
    top: 0;
    left: 0;
    z-index: 1000; /* Keep it above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

.logo {
    height: 100%;
    background-color: rgb(0, 112, 187);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding-left: 20px;
    padding-right: 30px;
    white-space: nowrap;
    cursor: pointer;
}

.logo:hover {
    background-color: white;
    color: black;
}

#ovslogo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 20px 0 0;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

h1 {
    line-height: 40px;
}


/** RESPONSIVE CONTENTS **/

@media screen and (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: #004690;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    .navbar.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .navbar li {
        margin: 10px 20px;
    }

    section {
        margin-left: 30px !important;
        margin-right: 30px !important;
    }

    .news {
        display: block !important;
    }

    .news > img {
        display: flex;
        margin-left: auto;
        margin-right: auto;
    }

    .news-content > h1 {
        margin-bottom: -5px;
        text-align: center !important;
    }

    .banner-txtlite > img {
        height: 65px !important;
        width: auto !important;
    }

    .banner > img {
        height: 65px !important;
        width: auto !important;
    }
    
    .screenshot {
        height: auto !important;
        width: 80% !important;
    }

    .screenshot-medium {
        height: 270px !important;
        width: auto !important;
    }

    .article-img {
        width: 90%;
    }   
}


/* PAGE BODY ELEMENTS */

.separator {
    width: 70%;
    margin-bottom: 40px !important;
    margin-top: 40px !important;
    height: 3px;
    background-color: black;
    border: none;
}

main {
    padding: 20px;
    text-align: center;
    margin-bottom: -30px !important;
}

section {
    margin-left: 150px;
    margin-right: 150px;
    line-height: 20px;
}

.imgdesc {
    font-size: 0.9em;
}

.news {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Adds spacing between the image and text */
}

.news > img {
    height: 150px;
    width: auto;
}

.banner {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.banner > img {
    height: 80px;
    width: auto;
}

.banner-txtlite {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.banner-txtlite > img {
    height: 80px;
    width: auto;
}

.img-border {
    border: solid 1px black;
}

.version {
    text-decoration: underline;
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-content > h1 {
    text-align: left;
}

.news-content > p {
    text-align: justify;
}

.link {
    color: rgb(0, 145, 185);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.screenshot-medium {
    height: 450px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #004690;
    color: white;
    text-align: center;
    line-height: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

#ScrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 5px;
    right: 10px;
    color: black;
    font-size: 1.3em;
    background-color: white;
    border-color: black;
    border-style: solid;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px 10px;
    transition: ease-in-out 0.2s;
    z-index: 544551215488;
}
  
#ScrollToTopBtn:hover {
    background-color: black;
    color: white;
    transition: ease-in-out 0.2s;
}

/** OTHER THINGS **/

.bold {
    font-weight: bold;
}

.underlined {
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.separator-large {
    height: 3px;
    background-color: black;
}