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

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Regular';
    src: url('/fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter-Regular', monospace;
    font-feature-settings: "kern";
    color: white;
    background-color: #030507;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    border-right-width: thin;
    border-right-style: solid;
    height: 100%;
    width: calc(16.875rem);
    display: flex;
    border-right-color: rgb(47, 48, 55);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0px;
    padding: 0px;
    background: linear-gradient(90deg, rgb(6, 8, 13) 0%, rgb(13, 18, 28) 100%);
}

.sidebar-content {
    width: 100%;
}

.sidebar .flex-space {
    flex-grow: 1;
}

#sidebarToggle {
    display: none;
}

.fade-text {
    font-weight: 500;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(81.02deg, rgb(250, 85, 96) -23.49%, rgb(177, 75, 244) 45.66%, rgb(77, 145, 255) 114.8%);
    -webkit-background-clip: text;
    background-clip: text;
    width: fit-content;
}

.logo-container {
    width: 100%;
    margin-left: 0px;
    align-self: center;

    display: flex;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo-image {
    width: auto;
    height: 41px;
    align-self: center;
    margin: 0 auto;
    padding-top: 15px;
}

.logo-text {
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-family: 'Inter';
    font-feature-settings: "kern";
}

.sidebar-button {
    background-color: transparent;
    color: #9094a6;
    fill: #494e5b;
    padding: 10px 20px;
    width: calc(100% - 40px);
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-feature-settings: "kern";
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sidebar-button span {
    vertical-align: middle;
}

.sidebar-button:hover {
    background-color: #1c212a;
    color: rgb(200, 200, 200);
    fill: rgb(200, 200, 200);
}

.sidebar-button.selected {
    background-color: #1c212a;
    color: white;
    fill: url(#leo-gradient) white;
}

.sidebar-subtitle {
    align-self: center;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 40px;
    color: rgb(167, 178, 193);
}

.main-content {
    margin-left: calc(16.875rem);
    padding: 20px;
    display: none;
}

.main-content.active {
    display: block;
}

.main-title {
    font-size: 32px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 20px;
    width: fit-content;
}

.flex-title {
    display: flex;
    align-items: center;
}

.dropdown-container {
  position: relative;
  width: 200px;
  margin-left: 20px;
}

.dropdown-button, .dropdown-option {
  width: 100%;
  padding: 12px 24px;
  border: none;
  background-color: #101622;
  color: white;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  position: relative;
}

.dropdown-button {
    border-radius: 10px;
}

.dropdown-button::after {
  content: '';
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
}

.dropdown-options {
  border-radius: 10px;
  flex-direction: column;
  position: absolute;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.16);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
}

.dropdown-option {
  background-color: #141414;
  transition: background-color 0.3s ease;
}

.dropdown-option:hover {
  background-color: #292929;
}

.dropdown-options.open {
  display: flex;
  transform: scaleY(1);
  opacity: 1;
}

@keyframes fadeInScale {
  from {
    transform: scaleY(0.5);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.log {
    background-color: #111111;
    padding: 20px;
    width: calc(100% - 40px); /* Subtract the total padding from the width */
    height: 75vh;
    overflow-y: scroll;
    white-space: pre;
    font-family: 'ComputerCraft', monospace;
    display: none;
}

.log.active {
    display: block;
}

.log span {
    color: inherit;
}

.channel-embed, .user-embed {
    background-color: #5865f2;
    font-family: 'Inter-Regular', monospace;
}

#overlay {
    position: absolute;
    display: none;
}

/* Style the scrollbar track (the part the scrollbar "slides" on) */
.custom-scroll::-webkit-scrollbar-track {
    background: transparent; /* Background of the scrollbar track */
    border-radius: 10px;
}

/* Style the scrollbar thumb (the draggable part) */
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(100,100,100,100); /* Color of the scrollbar thumb */
    border-radius: 10px;
    opacity: 50%;
}

/* Handle the hover effect for the scrollbar thumb */
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color when hovering over the scrollbar thumb */
}

/* Style the scrollbar itself (width, color, etc.) */
.custom-scroll::-webkit-scrollbar {
    width: 5px; /* Width of the scrollbar */
    height: 5px;
    background-color: transparent; /* Color of the scrollbar background */
}

.custom-scroll::-webkit-scrollbar-corner {
    background-color: transparent;
}

.buttons-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.start-timestamp {
    text-align: center;
    align-content: center;
    margin-right: 20px;
    font-family: 'Inter', Arial, sans-serif;
    color: rgb(144, 148, 166);
}

.control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    white-space: nowrap;
    vertical-align: middle;
    /* outline-offset: 1000px; */
    line-height: 1.2;
    font-weight: 400;
    box-sizing: border-box;
    box-shadow: rgba(143, 0, 255, 0.6) 0px 0px 5px;
    position: relative;
    outline: transparent solid 2px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
    background:
    /* Background gradient */
    linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) padding-box,
    /* Semi-transparent black overlay to darken the background */
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)) padding-box,
    /* Border gradient */
    linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box;

    background-blend-mode: multiply, normal;
    background-repeat: no-repeat;
    padding: 5px 20px;
    margin-right: 5px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    transition: all 0.3s ease;
}

