@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Kameron:wght@400..700&display=swap');

@font-face {
    font-family: 'ps';
    src: url('../Fonts/TheRaveIsInYourPants-YxxO.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'x360';
    src: url('../Fonts/X360.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Dolce';
    src: url('../Fonts/Dolce\ Vita\ Heavy\ Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: #1e1e1e;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    /* Prevent horizontal scroll */
}

.abril-fatface-regular {
    font-family: "Dolce", serif;
    font-weight: 400;
    font-style: normal;
}

/* Flexbox container for the main layout */
.main-layout {
    display: flex;
    flex: 1;
    flex-direction: row;
    overflow: auto;
}

/* Initially hide the menu */
#menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 2.5s ease, visibility 2.5s ease;
}

/* Show the menu with fade-in effect */
#menu.show {
    opacity: 1;
    visibility: visible;
}

/* Hide the menu with fade-out effect */
#menu.hide {
    opacity: 0;
    visibility: hidden;
}



/* Initially hide the menu */
#custom-css-section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 2.5s ease, visibility 2.5s ease;
}

/* Show the menu with fade-in effect */
#custom-css-section.show {
    opacity: 1;
    visibility: visible;
}

/* Hide the menu with fade-out effect */
#custom-css-section.hide {
    opacity: 0;
    visibility: hidden;
}

/* Sidebar and menu */
#custom-css-section,
#menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 20px;
    z-index: 10;
}

#custom-css-section {
    left: 20px;
    width: 250px;
    /* Reduced width for better responsiveness */
    height: calc(100% - 40px);
}

#menu {
    right: 20px;
}

/* Warning header for disconnected controller */
a {
    text-decoration: none;
}

#controller-disconnected {
    font-family: 'Dolce', sans-serif;
    display: none;
    background-color: #ff4f4f;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

#controller-container {
    margin-left: 250px;
    /* Adjusted to align with the sidebar */
    flex: 1;
    padding: 20px;
    /* Added padding for content spacing */
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #custom-css-section {
        width: 200px;
    }

    #controller-container {
        margin-left: 0;
        margin-top: 20px;
    }
}

#url-field {
    width: 93%;
    /* Make it responsive */
    padding: 10px;
    background-color: #333;
    border: none;
    color: white;
    border-radius: 5px;
    text-align: center;
}

/* General button styles */
button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    font-family: "Dolce", serif;
}

button:hover {
    background-color: #555;
}

button:active {
    background-color: #777;
}

/* Specific styles for .custom class buttons */
.custom {
    background-color: #282a36;
}

.custom:hover {
    background-color: #3a3f5a;
}

.custom:active {
    background-color: #4a4f6a;
}

/* Adjustments for button width in specific containers */
#menu button,
#custom-css-section button {
    width: 100%;
}

/* Keyframes for sliding down (opening) */
@keyframes slideDown {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for sliding up (closing) */
@keyframes slideUp {
    0% {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Dropdown container */
.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-content.open {
    display: flex;
    animation: slideDown 0.5s forwards ease-in-out;
}

.dropdown-content.close {
    animation: slideUp 0.5s forwards ease-in-out;
}

/* Custom styles for the <select> dropdown */
#controller-select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#controller-select:focus {
    border-color: #282a36;
    background-color: #444;
}

/* Custom styles for <option> elements */
#controller-select option {
    background-color: #1e1e1e;
    color: white;
}

#controller-select option:hover {
    background-color: #282a36;
}


/* Custom range input styles */
#size-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 5px;
    outline: none;
    margin: 0;
    cursor: pointer;
}

#size-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#size-range::-webkit-slider-thumb:hover {
    background: #777;
}

#size-range::-webkit-slider-thumb:active {
    background: #999;
}

#size-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#size-range::-moz-range-thumb:hover {
    background: #777;
}

#size-range::-moz-range-thumb:active {
    background: #999;
}

/* CodeMirror CSS */
.CodeMirror {
    height: 100%;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1e1e1e;
    color: #f8f8f2;
    overflow: auto;
}

.CodeMirror::-webkit-scrollbar {
    width: 12px;
    background-color: #1e1e1e;
}

.CodeMirror::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
}

.CodeMirror::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

.CodeMirror::-webkit-scrollbar-thumb:active {
    background-color: #999;
}

