/* Main */
html, body {
    background-color: rgb(35, 35, 35);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 0;
    height: 100%;
    overflow-x: hidden
}

.main {
    max-width: 1500px;
    margin: auto;
}

@media screen and (max-width: 1500px) {
    .main {
        margin: 0 8px 50px;
    }
}


/* Topnav */
nav {
    position: fixed;
    width: 100%;
    overflow: hidden;
    background-color: darkslategrey;
    top: 0;
    z-index: 5;
}

.topnavsub {
    position: fixed;
    width: 100%;
    overflow: hidden;
    top: 75px;
    z-index: 5;
}

nav a {
    float: left;
    color: white;
    text-align: center;
    padding: 25px 16px;
    text-decoration: none;
    font-size: 20px;
}

.topnavsub a {
    float: left;
    color: white;
    text-align: center;
    padding: 18px 16px;
    text-decoration: none;
    font-size: 20px;
}

nav a:hover {
    color: lightgreen !important;
}

nav a.active {
    color: lightgreen !important;
}

.topnav-centered {
    float: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.topnav-right {
    float: right;
}

.primary {
    color: lightgreen !important;
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 700px) {
    .topnav-centered {
        position: fixed;
        top: 73px;
        left: 0;
        transform: translate(0, 0);
        background-color: darkslategrey;
        width: 100%;
    }
}


/* Sidenav */
.sidenav {
    width: 130px;
    position: fixed;
    z-index: 1;
    background: rgb(35, 35, 35);
    overflow-x: hidden;
    padding: 8px 0;
}

.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 25px;
    color: lightgreen !important;
    display: block;
}

.sidenav a:hover {
    color: #064579;
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 700px) {
    .sidenav {
        display: none;
    }
}


/* Spacers */
.spacer {
    height: 73px;
}

.spacer2 {
    height: 73px;
}

@media screen and (max-width: 700px) {
    .spacer {
        height: 148px;
    }
    .spacer2 {
        height: 50px;
    }
}


/* Header */
header {
    height: 75%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

header picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
}

.content-text {
    white-space: nowrap;
    background-color: rgba(144, 238, 144, 0.8);
    padding: 10px;
}

.content h1 {
    font-size: 6vw;
}


/* Subnav */
.subnav {
    overflow: hidden;
    background-color: darkslategrey;
}

.subnav a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 16px;
}

.subnav-right {
    float: right;
}

.subnav a:hover {
    background-color: lightgreen;
    color: darkslategrey;
    cursor: pointer;
}

.subnav a.active {
    background-color: lightgreen;
    color: darkslategrey;
}


/* Footer */
footer {
    text-align: center;
    background-color: darkslategrey;
    padding: 20px;
}



