@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Jaro:opsz@6..72&family=Quicksand:wght@300..700&family=Satisfy&family=Sixtyfour+Convergence&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Jaro:opsz@6..72&family=Quicksand:wght@300..700&family=Satisfy&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Caveat:wght@400..700&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Jaro:opsz@6..72&family=Quicksand:wght@300..700&family=Satisfy&family=Sixtyfour+Convergence&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Bitter:ital,wght@0,100..900;1,100..900&family=Caveat:wght@400..700&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Jaro:opsz@6..72&family=Quicksand:wght@300..700&family=Satisfy&family=Sixtyfour+Convergence&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Archivo+Black&family=Bitter:ital,wght@0,100..900;1,100..900&family=Caveat:wght@400..700&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Jaro:opsz@6..72&family=Quicksand:wght@300..700&family=Satisfy&family=Sixtyfour+Convergence&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #1a0d1b;
    --background: #fdfafd;
    --primary: #ae55af;
    --secondary: #d0d19d;
    --accent: #97c482;
    --accent-dim: #97c48272;

    --button: rgba(148, 173, 54, 0.651);
    --button-dim: rgba(147, 173, 54, 0.521);

    --discord: #5865F2;
    --youtube: #FF0000;
    --github: #211F1F;

    --file: #f5f5f5;
    --file-title: #333;

    --input-bg: rgb(240, 233, 233);
    --link-bg: #f9f9f9;
    --td-bg: #f9f9f9;
    --td-bg-hover: #ddd9db;
}

[data-theme="dark"] {
    --text: #fdfafd;
    --background: #1a0d1b;
    --primary: #ae55af;
    --secondary: #d0d19d;
    --accent: #97c482;
    --accent-dim: #97c48272;

    --button: rgba(148, 173, 54, 0.651);
    --button-dim: rgba(147, 173, 54, 0.521);

    --discord: #5865F2;
    --youtube: #FF0000;
    --github: #211F1F;

    --file: #5c4a4a41;
    --file-title: #cccaca;

    --input-bg: rgb(23, 23, 23);
    --link-bg: #514e4e;
    --td-bg: #615b5bac;
    --td-bg-hover: #8e8484ac;
}

body {
    background-color: var(--background);
    height: 100%;
    overflow-x: hidden;
}

.full-screen {
    width: 100%;
    height: 75vh;
    border: none;
}

.view-img {
    width: 100%;
    height: 35vw;
    object-fit: contain;
    object-position: center;
}

#header {
    padding: 10px;
    text-align: center;
    background-color: var(--accent-dim);
}

#header nav {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 3rem;
    row-gap: 1rem;
}

#logo {
    display: inline-block;
    font-family: "Sixtyfour Convergence", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0,
        "XELA" 0,
        "YELA" 0;
    
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 15px;
}

#header i {
    font-size: 1.5vw;
}

#header i:hover {
    cursor: pointer;
    color: var(--primary);
}

#header .fa-discord {
    color: var(--discord);
}

#header .fa-youtube {
    color: var(--youtube);
}

#header .fa-github {
    color: var(--github);
}

.content {
    padding-top: 10px;
    color: var(--text);
}

.move-down {
    margin-top: 15px;
}

.button i {
    color: var(--background);
}

#kill-switch-page #button-container {
    flex-wrap: wrap;
    gap: 1rem;
}

#kill-switch-page #button-container button {
    flex: 0 0 calc(33% - 10px);
}

a.button, .button {
    display: inline-block;
    margin-top: 1.5vh;
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--background); /* Text color */
    background-color: var(--primary); /* Background color */
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  a.button:hover, .button:hover {
    background-color: var(--accent); /* Accent on hover */
    color: var(--text); /* Change text color on hover */
    border-color: var(--accent-dim); /* Add a subtle border effect */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More pronounced shadow */
  }
  
  a.button:active, .button:active {
    transform: translateY(0); /* Return to normal on click */
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow reduction */
  }

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.grid-container div {
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    /* height: calc(100vh - 100px); */
    height: 100%;
    padding-top: 5vh;
}

/* ------------------- TABLE START ------------------- */

.simple-table {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border-spacing: 10px;
    text-align: center;
    margin: 0 -10px;
}