.CodeMirror {
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

.CodeMirror .cm-scroller {
    min-height: 100%;
}

/* Credits Container */
.credits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

/* Credit Item */
.credit-item {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.credit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credit-item:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Tooltip on Hover */
.credit-item::after {
    content: attr(data-info);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.credit-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Adjustments for Smaller Screens */
@media (max-width: 600px) {
    .credits-container {
        gap: 10px;
        padding: 8px;
    }

    .credit-item {
        width: 40px;
        height: 40px;
    }

    .credit-item::after {
        font-size: 10px;
        bottom: -25px;
    }

    .credit-item:hover::after {
        bottom: -35px;
    }
}

#color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#color-picker {
    width: 100%;
    height: 40px;
    border: none;
    padding: 0;
    cursor: pointer;
}

#color-hex,
#color-rgba {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: none;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-family: "Dolce", serif;
    font-weight: 500;
}

/* WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

::-webkit-scrollbar-thumb:active {
    background: #999;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

*::-webkit-scrollbar-corner {
    background-color: #1e1e1e;
}

label {
    text-align: center;
    text-transform: uppercase;
}

/* Overlay for the feature request form */
#feature-request-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

/* Feature Request Form Container */
#feature-request-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2e2e2e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    width: 90%;
    max-width: 600px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Close Button */
#feature-request-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #f0f0f0;
    cursor: pointer;
    transition: color 0.3s ease;
}

#feature-request-close:hover {
    color: #ff5c5c;
}

/* Form Elements */
#feature-request-container label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #f0f0f0;
}

#feature-request-container input,
#feature-request-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: #1e1e1e;
    color: #f0f0f0;
    transition: border-color 0.3s ease;
}

#feature-request-container input:focus,
#feature-request-container textarea:focus {
    border-color: #282a36;
    outline: none;
}

/* Submit Button */
#feature-request-container button {
    background-color: #282a36;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

#feature-request-container button:hover {
    background-color: #2e2e2e;
}

#feature-request-container button:disabled {
    background-color: #444;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
    #feature-request-container {
        padding: 20px;
    }

    #feature-request-close {
        font-size: 24px;
    }
}

/* Tag Container */
#tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Tag Button */
.tag {
    background-color: #444;
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

/* Selected Tag */
.tag.selected {
    background-color: #282a36;
    color: #ffffff;
}

/* Tag Hover State */
.tag:hover {
    background-color: #555;
}

/* Tag Disabled State */
.tag:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Notification Container */
#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notification {
    font-family: "Dolce", "sans-serif";
    background: linear-gradient(145deg, #315217, #64c217);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 300px;
    opacity: 0;
    /* Start hidden */
    transform: translateY(-20px);
    /* Start slightly above */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Smooth transitions */
    text-align: center;
    margin-bottom: 10px;
}

.notification.show {
    opacity: 1;
    /* Fully visible */
    transform: translateY(0);
    /* Move to original position */
}

.notification.fade-out {
    opacity: 0;
    /* Hide */
    transform: translateY(-20px);
    /* Move slightly above */
}

.notification.disconnected {
    background: linear-gradient(145deg, #b71c1c, #e53935);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.notification.info {
    background: linear-gradient(145deg, #ffcc00, #ffeb3b);
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.notification .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification .close-btn:hover {
    color: #ccc;
}

#color-hex,
#color-rgba {
    display: none;
}

body.light {
    background-color: #f5f5f5;
    color: black;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body.light .abril-fatface-regular {
    font-family: "Dolce", serif;
    font-weight: 400;
    font-style: normal;
}

body.light .main-layout {
    display: flex;
    flex: 1;
    flex-direction: row;
    overflow: auto;
}

body.light #custom-css-section,
body.light #menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 20px;
    z-index: 10;
}

body.light #custom-css-section {
    left: 20px;
    width: 250px;
    height: calc(100% - 40px);
}

body.light #menu {
    right: 20px;
}

body.light #controller-container {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    body.light #custom-css-section {
        width: 200px;
    }

    body.light #controller-container {
        margin-left: 0;
        margin-top: 20px;
    }
}

body.light #url-field {
    width: 93%;
    padding: 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    text-align: center;
}

body.light button {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    font-family: "Dolce", serif;
}

body.light button:hover {
    background-color: #ddd;
}

body.light button:active {
    background-color: #ccc;
}

body.light .custom {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

body.light .custom:hover {
    background-color: #e0e0e0;
}

body.light .custom:active {
    background-color: #d0d0d0;
}

body.light #menu button,
body.light #custom-css-section button {
    width: 100%;
}

body.light @keyframes slideDown {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

body.light @keyframes slideUp {
    0% {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
}

body.light .dropdown-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
}

body.light .dropdown-content.open {
    display: flex;
    animation: slideDown 0.5s forwards ease-in-out;
}

body.light .dropdown-content.close {
    animation: slideUp 0.5s forwards ease-in-out;
}

body.light #controller-select {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light #controller-select:focus {
    border-color: #bbb;
    background-color: #ddd;
}

