@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Parkinsans:wght@300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --main-link-color : rgb(0, 151, 151);
    --nav-footer-color : rgb(42, 42, 42);
}

*::selection {
    background-color: var(--main-link-color);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Roboto", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #333;
}

.dropdown-item > p {
    font-weight: normal;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo > a > img {
    height: 40px;
    margin-bottom: 10px;
}

.logo > a > img:hover {
    transition: 0.2s ease-in-out;
  filter: invert(66%) sepia(46%) saturate(7019%) hue-rotate(166deg) brightness(96%) contrast(107%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-footer-color);
    color: #fff;
    z-index: 1000;
    padding: 1em 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between; /* Align items to left and right */
    align-items: center;
}
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}
.nav-links {
    display: flex;
    gap: 1em;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
}
.nav-links a:hover {
    color: rgb(0, 162, 162);
}
.nav-links li {
    position: relative;
    font-weight: bold;
}

.dropdown {
    position: absolute;
    background: #181818;
    margin-top: 10px;
    padding-top: 1em;
    padding-right: 1em;
    padding-bottom: 0.7em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 30vw; /* Ensure sufficient width */
    width: 20%;
    overflow-y: auto;
}
.nav-links li:hover .dropdown {
    display: block;
}

.dropdown-item {
    margin-left: 12%;
    cursor: pointer;
    /* justify-content: center;
    align-items: center; */
    margin-bottom: 10px;
}

.dropdown-item:hover {
    color: var(--main-link-color);
}

.img-container {
    height: 100%;
    width: 11%;
    /* align-items: end; */
    display: flex;
}

.software-icon {
    margin-left: 3%;
    left: 0;
    padding: 0;
    position: absolute;
    height: 50px;
    width: 50px;
    /* display: flex; */
}

.dropdown-item > strong {
    margin-left: 30px;
}

.dropdown-item > p {
    text-align: left;
    margin-left: 30px;
}

.dropdown > hr {
    margin-top: -5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 5em;
    padding-bottom: 2em;
    background: #bdbdbd;
    margin-top: 60px; /* Adjust for fixed navbar */
    background-image: url("//www.overrender.com/img/banners/site/or-banner_blur.png");
    background-repeat: no-repeat;
    background-size:100%;
}
.hero h1 {
    font-size: 2.5em;
    color: #333;
}
.hero p {
    font-size: 1.2em;
    color: #666;
}

/* DOWNLOAD ITEM */

