@font-face {
    font-family: 'Inter';
    src: url(assets/fonts/Inter-VariableFont_opsz,wght.ttf) format('truetype');
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url(assets/fonts/JetBrainsMono-VariableFont_wght.ttf) format('truetype');
}
@font-face {
    font-family: "GWTwo";
    src: url(assets/fonts/GWTwoFont.ttf) format('truetype');
}


:root{
    --accent-color: #af2421;
    --text-color: #dddddd;
    --bg-color: #1a1a1d;
    --alt-bg-color: #313134;
    --alt2-bg-color: #232323;
    --als-linear-bg: linear-gradient(0deg, rgb(28, 28, 32) 0%, rgb(39, 39, 45) 100%);
    --og-gw-butten: linear-gradient(180deg,#b40000,#3e1209);
}


html{
    scrollbar-color: #333333 #222222;
    font-family: "Inter", sans-serif;
    color: #bbb;
}

body{
    background-color: var(--bg-color);
    margin: 55px 0 0 0;
}

header{
    position: fixed;
    width: 100%;
    height: 55px;
    top: 0;
    background-color: rgb(39, 39, 45);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    box-shadow: 4px 5px 10px 1px rgba(0,0,0,0.10);
    font-family: 'GWTwo', 'Inter', sans-serif;
}

.search-input {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--alt-bg-color);
    color: var(--text-color);
    font-size: 14px;
    width: 280px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-input:focus {
    background: var(--alt2-bg-color);
    box-shadow: 0 2px 12px rgba(175,36,33,0.3);
}

.search-input::placeholder {
    color: #888;
}

.api-key-button {
    position: absolute;
    right: 120px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: var(--alt-bg-color);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-key-button:hover {
    background: var(--alt2-bg-color);
    box-shadow: 0 2px 12px rgba(175,36,33,0.3);
}

/* 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);
}

.modal-content {
    background-color: var(--alt-bg-color);
    margin: 15% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--alt2-bg-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-family: 'GWTwo', 'Inter', sans-serif;
}

.close {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

#api-key-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--alt2-bg-color);
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
}

#api-key-input:focus {
    box-shadow: 0 0 8px rgba(175,36,33,0.3);
}

.api-key-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    background: var(--bg-color);
}

#api-key-status-text {
    font-size: 12px;
    color: #888;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--alt2-bg-color);
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.save-btn {
    background: var(--accent-color);
    color: white;
}

.save-btn:hover:not(:disabled) {
    background: #8f1f1c;
}

.save-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.clear-btn {
    background: #555;
    color: white;
}

.clear-btn:hover {
    background: #666;
}

.cancel-btn {
    background: var(--alt2-bg-color);
    color: var(--text-color);
}

.cancel-btn:hover {
    background: #333;
}

.hamburger{
    position: fixed;
    z-index: 3;
    right: 1rem;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    cursor: pointer;
}
.hamburger input,
.hamburger::before,
.hamburger::after{
    content: "";
    background-color: var(--text-color);
    width: 2rem;
    height: .3rem;
    appearance: none;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: none;
}

.hamburger:has(input:checked) + .sidebar{
    translate: 0;
}

.sidebar{
    position: fixed;
    right: 0;
    top: 54px;
    height: 100%;
    z-index: 1;
    background-color: rgb(39, 39, 45);
    transition: translate 200ms;
    translate: 100%;
    width: min(20em, 80%);
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 4px 4px 10px 1px rgba(0,0,0,0.5);
}

.toggle-controls {
    display: flex;
    gap: 8px;
    margin: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--alt-bg-color);
}

.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--alt-bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.toggle-btn:active {
    transform: translateY(0);
}

#browser-settings-alert{
    margin: 2em 1em;
    padding: .5em;
    border: 2px solid var(--accent-color);
    border-radius: 7px;
    color: var(--accent-color);

}

.category-list{
    font-family: 'Inter', sans-serif;
    color: #adabab;
}

.categories-header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;;
}

.categories-label{
    font-weight: bold;
    color: #696b6d;

    color: var(--text-color);
    font-size: 1.2rem;
    font-family: GWTwo, Inter, sans-serif;
}

.tgl-category-element{
    border-left: 3px solid;
    margin: 2em 1em;
    padding-left: .5em;
}

h1{
    font-family: "JetBrains Mono", monospace;
    font-size: 1.3rem;
    margin: 0;
}

h2{
    font-size: 1rem;
    color: #a7a5a5;
    margin: 0;
}
h3{
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #696868;
    margin: 0;
}
h4{
    font-family:"JetBrains Mono", monospace;
    color: var(--accent-color);
    font-size: 1rem;
    margin: 0;
}

.event-table{
    display: flex;
    gap: 1em;
    flex-direction: column;
    padding-top: 1.2rem;
}

.event-card-element{
    background: linear-gradient(0deg, rgb(28, 28, 32) 0%, rgb(39, 39, 45) 100%);
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 3.5em);
    max-width: 36em;
    margin: auto;
    border-radius: .5em;
    border: 3px solid ;
    border-top: 0;
    border-bottom: 0;
    padding: 0 1em;
    box-shadow: 4px 8px 14px 1px rgba(0,0,0,0.30);
}


.event-name-container{
    flex-grow: 1;
    display: flex;
    gap: 0.2rem;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 0.8em;
}

.name{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
}


.event-time-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.event-start-time{
    white-space: pre;
}

.links{
    display: flex;
    flex-direction: row;
    gap: .7rem;
    align-items: flex-start;
    user-select: none;
}

.links-tab{
    background-color: var(--alt-bg-color);
    border-bottom-right-radius: 7px ;
    border-bottom-left-radius: 7px;
    width: 2.5em;
    height: 2.7em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 1px 2px 18px 1px rgba(0,0,0,0.30);
    color: var(--accent-color);
    font-weight: bold;
}


.links-tab > * {
    opacity: 60%;
}

.links-tab:hover::after{
    content: attr(tootltip);
    color: #222222;
    position: absolute;
    background-color: #6f6c6c;
    transform: translateY(-40px);
    padding: 2px 5px;
    border-radius: 5px;
    box-shadow: 1px 2px 18px 1px rgba(0,0,0,0.30);
    z-index: 2;
}

.links-tab:hover::before{
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid #6f6c6c;
    transform: translateY(-24px);
    z-index: 3;
}

.hover:hover{
    height: 3em;
    background-color: var(--accent-color);
    box-shadow: 4px 8px 14px 1px rgba(0,0,0,0.30);
    color: var(--text-color);
}

.links-tab:hover > *{
    opacity: 100%;
}

.links-tab:active{
    height: 3.3em;
    background-color: #690c0b;
}

@media (max-width: 550px){
    .fastf-link{display: none;}
}
@media (max-width: 500px){
    .wiki-link{display: none;}
}

.tgl-element{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: .6em 0;
    cursor: pointer;
}

.tgl-label {
    margin-right: 2rem;
    cursor: pointer;
    flex-grow: 1;
}

.tgl-slider{
    display: none;
}

.done-checkbox{
    display: none;
}
.logo{
    margin: 0.5rem;
}

.SiteName{
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}


.about{
    padding-bottom: 100px;
    margin-top: 5rem;
    text-align: center;
}


.event-map{
    height: 2rem;
}

.remaining-time{
    color: var(--accent-color);
    height: 2rem;
}

/* unvisited link */
a:link {
    color: var(--text-color);
}

/* visited link */
a:visited {
    color: var(--text-color);
}

/* mouse over link */
a:hover {
    color: var(--accent-color);
}

/* selected link */
a:active {
    color: var(--text-color);
}

/* Wizard Vault styling */
.wizard-vault-event {
    box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700 !important;
    position: relative;
}

.wizard-vault-event::before {
    content: "⭐";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

@keyframes wizardVaultGlow {
    0%, 100% { box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px 5px rgba(255, 215, 0, 0.7); }
}

.wizard-vault-event {
    animation: wizardVaultGlow 3s ease-in-out infinite;
}