body.light #controller-select option {
    background-color: #fff;
    color: #333;
}

body.light #controller-select option:hover {
    background-color: #f5f5f5;
}

body.light #size-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin: 0;
    cursor: pointer;
}

body.light #size-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.light #size-range::-webkit-slider-thumb:hover {
    background: #ccc;
}

body.light #size-range::-webkit-slider-thumb:active {
    background: #bbb;
}

body.light #size-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.light #size-range::-moz-range-thumb:hover {
    background: #ccc;
}

body.light #size-range::-moz-range-thumb:active {
    background: #bbb;
}

body.light .credits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light .credit-item {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

body.light .credit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.light .credit-item:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

body.light .credit-item::after {
    content: attr(data-info);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

body.light .credit-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

@media (max-width: 600px) {
    body.light .credits-container {
        gap: 10px;
        padding: 8px;
    }

    body.light .credit-item {
        width: 40px;
        height: 40px;
    }

    body.light .credit-item::after {
        font-size: 10px;
        bottom: -25px;
    }

    body.light .credit-item:hover::after {
        bottom: -35px;
    }
}

body.light #color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

body.light #color-picker {
    width: 100%;
    height: 40px;
    border: none;
    padding: 0;
    cursor: pointer;
}

body.light #color-hex,
body.light #color-rgba {
    width: 100%;
    padding: 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    text-align: center;
    font-family: "Dolce", serif;
    font-weight: 500;
}

body.light #color-hex,
body.light #color-rgba {
    display: none;
}

body.light ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.light ::-webkit-scrollbar-track {
    background: #f5f5f5;
}

body.light ::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
}

body.light ::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

body.light ::-webkit-scrollbar-thumb:active {
    background: #aaa;
}

body.light * {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

body.light *::-webkit-scrollbar-corner {
    background-color: #f5f5f5;
}

body.light label {
    text-align: center;
    text-transform: uppercase;
}

body.light #feature-request-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

body.light #feature-request-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    width: 90%;
    max-width: 600px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.light #feature-request-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

body.light #feature-request-close:hover {
    color: #ff5c5c;
}

body.light #feature-request-container label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

body.light #feature-request-container input,
body.light #feature-request-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

body.light #feature-request-container input:focus,
body.light #feature-request-container textarea:focus {
    border-color: #bbb;
    outline: none;
}

body.light #feature-request-container button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

body.light #feature-request-container button:hover {
    background-color: #e0e0e0;
}

body.light #feature-request-container button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    body.light #feature-request-container {
        padding: 20px;
    }

    body.light #feature-request-close {
        font-size: 24px;
    }
}

body.light #tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

body.light .tag {
    background-color: #ddd;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

body.light .tag.selected {
    background-color: #ccc;
    color: #333;
}

body.light .tag:hover {
    background-color: #ccc;
}

body.light .tag:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.social-buttons {
    position: fixed;
    bottom: 20px;
    /* Adjust as needed */
    right: 20px;
    /* Adjust as needed */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between buttons */
    z-index: 1000;
    /* Ensure it stays on top of other elements */
}

.social-buttons a {
    display: block;
    font-size: 30px;
    /* Adjust size as needed */
    color: #ffffff;
    /* Icon color */
    transition: transform 0.3s, color 0.3s;
    /* Smooth hover effect */
}

.paypal-button:hover {
    color: #0070ba;
    /* PayPal blue on hover */
}

.discord-button:hover {
    color: #7289da;
    /* Discord blue on hover */
}

.social-buttons a:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
}

body.light .paypal-button {
    color: #0070ba;
}

body.light .discord-button {
    color: #7289da;
}

/* settings */

/* Modern Glass-Like Settings Icon */
.modern-settings-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Glass effect */
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.modern-settings-icon i {
    font-size: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Hover effects */
.modern-settings-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.modern-settings-icon:hover i {
    transform: rotate(180deg);
}

/* Icon on smaller devices */
@media (max-width: 768px) {
    .modern-settings-icon {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .modern-settings-icon i {
        font-size: 20px;
    }
}

body.light .modern-settings-icon i {
    color: #1e1e1e;
}

/* settings popup */
/* Dark Theme Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background-color: #2c2c2c;
    display: flex;
    width: 600px;
    max-width: 90%;
    height: 400px;
    animation: slideIn 0.4s ease;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

/* Dark Theme Sidebar */
.modal-sidebar {
    width: 150px;
    background-color: #3b3b3b;
    padding: 15px;
    border-right: 1px solid #444;
}

.modal-sidebar ul {
    font-family: "Dolce", serif;
    list-style-type: none;
    padding: 0;
}

.modal-sidebar ul li {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    color: #ddd;
}

.modal-sidebar ul li:hover,
.modal-sidebar ul li.active {
    background-color: #1e90ff;
    color: #fff;
}

/* Dark Theme Main Content */
.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #ddd;
}

.modal-body h2 {
    margin-top: 0;
    font-family: "Dolce", serif;
    color: #fff;
}

.modal-body p {
    font-family: "Monsterrat", sans-serif;

    color: #a8a8a8;

}

/* Responsive for Dark Theme */
@media (max-width: 600px) {
    .modal-content {
        flex-direction: column;
        height: auto;
    }

    .modal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #444;
    }

    .modal-body {
        width: 100%;
    }
}