.control-button:hover {
    background: linear-gradient(rgb(51, 53, 61), rgb(51, 53, 61)) no-repeat padding-box, 
    linear-gradient(81.02deg, rgb(255, 95, 106) -23.47%, rgb(200, 85, 254) 45.52%, rgb(100, 165, 265) 114.8%) border-box;
    color: rgba(255, 255, 255, 1);
    box-shadow: rgba(143, 0, 255, 0.6) 0px 0px 15px;
}


.control-button:disabled {
    background: linear-gradient(rgb(31, 33, 41), rgb(31, 33, 41)) no-repeat padding-box, 
    linear-gradient(81.02deg, rgb(200, 85, 96) -23.47%, rgb(127, 75, 244) 45.52%, rgb(27, 125, 255) 114.8%) border-box;
    color: rgba(200, 200, 200, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

.kill-button {
    background: rgb(31, 33, 41);
    border: 1px solid red;
}

.svg-icon {
    vertical-align: middle;
    /*fill: currentColor;*/
    width: 1em;
    height: 1em;
    margin-right: 10px;
    display: inline-block;
    line-height: 1em;
    flex-shrink: 0;
    font-size: calc(1.375rem);
}

.circle {
    width: 40px; /* Set the width (and height) to the size you want your circle to be */
    height: 40px;
    background: linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box border-box;
    border-radius: 50%; /* This makes the div a circle */
    color: white; /* Set the text color */
    display: inline-flex;
    justify-content: center; /* Horizontally center the content */
    vertical-align: middle;
    align-items: center; /* Vertically center the content */
    user-select: none; /* Prevents text selection */
    font-size: 18px; /* Adjust the font size as needed */
    margin-right: 10px;
}

#myInput {
    width: calc(100% - 40px);
    padding: 5px 20px;
    background-color: #111111;
    margin-top: 5px;
    border: none;
    font-family: 'ComputerCraft', monospace;
    color: #d8d8d8;
    outline: none;
    font-size: 15px;
}

#myInput::placeholder {
    color: #3e3e3e;
}

.mod-card {
    /*background: linear-gradient(black, black) no-repeat padding-box, linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box;
    border: 2px solid transparent;*/
    background-color: #131a28;
    color: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mod-title {
    font-size: 1.2em;
    font-weight: bold;
}

.mod-toggle {
    background: linear-gradient(#10151f, #10151f) no-repeat padding-box, linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box;
    border: 1.5px solid transparent;
    color: white;
    border-radius: 10px;
    padding: 5px 15px;
    cursor: pointer;
    width: 90px;
}

.mod-toggle.enabled {
    background: linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box border-box;
}

.mod-content {
    font-size: 0.9em;
    margin-bottom: 15px;
    flex-grow: 1;
    color: rgb(197, 201, 217);
}

.mod-footer {
    text-align: right;
}

.mod-info-btn {
    background: linear-gradient(#10151f, #10151f) no-repeat padding-box, linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%) border-box;
    border: 1.5px solid transparent;
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block; /* Align to the right */
}

#mod-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.module-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Apply a blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */

    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.module-popup.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
}

.module-popup-content {
    background-color: #171717;
    /*padding: 0px 40px 10px 40px;*/
    padding: 0;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    min-height: 80%;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    transform: translateY(20px) scale(0.9);
    transition: transform 0.3s, opacity 0.3s;
}

.module-popup-content.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.module-popup-header, .module-popup-footer {
    position: relative;
    padding: 10px 20px; /* Add padding inside header and footer */
    background: #111111; /* Light background for visibility, change as needed */
    width: 100%; /* Ensure it fills the container */
    min-height: 35px;
}

.module-popup-body {
    overflow: auto;
    padding: 0px 40px;
    flex-grow: 1;
    display: none;
}

.module-popup-body.active {
    display: block;
}

.padded-list {
    margin-top: 30px;
    width: 100%;
    text-align: left;
}

.padded-list th {
    padding: 10px;
}

.padded-list th:first-of-type {
    width: 50%;
}

.padded-list td {
    padding: 20px 10px;
    background-color: #111111;
    border-bottom: 1px solid #171717;
}

.close-btn {
    position: absolute;  /* Keep the absolute positioning */
    top: 50%;            /* Center vertically */
    right: 60px;         /* Space from the right edge */
    transform: translateY(-50%); /* Adjust vertical position to truly center */
    font-size: 28px;
    cursor: pointer;
}

.module-tabs {
    position: absolute;
    height: auto;
    bottom: 0px;
    width: auto;
}

.module-tab {
    align-content: center;
    padding: 10px 0px;
    margin: 0px 10px;
    width: auto;
    color: rgb(151, 151, 151);
    border-bottom: solid 3px transparent;
    display: inline-block;
    height: 30px;
}

.module-tab:hover {
    color: white;
}

.module-tab.active {
    color: white;
    border-image-source: linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%);
    border-image-slice: 1;
}

.doc-content {
    max-width: 1000px;
    padding-left: 40px;
    padding-right: 40px;
}

.changelog-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}

