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

html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.9;
}

.bg.jumpscare {
    position: fixed;
    left: 0;
    width: 50%
}

.bg.jumpscare.face_1 {
    filter: saturate(0.2);
}

.bg.dancer {
    position: fixed;
    top: 0;
    left: auto;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Full-width horizontal bar */
.rain-bar {
    position: fixed;  /* stays on screen */
    top: 15%;         /* vertical position, adjust as needed */
    left: 0;
    width: 100%;      /* stretches across screen */
    height: 130px;     /* height of the bar */
    overflow: hidden; /* clips overflowing rain */
    pointer-events: none; /* doesn’t block clicks */
    z-index: 6;       /* above overlay but below sparkle */
}

/* Rain inside the bar */
.rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 2px 10px;
    animation: rain-fall 1.1s linear infinite;
    opacity: 0.3;
    filter: saturate(0) blur(2px);
}

.rain::before,
.rain::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(blue 1px, transparent 1px);
    background-size: 1px 15px;
    animation: rain-fall 0.8s linear infinite;
    opacity: 0.3;
}

.rain::after {
    animation-duration: 1.2s;
    opacity: 0.2;
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}


.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(6px) saturate(0.7);
    z-index: 20; /* above background but below content */
}


.bg.sparkle-gif {
    width: 320px;
    height: 250px;
    top: -60px;
    left: 560px;
    filter: sepia(1) saturate(3) hue-rotate(15deg);
    opacity: 0.4;
}

.layout {
    display: grid;
    grid-template-columns: auto 15%; /* main content + right sidebar */
    min-height: 100vh;
    position: relative;
    z-index: 9;
}

/* Main content */
.main-area {
    padding: 2rem;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Right sidebar */
.side-right {
    position: sticky;
    top: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    font-family: 'Kalmari', sans-serif;
    font-size: larger;
}

.side-right .content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #ffd700;
}

.reviews-table-wrapper {
    width: min(420px, 70vw);
    max-height: 50vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.55);
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.reviews-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.reviews-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.review-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.review-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.review-cover-cell {
    width: 48px;
}

.review-cover-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: block;
}

.review-cover-placeholder {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
}

.review-title-cell {
    font-weight: bold;
    color: cyan;
    font-size: 0.9rem;
}

.review-type-cell {
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.75);
}

.review-date-cell {
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.reviews-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}