/* Light Theme Modal styles */
/* Modal styles */
body.light .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

body.light .modal-content {
    background-color: #fff;
    display: flex;
    /* Sidebar and content side-by-side */
    width: 600px;
    max-width: 90%;
    height: 400px;
    animation: slideIn 0.4s ease;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #1d1c1c;
    cursor: pointer;
}

/* Sidebar */
body.light .modal-sidebar {
    width: 150px;
    background-color: #f7f7f7;
    padding: 15px;
    border-right: 1px solid #ddd;
}

body.light .modal-sidebar ul {
    font-family: "Dolce", serif;
    list-style-type: none;
    padding: 0;
}

body.light .modal-sidebar ul li {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;

}

body.light .modal-sidebar ul li:hover,
body.light .modal-sidebar ul li.active {
    background-color: #007bff;
    color: #fff;
}

/* Main Content */
body.light .modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

body.light .modal-body h2 {
    margin-top: 0;
    font-family: "Dolce", serif;
    color: #007bff;

}

body.light .modal-body p {
    font-family: "Monsterrat", sans-serif;

    color: #a8a8a8;

}

/* Responsive */
@media (max-width: 600px) {
    body.light .modal-content {
        flex-direction: column;
        height: auto;
    }

    body.light .modal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    body.light .modal-body {
        width: 100%;
    }
}

.modal-body .section#home .discord-link {
    text-decoration: none;
    color: #5865F2;
    transition: text-transform 4s ease-in-out;
    /* Transition for smooth effect */
}

.modal-body .section#home .discord-link:hover {
    text-transform: uppercase;
    /* Change text to uppercase on hover */
}

/* From Uiverse.io by KhaledMatalkah */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    transform-style: preserve-3d;
}

.custom-checkbox .checkmark::before {
    content: "\2713";
    font-size: 16px;
    color: transparent;
    transition: color 0.3s, transform 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #333;
    border-color: #333;
    transform: scale(1.1) rotateZ(360deg) rotateY(360deg);
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::before {
    color: #fff;
}

.custom-checkbox:hover {
    color: #666;
}

.custom-checkbox:hover .checkmark {
    border-color: #666;
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.custom-checkbox input[type="checkbox"]:focus+.checkmark {
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.2);
    outline: none;
}

.custom-checkbox .checkmark,
.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    transition: background-color 1.3s, border-color 1.3s, color 1.3s, transform 0.3s;
}

/* theme dropdown */

#theme-select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#theme-select:focus {
    border-color: #282a36;
    background-color: #444;
}

/* Custom styles for <option> elements */
#theme-select option {
    background-color: #1e1e1e;
    color: white;
}

#theme-select option:hover {
    background-color: #282a36;
}

/* Light theme styles for the theme dropdown */
body.light #theme-select {
    background-color: #ffffff;
    /* Light background */
    color: #333;
    /* Dark text color */
    border: 1px solid #ccc;
    /* Light border */
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light #theme-select:focus {
    border-color: #007BFF;
    /* Focus border color */
    background-color: #f0f8ff;
    /* Slightly darker background on focus */
}

/* Custom styles for <option> elements */
body.light #theme-select option {
    background-color: #ffffff;
    /* Light background for options */
    color: #333;
    /* Dark text color for options */
}

body.light #theme-select option:hover {
    background-color: #f1f1f1;
    /* Light gray background on hover */
}

/* notiSound */
#notification-sound {


    background-color: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: "kameron", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#notification-sound:focus {
    border-color: #282a36;
    background-color: #444;
}

/* Custom styles for <option> elements */
#notification-sound option {
    font-family: "Dolce", serif;
    background-color: #1e1e1e;
    color: white;
}

#notification-sound option:hover {
    background-color: #282a36;
}