.simple-table tr {
    display: table-row;
}

.simple-table th {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 20px;
}

.simple-table td:not(.table-button) {
    background-color: white;
    padding: 10px;
    max-width: 10rem;
    text-wrap: wrap;
    overflow-wrap: break-word;
    box-shadow: inset -10px 0px 10px #00000023, inset 10px 0 10px #00000023;
    background-color: var(--td-bg);
    color: var(--text);
}

.simple-table td:not(.table-button) a {
    word-break: break-all;
}

.simple-table th, .simple-table td {
    border-radius: 5px;
}

.simple-table td:hover:not(.table-button) {
    background-color: var(--td-bg-hover);
    cursor: pointer;
}

.simple-table img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.results .table-button a {
    background-color: var(--accent);
    transition-duration: 0.3s;
}

.results .table-button a:hover {
    background-color: var(--accent-dim);
    transition-duration: 0.3s;
}

.results .delete a {
    background-color: rgb(200, 6, 6);
}

.results .delete:not(.disabled) a:hover {
    background-color: rgba(200, 6, 6, 0.36);
}

.results .other a {
    background-color: rgb(0, 119, 255);
}

.results .other:not(.disabled) a:hover {
    background-color: rgba(0, 119, 255, 0.36);
}

.results .table-button a {
    max-width: 75px;
    max-height: 75px;
    font-size: 12px;
}

.results .disabled a {
    opacity: 0.5;
    pointer-events: none;
}

.simple-table a {
    display: flex;
    text-decoration: none;
    color: var(--text);
    width: auto;
    height: 100px;
    border-radius: 100%;
    text-align: center;
    align-items: center;
    padding-inline: 10px;
}

/* ------------------- TABLE END ------------------- */

/* ------------------- LINK START ------------------- */

.link:hover {
    transform: translateY(-5px);
    transition: transform 1s ease-in-out;
    padding-top: 45px;
}

#links-container {
    display: flex;
    margin: 10px;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.link {
    position: relative;
    background-color: var(--link-bg);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    width: 14vw;
    transition-duration: 1s;
    height: 100%;
}

.link h1 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
    /* text-transform: uppercase; */
    white-space: initial !important;
    word-break: break-all;
    width: 100%;
}

.space-left {
    padding-left: 10px;
}

.space-below {
    padding-bottom: 10px;
}

.space-above {
    padding-top: 10px;
}
  
.content .link p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
    white-space: initial !important;
    word-break: break-all;
    width: 100%;
}

.link .buttons {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    display: flex;
    gap: 10px;
    display: none;
}

.link .buttons a {
    text-decoration: none;
    color: rgb(172, 29, 185);
    display: block;
    background-color: rgba(177, 151, 151, 0.342);
    border-radius: 100%;
    padding: 5px;
}

.link .buttons a:hover  {
    color: black;
}

.link:hover .buttons {
    display: flex;
    gap: 10px;
}

/* ------------------- LINK END ------------------- */

/* ------------------- FILE MANAGER START ------------------- */

.file-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--file);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.file:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.file img {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 8px;
    opacity: 1;
    z-index: 1;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-right: 20px;
}

.file-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-details h2 {
    font-size: 1.2rem;
    color: var(--file-title);
    margin: 0;
    word-break: break-word;
}

.file-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    word-break: break-word;
}

.file-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-left: 10px;
}

.file-actions a {
    text-decoration: none;
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid #007bff;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.file-actions a:hover {
    background-color: #007bff;
    color: #fff;
}

.file:hover .file-actions {
    opacity: 1;
}

/* ------------------- FILE MANAGER END ------------------- */

.center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home .content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.center-form {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 30%);
}

.basic-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.basic-form textarea {
    resize: none;
    padding: 5px 5px;
}