.changelog-date {
    color: white;
    margin: 0 20px;
    white-space: nowrap;
    font-family: 'Inter-Regular', monospace;
    font-feature-settings: "kern";
    font-weight: 500;
    font-size: 16px;
}

.changelog-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.16);
}

.changelog-image-small {
    float: right;
    margin: 10px 0px 10px 10px;
    max-width: 40%;
    border-radius: 5px;
    border: solid 2px rgba(255, 255, 255, 0.16);
}

.changelog-image-big {
    width: 90%;
    margin-left: 5%;
    border-radius: 10px;
    border: solid 2px rgba(255, 255, 255, 0.16);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.changelog-title {
    /*margin-left: 20px;
    margin-right: 20px;*/
    font-weight: unset;
    font-family: 'Inter', sans-serif;
    font-feature-settings: "kern";
}

h1.changelog-title {
    text-align: center;
    font-size: 24px;
    color: white;
}

h2.changelog-title {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: -10px;
}

.changelog-subtitle {
    margin-bottom: 16px;
    font-size: 18px;
    color: rgb(166, 166, 166);
    font-size: 18px;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
    font-weight: unset;
    font-family: 'Inter', sans-serif;
    font-feature-settings: "kern";
}

.changelog-content {
    max-width: 896px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.changelog-text {
    color: rgb(166, 166, 166);
    font-size: 16px;
    text-align: left;
}

.changelog-text li {
    line-height: 24px;
}

.changelog-channel {
    background-color: #3a406e;
    color: white;
    padding: 2px 5px;
    text-decoration: none;
    border-radius: 3px;
}

.changelog-channel:hover {
    background-color: #5865f2;
}

@media screen and (max-width: 600px) {
    .changelog-content {
        width: 95%;
        padding: 20px 0px;
    }

    .changelog-image-small {
        max-width: 100%
    }

    .log {
        font-size: 10px;
        height: 60vh;
    }

    .flex-title {
        display: block;
    }

    .dropdown-container {
        margin-left: 0px;
    }

    .sidebar {
        width: 100vw;
        background-color: black;
        height: 100%;
        left: -100vw;
        z-index: 1000;
        transition: all 0.5s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .mod-card {
        max-width: 100%;
    }

    .module-popup-content {
        width: 95%;
        max-height: 90%;
    }

    #sidebarToggle {
        appearance: none;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        white-space: nowrap;
        vertical-align: middle;
        outline: transparent solid 2px;
        outline-offset: 2px;
        line-height: 1.2;
        display: flex; /* Show the button on mobile */
        position: fixed; /* Fixed position */
        top: 10px; /* Adjust as needed */
        right: 10px; /* Adjust as needed */
        z-index: 1001; /* Above the sidebar and overlay */
        background-color: rgb(11, 15, 23); /* Your preferred color */
        color: white;
        cursor: pointer;
        border: 1px solid rgb(36, 44, 62);
        border-radius: calc(0.375rem);
        height: calc(2.25rem);
        width: calc(2.25rem);
        transition: all 0.2s ease;
    }

    #sidebarToggle:hover {
        background: rgb(19, 25, 38);
        border-color: rgb(36, 44, 62);
    }

    #sidebarToggle:active {
        background: rgb(36, 44, 62);
border-color: rgb(36, 44, 62);
    }

    .main-content {
        margin-left: 0;
    }

    .overlay {
        display: none; /* Initially hidden */
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
        z-index: 999; /* Ensure it's above other content */
    }

    .overlay.active {
        display: block;
    }

}