/* Center */
.center {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-text {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Remove a default style */
body a {
    text-decoration: none;
    color: inherit;
}

body a:hover {
    text-decoration: none;
    color: inherit;
}

body a:active {
    text-decoration: none;
    color: inherit;
}

body a:visited {
    text-decoration: none;
    color: inherit;
}


/* Half page */
.halfpageleft {
    left: 0;
    float: left;
    height: 100%;
    width: 50%;
    position: relative;
    z-index: 1;
    top: 0;
    overflow-x: hidden;
}

.halfpageright {
    right: 0;
    float: right;
    height: 100%;
    width: 50%;
    position: relative;
    z-index: 1;
    top: 0;
    overflow-x: hidden;
}


/* Section */
.section {
    position: relative;
    width: 100%;
    height: 300px;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
    padding: 10px;
}

.section-text {
    grid-column-start: 1;
    grid-column-end: 3;
}


/* Grid */
.grid {
    display: grid;
    grid-template-columns: 60% 40%; /* default layout */
    gap: 20px;
    padding: 20px;
}

.grid > div {
    text-align: left;
    padding: 30px 50px;
}

.grid > div:hover {
    cursor: pointer;
}

.gridmain {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    height: 400px;
}

.gridtext {
    position: relative;
}

.gridtext p {
    max-width: calc(100% - 100px);
}

.grid img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100px;
}

.grid i {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 100px;
}

/* Media query for narrow devices */
@media (max-width: 700px) {
    .grid {
        grid-template-columns: 100%; /* stack all grid items */
    }

    .gridmain {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: auto;
        grid-row-end: auto;
        height: auto; /* adjust height as needed */
    }

    .grid > div {
        padding: 15px; /* adjust padding as needed */
    }
}


/* Cards */
.row {
    margin: 0 -5px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 33.3%;
    padding: 0 10px;
    box-sizing: border-box;
}

.card {
    text-align: center;
    height: 400px;
}

.card img {
    width: 100%;
    height: auto;
    max-height: 250px;
}

.card i {
    font-size: 180px;
    color: lightgreen;
}

.card .text {
    padding: 16px;
    color: white;
}

@media screen and (max-width: 800px) {
    .column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
}


/* Feature Cards */
.feature-column {
    float: left;
    width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.feature-card {
    text-align: center !important;
    height: 300px;
    color: white;
}

.feature-card i {
    font-size: 100px;
    color: lightgreen;
}

.feature-card img {
    height: 100px;
}

@media screen and (max-width: 800px) {
    .feature-column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
}


/* Buttons */
button {
    border: 2px solid lightgreen;
    background-color: rgba(0, 0, 0, 0);
    color: lightgreen;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    transition-duration: 1s;
}

button:hover {
    background-color: lightgreen;
    color: darkslategrey;
}

button .active {
    background-color: lightgreen;
    color: darkslategrey;
}

button:disabled, button[disabled]{
    border: 2px solid grey;
    color: grey;
    cursor: not-allowed;
    background: rgb(35, 35, 35);
}

.fa-button{
    margin-left: -12px;
    margin-right: 8px;
}


/* Hover Dropdown */
.dropbtn {
    border: 2px solid lightgreen;
    background-color: rgba(0, 0, 0, 0);
    color: lightgreen;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    transition-duration: 1s;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {
    display: block;
    color: black;
}

.dropdown:hover .dropbtn {
    background-color: lightgreen;
    color: darkslategrey;
}


/* Loader */
.loader {
    border: 12px solid white;
    border-top: 12px solid lightgreen;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Alerts */
.alert {
    padding: 20px;
    background-color: #f44336;
    color: white;
    opacity: 1;
    transition: opacity 0.6s;
    margin-bottom: 15px;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: darkslategrey;
}


/* Links */
.a {
    text-decoration:none;
    border-bottom: 2px solid lightgreen;
    color: inherit;
    transition-duration: 1s;
}

.a:hover {
    background: lightgreen;
    color: darkslategrey;
    transition-duration: 1s;
}

/* Input */
form {
    display: block;
}

input {
    background-color: rgba(0, 0, 0, 0);
    width: 300px;
    padding: 14px 28px;
    font-size: 16px;
    color: lightgreen;
    border: none;
    outline: none;
    border-bottom: 2px solid lightgreen;
}

input::placeholder {
    color: lightgreen;
}

input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: lightgreen;
}

select {
    background-color: rgba(0, 0, 0, 0);
    width: 300px;
    padding: 14px 28px;
    font-size: 16px;
    color: lightgreen;
    border: none;
    outline: none;
    border-bottom: 2px solid lightgreen;
}

option {
    padding:0 30px 0 10px;
    min-height: 40px;
    display: flex;
    background: darkslategrey;
    border: none;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}

option:hover {
    color: lightgreen;
}

input:user-invalid {
    border-bottom: 2px solid crimson;
}


/* Tab Menu */
.tablink {
    background: rgba(47, 79, 79, 0.8);
    color: white !important;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 50%;
    max-width: 300px;
}

.twotabcontent {
    color: white;
    display: none;
    padding: 50px;
    max-width: 600px;
    background: rgba(47, 79, 79, 0.8);
}

.tablink-full {
    background-color: darkslategrey;
    color: white;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 25%;
}

.tabcontent-full {
    color: white;
    display: none;
    padding: 50px;
    text-align: center;
}


/* Horizontal Scroll */
.horizontal-scroll {
    overflow: auto;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
}

.horizontal-scroll a {
    text-decoration: none;
    display: inline-block;
}


/* Fully Centered */
.fully-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Accordion */
.accordion {
    background-color: darkslategrey;
    color: lightgreen;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.accordion-active, .accordion:hover {
    background-color: lightgreen;
    color: darkslategrey;
    transition-duration: 1s;
}

.accordion-panel {
    padding: 0 18px;
    display: none;
    overflow: hidden;
}


/* Centering */
.x-center {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}


/* Table */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 15px;
}

th {
    background-color: darkslategrey;
    color: lightgreen;
}

th, td {
    text-align: center;
    padding: 16px;
}

th:first-child, td:first-child {
    text-align: left;
}

tr:nth-child(even) {
    background-color: rgba(68, 85, 90, 0.25);
}


/* Clickable */
.clickable:hover {
    cursor: pointer;
}