.download-item {
    padding: 3em 1em;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.download-item-icon {
    width: 120px;
    height: 120px;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-item-content h2 {
    color: #333;
    margin-bottom: 1em;
    color: white;
}

.download-item-content p {
    color: white;
}

.download-item-section {
    display: flex;              
    gap: 20px;                  
    margin: 0px 60px;            
}

.download-item-content {
    max-width: 900px;           
}

#sys-req {
    color: white;
}

.screenshot {
    height: 100px;
    width: auto;
    cursor: pointer;
    border-radius: 5px;
}

.download-item-screenshot-link {
    margin-right: 10px;
}

.screenshot:hover {
    opacity: 50%;
    transition: 0.2s ease;
}

/* News Section */
.news {
    padding: 3em 1em;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.news-image {
    width: 60%;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-content :not(h2) {
    width: 100%;
    color: white;
}

.news-content h2 {
    color: #333;
    margin-bottom: 1em;
    color: white;
}

.news-content p {
    color: white;
}

#news > .container > .news-content {
    display: inline;
}

#news > .container > img {
    align-items: center;
}

/* Style for the News Section */
.news-section {
    display: flex;              /* Aligns items horizontally */
    align-items: center;    /* Aligns image and text at the top */
    gap: 20px;                  /* Adds spacing between the image and text */
    margin: 0px 60px;            /* Adds spacing around the section */
}

/* Style for the News Image */
.news-image {
    width: 300px;               /* Adjust image width */
    height: auto;               /* Maintain aspect ratio */
    border: 1px solid #ddd;     /* Optional: Add a border for styling */
    border-radius: 5px;         /* Optional: Add rounded corners */
}

/* Optional: Style for the News Text Content */
.news-content {
    max-width: 600px;           /* Limit text width for better readability */
    line-height: 1.1;           /* Improve line spacing */
}

/* PAGE CONTENTS */

.content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    padding: 3em 1em;
    color: white;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.title {
    text-decoration: underline;
}

.line-space-medium {
    line-height: 30px;
}

/* .homepage-software-list-container {
    display: inline-block;
} */

.featured-img {
    height: 60px;
    width: auto;
}

.homepage-software-list-container {
    display: flex;
    align-items: center;
    color: black;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    color: white;
    text-decoration: underline;
}

.homepage-software-list-container > img {
    padding-right: 10px;
}

.homepage-software-list-container:hover {
    color: var(--main-link-color);
    transition: 0.3s ease-in-out;
}

.homepage-website-list-container {
    color: black;
}

.homepage-website-list-container > a {
    color: white;
    font-weight: bold;
}

.homepage-website-list-container > a:hover {
    color: teal;
    transition: 0.3s ease-in-out;
}

/* Footer */
.footer {
    background: var(--nav-footer-color);
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: auto;
    width: 100%;
    border-top: white solid 5px;
}

/* ADDITIONAL ELEMENTS */

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.underlined {
    text-decoration: underline;
}

.strikethrough {
    text-decoration: line-through;
}

.white {
    color: white;
}

.justify {
    text-align: justify;
}

.small-title {
    font-size: 1.2em;
}

.no-border {
    border: none !important;
}

.small-news-image {
    height: 100px;
    width: auto;
}

.small-space-under {
    margin-bottom: -10px;
}

.small-separator {
    width: 20px;
    text-align: left;
}

.page-separator {
    height: 5px;
    background-color: white;
    border: none;
}

.custom-link {
    font-weight: bold;
    color: white;
}

.custom-link:hover {
    transition: 0.3s ease-in;
    color: var(--main-link-color);
}

.custom-link > i {
    padding-right: 5px;
}

.bigger-font-size {
    font-size: 1.2em;
}

#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: 20000;
}
  
#ScrollToTopBtn:hover {
    background-color: var(--main-link-color);
    color: white;
    transition: ease-in-out 0.2s;
}

/* RESPONSIVE WEBSITE */

@media (min-width: 1800px) {
    .dropdown-item > strong {
        margin-left: 10px;
    }
    
    .dropdown-item > p {
        text-align: left;
        margin-left: 10px;
    }
}

/* Responsive Styles */
@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar .logo {
        text-align: center;
    }

    .nav-links {
        margin-top: -1px;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        padding: 1em 0;
        border-bottom: white solid 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5em 1em;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 2em;
    }

    .dropdown {
        position: relative;
        width: 100vw;
        height: 100%;
    }

    .dropdown-item {
        margin-right: 10vw !important;
        margin-left: 15%;
    }

    .logo > a > img {
        margin-bottom: -10px;
    }

    .img-container {
        width: 14%;
        min-width: 50px;
    }

    /* NEWS */

    .news {
        width: 80%;
    }

    .news-section {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: center;    /* Center items on small screens */
        text-align: left;
        display: flex;
        margin-left: 20px;
        margin-right: 20px;
    }

    .news-image {
        margin-bottom: -10px;
        height: 150px;
        width: auto;    /* Add spacing below the image */
    }

    .news-content :not(.specific) {
        text-align: center;     /* Center the text for smaller screens */
    }

    /* DOWNLOAD ITEM */

    .download-item {
        width: 80%;
    }

    .download-item-section {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: center;    /* Center items on small screens */
        text-align: left;
        display: flex;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .download-item-icon {
        margin-bottom: -10px;
        height: 150px;
        width: auto;    /* Add spacing below the image */
    }

    .download-item-software-title {
        text-align: center !important;
    }

    .download-item-download-link {
        text-align: left !important;
    }

    .screenshot {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    .screenshot-list {
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center;
    }

    /* PAGE CONTENTS */

    .content {
        width: 100%;
    }

    .justify-p {
        text-align: justify;
    }

    .small-news-image {
        height: 80px;
        width: auto;
    }
}
