/* styles.css */
:root {
    /* Основные цвета темы */
    --primary-color: #e6e6fa; /* Лаванда */
    --secondary-color: #c5d0e6; /* Барвинок */
    --secondary-color-opacity: #c5d0e688;
    --tertiary-color: #f8f4ff; /* Магнолия */
    --tertiary-color-opacity: #f8f4ffd0;
    --quaternary-color: #f7f21a; /* Цвет детской неожиданности */
    --text-color: #1a162a; /* Тёмный пурпурно-синий */
    --text-color-opacity: #1a162a99;
    --text-color-hover: #413d51; /* Серовато-пурпурно-синий */
    --text-color-light: #837da2; /* Светлый пурпурно-синий */
    /* */
    --shift-duration: 0.5s;
    --shift-distance: 3px;
    --content-width: 67vw;
    --content-padding-hor: 3vw;
    --content-padding-ver: 5vh;
    --content-margin-ver: 1vh;
    --default-text-size: 1.5rem;
    --modal-anim-duration: 0.25s;
    --follower-state: visible;
}

* {
    font-family: 'Glametrix', sans-serif;
    font-size: var(--default-text-size);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    min-width: 40vh;
    padding: 8px;
    padding-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
    color: var(--text-color);
    z-index: -2;
    animation: fadeIn 2s forwards;
    opacity: 0;
}

.cursor-follower {
    /* width: 20px;
    height: 100px; */
    font-weight: bold;
    /* background: linear-gradient(
        to bottom, 
        var(--primary-color), 
        var(--quaternary-color)
    ); */
    /* border-radius: 10px; */
    color: var(--primary-color);
    position: fixed;
    top: 40vh;
    right: 8vw;
    text-align: start;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
    z-index: -1;
    user-select: none;
    visibility: var(--follower-state);
}

.bigbrain {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    /* opacity: 0; */
    width: var(--content-width);
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
}

.contenter {
    display: flex;
    flex-direction: column;
    /* opacity: 0; */
    text-align: justify;
    align-self: flex-start;
    width: var(--content-width);
}

.contenter iframe, .bigbrain iframe, .piss iframe {
    width: 100%;
    height: 60vh;
    border-radius: 40px;
    border: 0px none;
    margin-top: 1vh;
    margin-bottom: 1vh;
    background-color: black;

}

.bigheader {
    font-size: calc(2.75 * var(--default-text-size));
    color: var(--text-color);
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
    text-align: center;
    animation: pulse 2s infinite;
}

.medheader {
    font-size: calc(2 * var(--default-text-size));
    color: var(--text-color);
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
    text-align: center;
    animation: pulse 4s infinite;
}

.bigheader img, .medheader img, .buttcunt button img {
    width: 100%;
    height: 100%;
}

.buttcunt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: calc( 0.5 * var(--content-width));
    margin: auto;
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
}

.buttcunt button {
    width: 100%;
}

.watermark {
    display: flex;
    font-size: calc(1.5 * var(--default-text-size));
    color: var(--text-color-hover);
    text-align: center;
    opacity: 0.8;
}

.piss {
    font-size: var(--default-text-size);
    color: var(--text-color);
    text-align: justify;
    line-height: var(--default-text-size);
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
    padding-left: var(--content-padding-hor);
    padding-right: var(--content-padding-hor);
    padding-top: var(--content-padding-ver);
    padding-bottom: var(--content-padding-ver);
    background: var(--tertiary-color-opacity);
    border: 0px solid var(--text-color);
    border-radius: 80px;
    transition: all var(--shift-duration) ease;
    /* backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); для Safari */
}

.piss:hover {
    background: var(--tertiary-color);
}

button {
    font-size: var(--default-text-size);
    font-weight: bold;
    color: var(--text-color);
    transition: all var(--shift-duration) ease;
    padding: 1vh;
    margin-bottom: var(--content-margin-ver);
    border: 0px solid var(--text-color);
    border-radius: 30px;
    background-color: var(--tertiary-color);
}

button:hover {
    color: var(--text-color-hover);
    background-color: var(--quaternary-color);
    transform: scale(1.05) rotate(1deg);
}

.ghbutton {
    color: #F0F6FC;
    background-color: #010409;
}

.ghbutton:hover { 
    color: #F78166;
    background-color: #0D1117;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.gallery-item {
    width: 48%;
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
    margin-inline: 0px;
    overflow: hidden;
    border-radius: 80px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform var(--shift-duration);
}

.gallery-item:hover img {
    transform: scale(1.10) rotate(3deg);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--tertiary-color-opacity);
    animation: fadeIn var(--modal-anim-duration) forwards;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* для Safari */
}

.modal.animate-close {
    animation: fadeOut var(--modal-anim-duration) forwards;
}

.modal-content {
    background-color: var(--secondary-color-opacity);
    /* background-color: transparent; */
    margin: 10vh auto;
    border: 0px none;
    border-radius: 80px;
    width: var(--content-width);
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    margin: auto;
}

.listing {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--shift-duration) ease;
    margin-top: var(--content-margin-ver);
    margin-bottom: var(--content-margin-ver);
    padding-left: var(--content-padding-hor);
    padding-right: var(--content-padding-hor);
    padding-top: var(--content-padding-ver);
    padding-bottom: var(--content-padding-ver);
    background: var(--tertiary-color-opacity);
    border: 0px solid var(--text-color);
    border-radius: 80px;
    width: 100%;
}

.listing:hover {
    background: var(--tertiary-color);
}

.listing table {
    border-collapse: collapse;
}

.listing th,
.listing td {
    font-size: calc(0.75 * var(--default-text-size));
    width: 100vw;
    padding: 8px;
    border-bottom: 1px solid var(--text-color);
}

.listing a {
    font-size: calc(0.9 * var(--default-text-size));
    display: inline-block;
    color: var(--text-color-hover);
    text-decoration: none;
    transition: transform var(--shift-duration) ease;
}

.listing a:hover {
    color: var(--text-color-hover);
    transform: translateX(calc(-1 * var(--shift-distance)));
}

.parent-directory {
    font-weight: bold;
    color: var(--tertiary-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        color: var(--text-color);
    }
    50% {
        transform: scale(1.05);
        color: var(--text-color-hover);
    }
    100% {
        transform: scale(1);
        color: var(--text-color);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@font-face {
    font-family: 'Glametrix';
    src: url('content/fonts/Glametrix.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Glametrix';
    src: url('content/fonts/GlametrixBold.otf') format('opentype');
    font-weight: bold;
}

@media (max-width: 1280px) {
    :root {
    --content-width: 85%;
    }
    :root {
        --default-text-size: 1.425rem;
    }
    :root {
        --content-padding-hor: 4vw;
    }
    :root {
        --content-padding-ver: 6vh;
    }
    :root { 
        --follower-state: visible;
    }
}

@media (max-width: 900px) {
    :root {
        --content-width: 95%;
    }
    :root {
        --default-text-size: 1.275rem;
    }
    :root {
        --content-padding-hor: 6vw;
    }
    :root {
        --content-padding-ver: 8vh;
    }
    :root { 
        --follower-state: hidden;
    }
}

@media (max-width: 800px) {
    :root {
        --default-text-size: 1.15rem;
    }
}

::selection {
    background: var(--quaternary-color);
    color: var(--text-color-light);
}

::-moz-selection {
    background: var(--quaternary-color);
    color: var(--text-color-light);
}