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
}

a {
    text-decoration: none;
}

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

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


/* Nav */
nav {
    position: fixed;
    width: 100%;
    overflow: hidden;
    background-color: darkslateblue;
    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: mediumspringgreen;
}

nav a.active {
    color: mediumspringgreen;
}

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

.topnav-right {
    float: right;
}

.primary {
    color: mediumspringgreen;
}

/* 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: darkslateblue;
        width: 100%;
    }
}


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

header video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 0;
}

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

.content-text {
    white-space: nowrap;
    background-color: rgba(0, 250, 154, 0.5);
    padding: 10px;
}

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


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

.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: 300px;
    background-position: center center;
    background-size: cover;
}

.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;
}

.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;
}

.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 mediumspringgreen;
    background-color: rgba(0, 0, 0, 0);
    color: mediumspringgreen;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    transition-duration: 1s;
}

button:hover {
    background-color: mediumspringgreen;
    color: darkslateblue;
}

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;
}


/* DataTable */
table {
    font-size: 16px;
    width: 100%;
    border: 0 solid;
}

table th {
    color: rgb(35, 35, 35);
    background-color: mediumspringgreen;
}

table tr:nth-child(even) {
    background-color: rgb(30, 30, 30);
}


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

label {
    font-size: 16px;
}

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

input::placeholder {
    color: mediumspringgreen;
}

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

textarea {
    background: darkslateblue;
    width: 300px;
    padding: 14px 28px;
    font-size: 16px;
    color: mediumspringgreen;
    border: none;
    outline: none;
    border-bottom: 2px solid mediumspringgreen;
    height: 200px;
}

textarea::placeholder {
    color: mediumspringgreen;
}

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

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

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