.centered {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.search-form button, .basic-form button {
    padding: 5px 10px;
    border-radius: 50px;
    border: none;
    background-color: var(--button);
    color: var(--text);
    cursor: pointer;
    transition-duration: 0.3s;
    max-width: 100%;
}

.basic-form button {
    margin-top: 10px;
}

.search-form button:hover {
    transform: scale(1.1);
    transition-duration: 0.3s;
    background-color: var(--button-dim);
}

.basic-form button:hover {
    transform: scale(1.02);
    transition-duration: 0.3s;
    background-color: var(--button-dim);
}

.basic-form input, .basic-form label {
    font-family: "EB Garamond", serif;
}

.search-form input, .basic-form input, .basic-form select {
    background-color: var(--input-bg);
    color: var(--text);
    padding: 5px 10px;
    font-size: 1.1em;
    border-radius: 50px;
    border: none;
    border: 2px solid var(--button);
    max-width: 100%;
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.basic-form textarea, .basic-form button {
    background-color: var(--input-bg);
    color: var(--text);
    padding: 5px 10px;
    max-width: 100%;
    width: 100%;
    border: 2px solid var(--button);
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.error {
    color: red;
    display: inline-block;
    /* padding-right: 100%; */
    background-color: #2A236A;
    font-size: small;
    font-family: "Permanent Marker";
    
    white-space: initial !important;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    min-width: 100%;
}

.error:empty {
    display: none;
}

.error a {
    color: var(--secondary);
}

.content .title {
    font-family: "Jaro", serif;
    font-weight: 400;
    font-style: normal;
}

.content h2 {
    font-family: "Anton SC", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.content h3 {
    font-family: "Satisfy", cursive;
    font-weight: 400;
    font-style: normal;
}

.content p {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.image-slider div {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-slider div img {
    width: 100%;
    height: 20vw;
    object-position: top;
    object-fit: cover;
}

.image-slider div .object-center {
    object-position: center;
}

.video-player {
    max-width: 100vw;
}

.grecaptcha-badge {
    position: fixed !important;
    left: 52%;
    transform: translateX(-50%) translateY(150%);
    z-index: 9999;
}

.admin-page {
    display: flex;
    min-height: 100vh;
    background-color: var(--background);
}

.admin-page .content {
    padding: 10px;
}

.user-page .content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding-left: 10px;
}

.flex-col {
    display: flex;
    flex-wrap: wrap !important;
    flex-direction: column !important;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-gap {
    gap: 4px;
}

.gap {
    display: inline-block;
    width: 20px;
}

.max-width {
    width: 100%;
    gap: 3px;
}

#back-button {
    margin-left: 1.5vh;
}

#right-hand-side-buttons {
    display: flex;
    margin-left: auto; /* Pushes this element to the right */
    margin-right: 10px;
    gap: 5px;
}

#right-hand-side-buttons a {
    margin-top: 0px;
    text-decoration: none;
    color: inherit; /* Ensure the link color does not override */
}

#right-hand-side-buttons h3 {
    display: inline-flex;
    align-items: center;
    font-size: 2em;
}

#files .content {
    display: flex;
    flex-direction: column;
}

#prev-folder {
    width: 3rem;
}

#files .search-form, #upload-access .search-form, #upload h2 {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
}

#table-buttons {
    display: flex;
    flex-direction: column;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

progress {
    width: 100%;
    height: 20px;
}

#progress-percentage {
    font-size: 14px;
    color: #333;
}

.status-box {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-box p {
    font-size: 16px;
    margin: 0;
    color: #333;
}

/* ------------------- SIDBAR START ------------------- */

#side-bar {
    background-color: var(--accent-dim);
    width: 20%;
    padding: 30px;
    position: relative;
    transition: 0.5s;
    overflow-x: hidden;
    z-index: 1;
    box-shadow: inset -10px 0px 10px #00000023, inset 10px 0 10px #00000023;
}

#side-bar .dropdown {
    display: none;
    padding-left: 40px;
}

#side-bar .dropdown li {
    font-size: 12pt;
}

#side-bar h2, #side-bar a, #side-bar li {
    font-size: clamp(8x, 5vw, 12px);
}

#side-bar ul {
    list-style-type: none;
}

#side-bar i {
    color: var(--primary);
    margin-right: 5px;
}

#side-bar p, #side-bar h1, #side-bar h2, #side-bar li, #side-bar a {
    color: var(--text);
}

#side-bar h2 {
    padding-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text);
    font-family: "Teko", serif;
}

#side-bar #logo {
    font-size: 0.6vw;
}

#side-bar a:not(#logo), #side-bar li {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-family: "Bitter", serif;
    opacity: 0.95;
}

