@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;300;400;500;600;700&display=swap');

:root {
    --dark_color: #18191b;
    --grey_color: #1c1e20;
    --accent_color: #4632f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark_color) !important;
    background-image: url('../background.png');
    font-family: 'Karit', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.2rem !important;
    /* Full height */
    min-height: 100vh; /* Use viewport height to ensure it covers the full screen */

    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Optional: This ensures the background stays fixed while scrolling */
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--dark_color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent_color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent_color);
}

a {
    color: white;
}

a:hover {
    color: var(--accent_color);
}

/* Navbar */
.navbar {
    height: 1.925rem !important;
    background-color: var(--grey_color) !important;
    border-bottom: 1px solid var(--accent_color)!important;
    border-left: 0px;
    border-right: 0px;
    border-top: 0px;
}

.navbar-expand .navbar-nav {
    flex-direction: row !important;
    justify-content: space-between !important;
}

.navbar-expand .navbar-nav .active {
    color: var(--accent_color) !important;
}

.navbar-expand .navbar-nav a {
    transition: color 0.5s ease;
    line-height: 14px !important;
    letter-spacing: 0px !important;
    text-transform: capitalize !important;
    color: white !important;
    padding-inline: 2rem !important;
    position: relative !important;
}

.navbar-expand .underline:after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    bottom: -2px !important;
    width: 0px !important;
    height: 2px !important;
    background: var(--accent_color) !important;
    transition: all 0.45s !important;
}

.navbar-expand .underline:hover:after {
    width: 100% !important;
    left: 0 !important;
}

.navbar-expand .navbar-nav a:hover {
    color: var(--accent_color) !important;
}

/* Cards */
.card {
    font-stretch: ultra-expanded !important;
    background-color: #1c1e20 !important;
    text-align: center;
    color: white !important;
    border: 1px solid var(--accent_color);
}

.card .card-header {
    background-color: #00000025;
    border-bottom: 1px solid var(--accent_color);
    border-image-slice: 1;
    border-left: 0px;
    border-right: 0px;
    border-top: 0px;
}

.card .card-footer {
    border-top: 1px solid rgb(56, 56, 56);
}

.card .card-footer svg {
    height: 37px;
}

.card .card-footer svg:hover {
    animation: rubberBand 0.9s ease;
}

.card .card-title {
    font-size: 3rem;
    margin-bottom: 3.2rem;
}

.card .card-body .logo-title img {
    width: 30%;
    margin-bottom: 2rem;
}

/* Discord Widget */
.member_list {
    animation: slidein 0.5s ease;
}

@keyframes slidein {
    from {
        transform: translateX(-100px);
    }
    to {
        transform: translateX(0px);
    }
}

.member-list ul {
    list-style: none;
}

.member-list .member {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0.6rem !important;
    align-items: center !important;
}

.member-list ul li:nth-child(even) {
    background-color: var(--dark_color) !important;
}

.member-img img {
    height: 30px !important;
}

/* Buttons */
.btn {
    width: 100%;
    background-color: var(--accent_color) !important;
    color: white !important;
    border: none !important;
    transition: opacity 0.5s ease !important;
}

.btn:hover {
    opacity: 70% !important;
}

button {
    border: none !important;
    box-shadow: none !important;
}

button:active {
    border: none !important;
    box-shadow: none !important;
}

/* Waves are cool */
.card-link {
    cursor: pointer;
    transition: color 0.5s ease;
    color: white;
    font-size: 13px;
    line-height: 18px;
}

.card-link:hover {
    color: var(--accent_color);
}

.wave {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%!important;
    overflow: hidden !important;
    line-height: 0 !important;
    transform: rotate(180deg)  !important;
}

.wave svg {
    position: relative !important;
    display: block !important;
    width: calc(100% + 1.3px)!important;
    height: 58px !important;
    animation: wave 10s cubic-bezier( 0.36, 0.45, 0.63, 0.53) infinite !important;
    transform: translate3d(0, 0, 0) !important;
}

.wave svg:nth-of-type(2) {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 58px;
    animation: wave 19s cubic-bezier( 0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 7s ease -1.25s infinite;
    transform: translate3d(0, 0, 0);
}

.wave .shape-fill {
    fill: #242424;
}

.logo-img {
    width: 30%;
    margin-bottom: 2rem;
}

/* Cool Animation Yes Poggers */
@keyframes rubberBand {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }
    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }
    60% {
        transform: scaleX(1.15) scaleY(0.85);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wave {
    0%,
    100% {
        transform: translate3d(0, -25px, 0);
    }
    50% {
        transform: translate3d(0, 0px, 0);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
}

.active {
    color:#4632f0;
}

/* Status */
.product {
    border: 1px solid #1c1c1c;
    transition: border-color 0.5s ease;
    background-color: #101010;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline-end: 1rem;
    padding-block: 1.2rem;
}

.product:hover {
    border-color: #4632f0;
}

.product .product-title {
    margin-left: .8rem;
}

.product .up {
    background-color: #7cff9c;
    padding-inline: 1.5rem;
    padding-block: 0.15rem;
    border-radius: 1rem;
    border: 1px solid #5aff84;
    opacity: 80%;
    text-shadow: 2px 2px 3px black;
    font-weight: 300;
}

.product .down {
    background-color: #ff7c7c;
    padding-inline: 1.5rem;
    padding-block: 0.15rem;
    border-radius: 1rem;
    border: 1px solid #ff5a5a;
    opacity: 80%;
    text-shadow: 2px 2px 3px black;
    font-weight: 300;
}

.product .updating {
    background-color: #ffc67c;
    padding-inline: 1.5rem;
    padding-block: 0.15rem;
    border-radius: 1rem;
    border: 1px solid #ffc67c;
    opacity: 80%;
    text-shadow: 2px 2px 3px black;
    font-weight: 300;
}

.product {
    background-color: #18191b;
    border: 1px solid #3f3f3f;
}

ul {
    list-style: none;
}


.product {
    margin-bottom: 1.3rem;
}

/* 404 */
.error-code {
    font-size: 5rem;
    color: var(--accent_color);
    margin: 0;
}

.error-card {
    background-color: var(--dark_color);
    border: 2px solid var(--accent_color);
}

.error-card .card-header {
    background-color: #00000030;
    border-bottom: 2px solid var(--accent_color);
}

.animated-gears {
    font-size: 3rem;
    margin: 2rem 0;
}

.gear {
    display: inline-block;
    animation: spin 4s linear infinite;
    margin: 0 1rem;
}

.reverse {
    animation-direction: reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 3rem;
    }
    .logo-img {
        width: 50%;
    }
}

/* Tool Cards */
.tool-card {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    background-color: #1c1e20;
    border: 1px solid #3f3f3f;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.tool-card:hover {
    border-color: #4632f0;
}

.tool-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1.5rem; /* Space between image and details */
}

.tool-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between title/description and button */
    height: 100%; /* Ensure the details section takes full height */
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1rem; /* Space between description and button */
}

.btn-download {
    background-color: #4632f0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    align-self: flex-start; /* Align button to the left */
}

.btn-download:hover {
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #4632f0;
    text-decoration: none;
    cursor: pointer;
}