* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* CSS Variables */
:root {
    --main-bg: #ffffff;
    --main-text: #0a0a0a;
    --nav-bg: #ff6200;
    --accent: #FF914C;
    --forum-card-bg: #8CCDEB;
    --forum-title: #003366;
    --forum-desc: #555;
    --forum-stats: #666;
    --forum-stats-bold: #1a1a1a;
    --table-border: #ddd;
    --table-header-bg: #fafafa;
    --table-row-border: #eee;
    --modal-bg: #fff;
    --modal-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --modal-radius: 8px;
    --modal-padding: 20px 30px;
    --modal-close-size: 1.5rem;
    --modal-overlay-bg: rgba(0, 0, 0, 0.5);
    --icon-color: #ff6200;
    --icon-hover: #000;
    --bottom-info-icon: rgb(39, 39, 39);
    --bottom-info-icon-hover: rgb(98, 98, 98);
    --font-main: 'Segoe UI', 'Inter', sans-serif;

    --main-bg-dark: #181824;
    --main-text-dark: #f3f3f3;
    --nav-bg-dark: #1a1333;
    --accent-dark: #FF914C;
    --forum-card-bg-dark: #23243a;
    --forum-title-dark: #b3d1ff;
    --forum-desc-dark: #aaa;
    --forum-stats-dark: #bbb;
    --forum-stats-bold-dark: #fff;
    --table-border-dark: #333;
    --table-header-bg-dark: #23243a;
    --table-row-border-dark: #23243a;
    --modal-bg-dark: #23243a;
    --modal-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.7);
    --icon-color-dark: #FF914C;
    --icon-hover-dark: #fff;
    --bottom-info-icon-dark: #f3f3f3;
    --bottom-info-icon-hover-dark: #FF914C;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    width: 100%;
    padding-top: 20vh !important;
    position: relative;
    background-color: var(--main-bg);
    margin: 0;
    padding: 2rem;
    color: var(--main-text);
}

/* Navigation */
nav {
    width: 100% !important;
    height: 10vh;
    background-color: var(--nav-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
}

nav .dropdown-content a:hover {
    color: darkblue !important;
    border-radius: 10px;
}

.logo {
    width: 55%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    color: #fff;
    flex-direction: row;
}

.links {
    width: 45%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.links a {
    padding: 10px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.links a:hover {
    color: var(--accent);
}

.links ul {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.links ul i {
    font-size: 15px;
    transition: all 0.3s ease;
}

.links ul .active_link {
    color: #181824 !important;
}

body.dark-mode .links ul .active_link {
    color: #181824 !important;
}

/* Forum Cards & Table */
.big-box {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container {
    width: 100%;
    height: fit-content;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 310px));
    justify-content: center;
}

.head {
    font-size: 2.5rem;
    color: #1c1c1c;
    margin-bottom: 2rem;
}

.forum-card {
    width: 70%;
    border: 1px solid #e0e0e0;
    border-radius: var(--modal-radius);
    padding: 1.5rem;
    padding-bottom: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--forum-card-bg);
    position: relative;
}

.forum-info {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
}

.forum-info h2 {
    width: 100%;
    margin: 0;
    font-size: 2rem;
    color: var(--forum-title);
}

.forum-info p {
    margin: 0.5rem 0 0;
    font-size: 1.35rem;
    color: #444;
}

.forum-stats {
    text-align: right;
    font-size: 0.85rem;
    color: var(--forum-stats);
}

.forum-stats span {
    display: block;
    font-size: 1.1rem;
    color: var(--forum-stats-bold);
    font-weight: bold;
}

.fa-bars {
    font-size: 0;
    color: #fff;
    position: absolute;
    top: 22.5px;
    right: 30px;
    cursor: pointer;
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: #888;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--table-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--table-row-border);
}

th {
    background-color: var(--table-header-bg);
    font-weight: bold;
}

thead th {
    text-align: center;
}

td:first-child {
    font-weight: bold;
}

.first_child {
    text-align: start;
}

tbody tr td {
    text-align: center;
}

.forum-description {
    font-weight: normal;
    color: var(--forum-desc);
    font-size: 0.9em;
}

tr:last-child td {
    border-bottom: none;
}

.last-message {
    color: #444;
}

.last-message span {
    display: flex;
    color: #888;
    font-size: 0.85em;
    margin-top: 4px;
    flex-direction: row;
    align-items: center;
}

.last-message span i {
    font-size: 25px;
    color: var(--icon-color);
    cursor: pointer;
}

.last-message button {
    width: 100%;
    margin-left: 15px;
}

.open-modal-btn {
    font-size: 16px;
    cursor: pointer;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal::-webkit-scrollbar {
    display: none;
}

/* Modal Window */
#modal {
    display: none;
}

.modal {
    position: relative;
    top: 80px !important;
    left: 20% !important;
    background: var(--modal-bg);
    height: 640px !important;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--modal-radius);
    padding: var(--modal-padding);
    box-shadow: var(--modal-shadow);
}

.modal h2 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: var(--modal-close-size);
    cursor: pointer;
}

