@font-face {
    font-family: 'Constantine';
    src: url('/static/Constantine.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Constantine', sans-serif;
}
.container{
    background-color: rgba(255, 255, 255, 0.9);
}
.glitch-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Constantine', monospace;
    cursor: pointer;
}
.glitch-slide {
    display: none;
    text-align: center;
    position: relative;
}
.glitch-slide.active {
    display: block;
}
.symbol {
    font-size: 8rem;
    color: white;
    margin: 0 25px;
    display: inline-block;
    font-weight: bold;
    text-shadow: 0 0 20px currentColor;
    animation: symbolGlitch 0.1s infinite;
}
.symbol.red {
    color: #ff0000;
    text-shadow: 0 0 25px #ff0000, 0 0 40px #ff0000;
}
@keyframes symbolGlitch {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-8px, 4px) scale(1.1);
        opacity: 0.8;
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(6px, -6px) scale(0.9);
        opacity: 0.9;
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(-4px, 8px) scale(1.05);
        opacity: 0.7;
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(8px, -4px) scale(0.95);
        opacity: 0.85;
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(-6px, 6px) scale(1.15);
        opacity: 0.6;
        filter: hue-rotate(45deg);
    }
    60% {
        transform: translate(4px, -8px) scale(0.85);
        opacity: 0.95;
        filter: hue-rotate(135deg);
    }
    70% {
        transform: translate(-8px, -4px) scale(1.2);
        opacity: 0.5;
        filter: hue-rotate(225deg);
    }
    80% {
        transform: translate(6px, 6px) scale(0.8);
        opacity: 1;
        filter: hue-rotate(315deg);
    }
    90% {
        transform: translate(-4px, -6px) scale(1.1);
        opacity: 0.75;
        filter: hue-rotate(0deg);
    }
}
@keyframes slideGlitch {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    20% {
        transform: translateX(-15px) translateY(10px);
        opacity: 0.8;
    }
    40% {
        transform: translateX(12px) translateY(-8px);
        opacity: 0.9;
    }
    60% {
        transform: translateX(-10px) translateY(-12px);
        opacity: 0.7;
    }
    80% {
        transform: translateX(15px) translateY(8px);
        opacity: 0.85;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}
.glitch-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: scanMove 0.3s linear infinite;
    box-shadow: 0 0 10px #ff0000;
}
@keyframes scanMove {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}
.glitch-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: noiseStatic 0.1s infinite;
}
@keyframes noiseStatic {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}
@media (max-width: 768px) {
    .symbol {
        font-size: 4rem;
        margin: 0 15px;
    }
}
@media (max-width: 480px) {
    .symbol {
        font-size: 3rem;
        margin: 0 10px;
    }
}
.lean{
    text-align: justify;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}
.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
}
.modal-close:hover {
    color: #ccc;
}
.carousel {
    position: relative;
    max-width: 100%;
    height: 500px;
    margin: 20px auto;
    overflow: hidden;
}
.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
}
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    pointer-events: all;
}
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.carousel-indicators {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.indicator.active {
    background: white;
}
.grid{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}
.grid-cell{
    margin: 10px;
    width: calc(30vw - 40px);
    height: calc(30vw - 40px);
    border: 1px solid black;
    padding: 1em;
}
.title-link{
    font-size: 1.5em;
    font-weight: bold;
}
.navbar{
    text-transform: uppercase;
}
.navbar-brand{
    font-size: x-large;
    text-decoration: unset;
    color: unset;
}
.nav-link {
    position: relative;
    padding: 8px 16px;
    text-decoration: none;
    color: black;
}
.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}
.nav-link::before {
    top: 0;
    left: 0;
    border-top: 2px solid black;
    border-left: 2px solid black;
}
.nav-link::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid black;
    border-right: 2px solid black;
}
.nav-link:hover::before,
.nav-link:hover::after {
    width: 12px;
    height: 12px;
    opacity: 1;
}
.text-center{
    text-align: center;
}
.text-left{
    text-align: left;
}
.text-right{
    text-align: right;
}
.link{
    color: black;
}
.border{
    border: 2px solid black;
}
hr{
    border: 1px solid black;
}

.m-1{
    margin: 1em;
}
.m-2{
    margin: 2em;
}
.m-3{
    margin: 3em;
}
.mb-1{
    margin-bottom: 1em;
}
.mb-2{
    margin-bottom: 2em;
}
.mb-3{
    margin-bottom: 3em;
}
.mt-1{
    margin-top: 1em;
}
.mt-2{
    margin-top: 2em;
}
.mt-3{
    margin-top: 3em;
}
.mx-1{
    margin-left: 1em;
    margin-right: 1em;
}
.mx-2{
    margin-left: 2em;
    margin-right: 2em;
}
.mx-3{
    margin-left: 2em;
    margin-right: 2em;
}
.p-1{
    padding: 1em;
}
.p-2{
    padding: 2em;
}
.p-3{
    padding: 3em;
}
@media (max-width: 850px) {
    .navbar{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar-brand{
        margin-bottom: 1em;
    }
    .grid-cell{
        width: 100%;
        height: unset;
    }
}