/* Light theme styles for the theme dropdown */
body.light #notification-sound {
    background-color: #ffffff;
    /* Light background */
    color: #333;
    /* Dark text color */
    border: 1px solid #ccc;
    /* Light border */
    border-radius: 5px;
    padding: 10px;
    font-family: "kameron", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light #notification-sound:focus {
    border-color: #007BFF;
    /* Focus border color */
    background-color: #f0f8ff;
    /* Slightly darker background on focus */
}

/* Custom styles for <option> elements */
body.light #notification-sound option {
    background-color: #ffffff;
    /* Light background for options */
    color: #333;
    /* Dark text color for options */
}

body.light #notification-sound option:hover {
    background-color: #f1f1f1;
    /* Light gray background on hover */
}

/* css editor dimentions */

/* Dimension inputs styling */
.dimension-inputs {
    display: flex;
    gap: 10px;
    /* Spacing between inputs */
}

/* Styling for input boxes */
#custom-width,
#custom-height {
    width: 100px;
    /* Width of each input */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Reset button styling */
#reset-dimensions {
    padding: 8px 12px;
    background-color: #007BFF;
    /* Bootstrap primary color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#reset-dimensions:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}


/* Controller section settings */

/* Controller section settings for dark theme */

#gamepad {
    padding: 20px;
    /* Add padding to the section */
    background-color: #2a2a2a;
    /* Dark background for contrast */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for depth */
    color: #ffffff;
    /* White text color for readability */
}

.button-controls {
    display: flex;
    /* Use flexbox for layout */
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    margin-top: 10px;
    /* Spacing above the button controls */
}

.button-controls label {
    display: flex;
    /* Flexbox for label and input alignment */
    align-items: center;
    /* Center align items */
    margin: 5px;
    /* Spacing between labels */
    padding: 8px 12px;
    /* Padding for click area */
    border: 1px solid #444;
    /* Darker border for labels */
    border-radius: 4px;
    /* Rounded corners */
    background-color: #333;
    /* Dark background for labels */
    transition: background-color 0.2s;
    /* Smooth background transition */
    cursor: pointer;
    /* Pointer cursor for labels */
    color: #ffffff;
    /* White text color */
}

.button-controls input[type="checkbox"] {
    margin-right: 8px;
    /* Spacing between checkbox and label text */
    accent-color: #ffffff;
    /* Checkbox color */
}

.button-controls label:hover {
    background-color: #444;
    /* Change background on hover */
}

.button-controls input[type="checkbox"]:checked+span {
    font-weight: bold;
    /* Make text bold when checked */
}



/* light */

body.light #gamepad {
    padding: 20px;
    /* Add padding to the section */
    background-color: #f9f9f9;
    /* Light background for contrast */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

body.light .button-controls {
    display: flex;
    /* Use flexbox for layout */
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    margin-top: 10px;
    /* Spacing above the button controls */
}

body.light .button-controls label {
    display: flex;
    /* Flexbox for label and input alignment */
    align-items: center;
    /* Center align items */
    margin: 5px;
    /* Spacing between labels */
    padding: 8px 12px;
    /* Padding for click area */
    border: 1px solid #ccc;
    /* Border for labels */
    border-radius: 4px;
    /* Rounded corners */
    background-color: #fff;
    /* White background */
    transition: background-color 0.2s;
    /* Smooth background transition */
    cursor: pointer;
    /* Pointer cursor for labels */
    color: #000;
}

body.light .button-controls input[type="checkbox"] {
    margin-right: 8px;
    /* Spacing between checkbox and label text */
}

body.light .button-controls label:hover {
    background-color: #e7e7e7;
    /* Change background on hover */
}

body.light .button-controls input[type="checkbox"]:checked+span {
    font-weight: bold;
    color: black;
    /* Make text bold when checked */
}

/* Custom styles for the <select> dropdown */
#player-select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: "kameron", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#player-select:focus {
    border-color: #282a36;
    background-color: #444;
}

/* Custom styles for <option> elements */
#player-select option {
    background-color: #1e1e1e;
    color: white;
}

#player-select option:hover {
    background-color: #282a36;
}


/* Custom styles for the <select> dropdown */
#player-select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#player-select:focus {
    border-color: #282a36;
    background-color: #444;
}

/* Custom styles for <option> elements */
#player-select option {
    background-color: #1e1e1e;
    color: white;
}

#player-select option:hover {
    background-color: #282a36;
}

body.light #player-select {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-family: "Dolce", serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light #player-select:focus {
    border-color: #bbb;
    background-color: #ddd;
}

body.light #player-select option {
    background-color: #fff;
    color: #333;
}

body.light #player-select option:hover {
    background-color: #f5f5f5;
}