.modal .close-btn:hover {
    color: var(--icon-hover);
}

.modal ul {
    padding-left: 20px;
}

.modal section {
    margin-bottom: 20px;
}

/* Bottom Info */
.bottom-info {
    position: relative;
    bottom: 0;
    width: 100%;
    height: fit-content;
    padding: 10px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-info span {
    margin-bottom: 10px;
}

.bottom-info span a {
    color: var(--bottom-info-icon);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    transition: 0.1s;
}

.bottom-info span a:hover {
    color: var(--bottom-info-icon-hover);
    transform: scale(1.05);
    transition: 0.1s;
}

body.dark-mode {
    background: var(--main-bg-dark);
    color: var(--main-text-dark);
}



body.dark-mode .forum-card {
    background: var(--forum-card-bg-dark);
}

body.dark-mode .forum-info h2 {
    color: var(--forum-title-dark);
}

body.dark-mode .forum-description {
    color: var(--forum-desc-dark);
}

body.dark-mode .forum-stats {
    color: var(--forum-stats-dark);
}

body.dark-mode .forum-stats span {
    color: var(--forum-stats-bold-dark);
}

body.dark-mode table {
    background: var(--forum-card-bg-dark);
    border-color: var(--table-border-dark);
}

body.dark-mode th {
    background: var(--table-header-bg-dark);
    color: var(--main-text-dark);
}

body.dark-mode td {
    background: var(--forum-card-bg-dark);
    color: var(--main-text-dark);
}

body.dark-mode .modal {
    background: var(--modal-bg-dark);
    box-shadow: var(--modal-shadow-dark);
    color: var(--main-text-dark);
}

body.dark-mode .modal h2,
body.dark-mode .modal h3 {
    color: var(--main-text-dark);
}

body.dark-mode .modal .close-btn:hover {
    color: var(--icon-hover-dark);
}

body.dark-mode .last-message span i,
body.dark-mode .open-modal-btn {
    color: var(--icon-color-dark);
}

body.dark-mode .bottom-info span a {
    color: var(--bottom-info-icon-dark);
}

body.dark-mode .bottom-info span a:hover {
    color: var(--bottom-info-icon-hover-dark);
}

body.dark-mode .links a {
    color: #fff;
}

body.dark-mode .links a:hover {
    color: var(--accent-dark);
}

.links .active_link {
    color: #181824;
}

body.dark-mode .links .active_link {
    color: #181824;
}

body.dark-mode #closeComingSoon,
body.dark-mode #closeModal {
    color: white;
}

/* Responsive */

@media screen and (max-width: 600px) {
    .modal {
        max-width: 300px;
        min-height: 150px;
    }
    .logo{
        width: 80%;
    }
    .logo h2 {
        font-size: large;
        text-align: center;
    }

    .dropdown-content,
    .fa-chevron-down {
        display: none !important;
    }

    .fa-bars {
        font-size: 25px;
        color: #fff;
        position: absolute;
        top: 22.5px;
        right: 30px;
        cursor: pointer;
        z-index: 9999999;
    }

    .links {
        width: 0;
        height: 105vh;
        /*715px*/
        background-color: rgb(37, 37, 37);
        position: absolute;
        top: 0;
        right: -1;
        z-index: 99999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    .links a {
        padding: 10px;
        width: 90%;
        color: #fff;
        text-decoration: none;
        cursor: pointer;
    }

    .links a:hover {
        color: var(--accent);
    }

    .links ul {
        width: 100%;
        margin: 10px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    .links ul .fa-chevron-down {
        font-size: 10px;
        transition: all 0.3s ease;
    }

    .links ul a:hover .fa-chevron-down {
        transform: rotate(180deg);
    }
}

body.dark-mode .bottom-info .dev {
    color: white !important;
}