#side-bar li {
    cursor: pointer;
    margin: 5px 0;
    border-radius: 50px;
    transition-delay: 0.1s;
}

#side-bar .droptrigger, #side-bar a {
    padding: 10px;
}

#side-bar li:hover {
    background-color: var(--accent-dim); /* Doing this makes the color more strong over the default */
    transition-delay: 0.1s
}

#side-bar .closebtn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 36px;
    margin-left: 50px;
    border-radius: 10px;
    padding: 3px 15px;
    cursor: pointer;
}

#side-bar .closebtn:hover {
    background: var(--accent-dim);
}

.openbtn {
    display: none;
    cursor: pointer;
    border: none;
    padding: 10px 10px;
    font-size: large;
    background-color: var(--accent-dim);
    z-index: 100;
}

.openbtn:hover {
    background-color: var(--accent);
}

/* ------------------- SIDBAR END ------------------- */

/* ------------------- TOGGLE SWITCH START ------------------- */

.toggle-container {
    display: inline-block;
    width: 50px;
    height: 25px;
    position: relative;
}

.toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.toggle-switch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background-color: #4caf50;
}

.toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: left 0.3s;
}

.toggle-switch.active .toggle-handle {
    left: 27px;
}

.toggle-container.disabled .toggle-switch {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.toggle-container.disabled .toggle-handle {
    background-color: #f0f0f0;
    box-shadow: none;
    pointer-events: none;
}

/* ------------------- TOGGLE SWITCH END ------------------- */

@media (max-width: 1800px) {
    .simple-table td a {
        font-size: 10px;
    }
}

/* Tablet */
@media (max-width: 1600px) {
    #logo {
        font-size: 1.8vw;
    }

    #side-bar #logo {
        font-size: 0.6vw;
    }

    #header i {
        font-size: 1.8vw;
    }

    .simple-table td a {
        font-size: 8px;
    }

    #side-bar .dropdown {
        padding-left: 20px;
    }
}

/* Slightly smaller than tablet */
@media (max-width: 1500px) {
    #logo {
        font-size: 2vw;
    }

    #side-bar #logo {
        font-size: 0.3vw;
    }

    #header i {
        font-size: 2vw;
    }

    #side-bar #logo {
        font-size: 0.5vw;
    }

    .link .buttons {
        display: flex;
        gap: 10px;
    }

    .link:hover .buttons {
    }

    .link {
        width: 30%;
    }

    .file {
        width: 30%
    }

    .file .file-actions {
        opacity: 1;
    }

    .simple-table td:not(.table-button) {
        max-width: 5rem;
        padding: 3px;
    }

    .simple-table, .simple-table a, .simple-table td {
        font-size: 12px;
    }
}

/* Smaller than tablet */
@media (max-width: 1200px) {
    #side-bar #logo {
        font-size: 0.35vw;
    }

    .simple-table, .simple-table a, .simple-table td {
        font-size: 8px;
    }

    .results .table-button a {
        max-width: 50px;
        max-height: 50px;
        font-size: 8px;
    }

    .simple-table td:not(.table-button) {
        max-width: 4.5rem;
    }

    #kill-switch-page .content {
        font-size: 3vw;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #logo {
        font-size: 3vw;
    }
    
    #side-bar #logo {
        font-size: 0.3vw;
    }

    #header i {
        font-size: 3vw;
    }

    #footer p {
        font-size: 3vw;
    }

    .simple-table, .simple-table a, .simple-table td {
        font-size: 6px;
    }
    
    #side-bar .dropdown {
        padding-left: 10px;
    }

    .results .table-button a {
        max-width: 50px;
        max-height: 50px;
        font-size: 8px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    #logo {
        font-size: 3vw;
    }

    #side-bar #logo {
        font-size: 0.2vw;
    }

    #header i {
        font-size: 8vw;
    }

    #footer p {
        font-size: 8vw;
    }

    .simple-table, .simple-table a, .simple-table td {
        font-size: 5px;
    }
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 1.3vw;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
    background-color: var(--accent-dim);
    padding-top: 5px;
    min-height: 50px;
    z-index: -1;
    font-family: "Caveat", cursive;
}

#footer i {
    color: rgba(238, 13, 13, 0.7);
}