@keyframes mark-brown {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes animatedBackground {
    from { background-position: -100px 0; }
    to { background-position: -10000px 0; } 
}

@font-face {
    font-display: swap; 
    font-family: 'profont';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/ProFontWindows.ttf') format('truetype');
}

body.dark-mode {
    background-color: #0a0a0a;
}

body.dark-mode #cover {
    background: #0a0a0a;
}

body.dark-mode #animatedBackground {
    opacity: 0.3;
    background-blend-mode: overlay;
}

body.dark-mode .text-header {
    background: linear-gradient(0.25turn, transparent, rgba(255, 255, 255, 0.142), transparent);
    color: rgba(255, 255, 255, 0.799);
}

body.dark-mode .window.active {
    --w7-w-bg: #1c1524;
}

body.dark-mode .blur-div-container.glass {
    background-image: linear-gradient(90deg, rgba(30, 30, 30, 0.545), rgba(50, 50, 50, 0.353));
}

body.dark-mode .hover-line-text {
    color: rgb(255, 255, 255) !important;
}

body.dark-mode .hover-line-text::after,
body.dark-mode .hover-line-text::before {
    background: linear-gradient(to right, white, rgb(230, 230, 230));
}

body.dark-mode .cursor-tooltip {
    background: rgba(255, 255, 255, 0.92);
    color: #000;
}

body.dark-mode .window.active{
    --w7-w-bg: black !important;
    --w7-surface: rgb(158, 158, 158) !important;
}

body.dark-mode [role=tooltip] {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 5px 5px 3px -3px rgba(0, 0, 0, 0.8);
}

body.dark-mode [role=tooltip]:before {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.5 1.5v18h18l-18-18Z' fill='%232a2a2a' stroke='%23444'/%3E%3Cpath d='M1 19.5H.5v-18l18 18H18' stroke='%23666'/%3E%3C/svg%3E");
}

body.dark-mode [role=tooltip].is-top:before {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.5 1.5v18h18l-18-18Z' fill='%231a1a1a' stroke='%23333'/%3E%3Cpath d='M1 19.5H.5v-18l18 18H18' stroke='%23666'/%3E%3C/svg%3E");
}

body.dark-mode h1, body.dark-mode .text-end, body.dark-mode [role=tooltip] {
    color: white !important;
}


* {
    font-family: 'profont';
    color: rgb(0, 0, 0);   
    transition: color 0.6s ease; 
}

a {
    text-decoration: none;
    color: black;
}

#cover {
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#cover.hidden {
    opacity: 0;
    pointer-events: none;
}

#animatedBackground {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url("../materials/home/notes.jpg");
    background-position: center center;
    background-size: auto 40%; 
    background-blend-mode: multiply;
    animation: animatedBackground 500s linear infinite; 
    transition: background-image 0.6s ease, background-size 0.6s ease, background-blend-mode 0.6s ease, opacity 0.6s ease;
}

#user-client {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

#user-admin {
    background: linear-gradient(90deg, #f12711, #f5af19);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

#user-admin .user-icon {
    width: 16px;
    height: 16px;
    position: relative;
    top: 3px;
    left: 4px;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

footer { z-index: 1; }


.blur-overlay { 
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    z-index: -1;
}

.creator {
    margin-top: 8vh;
    margin-bottom: 20px;
}

.section {
    padding-bottom: 8px;
}

.list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20em;
}

.text-header {
    background: linear-gradient(0.25turn, transparent, rgba(0, 0, 0, 0.142), transparent);
    border-radius: 20px;
    color: rgba(0, 0, 0, 0.799);
    transition: color 0.6s ease; 
}

.secret-link {
    text-decoration: none;
    transition: color 0.4s ease;
}

.text-end + .text-end {
    margin-right: 4px;
    padding-right: 10px; /* COULD BE IMPROVED: check if needed */
}

.md {
    width: 18px;
    height: 18px;
    position: relative;
    top: 4px;
}

.main-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px 20px 20px;
    gap: 5px;
    min-height: 100vh;
    width: 90%;
}

.image-that-rotates {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    z-index: 2;
    perspective: 20rem;
    transition: transform 0.3s ease;
}

.image-that-rotates:hover { transform: scale(1.08); }

[role="tooltip"] { transition: transform 0.3s ease; }
[role="tooltip"]:hover { transform: scale(1.04); }

.image-month {
    width: 100%;
    height: 220px;
    align-self: stretch;
}

.event-link {
    text-decoration: none;
    color: white !important;
    -webkit-text-stroke: 4px black; /* COULD BE IMPROVED: heavy stroke for readability */
    paint-order: stroke fill;
}

.background {
    filter: drop-shadow(black 1px 1px 10px); /* COULD BE IMPROVED: heavy filter may impact performance */
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.title-content {
    width: 500px;
    margin: 0;
}

.title-bar-text { color: rgb(0,0,0) !important; }

.title-kafeshka {
    width: 40vw; 
    overflow-wrap: break-word;
    z-index: 1;
    height: 11rem;
}

h1 {
    margin-bottom: 12px;
    font-size: 48px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: font-size 0.6s ease, color 0.6s ease; 
}

.title-kafeshka h1:hover { font-size: 52px; }

.title-kafeshka p {
    font-size: 12px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-right: 80px;
}

.blur-div-container {
    --blur: 4px;
    --width: 21.1em;
    --move-by: 2em;
    position: relative;
    width: var(--width);
    height: calc(17.8em + 20px);
    border-radius: 1em;
    background-image: linear-gradient(90deg, var(--primary600, #8b5cf6), var(--primary500, #a78bfa));
    box-shadow: 0 0.25em 0.375em hsla(0, 100%, 74%, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1em;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blur-div-container:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5em 1em hsla(0, 100%, 74%, 0.2); 
}

.blur-div-container.glass {
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    background-image: linear-gradient(90deg, rgba(239, 209, 209, 0.545), rgba(247, 247, 247, 0.353));
}


.event-title {
    color: #ff5252;
    text-shadow: #ff0000 1px 0 20px; 
    -webkit-text-stroke: 4px black;
    paint-order: stroke fill;
}

mark.brown {
    background: radial-gradient(circle, #ffff21, #f746b9, #38ceec, #ff87d1);
    background-size: 200% 200%;
    background-clip: text;
    color: transparent;
    animation: mark-brown 12s linear infinite;
}

mark.yellow {
    background: rgb(255, 0, 0);
    background-size: 200% 200%;
    background-clip: text;
    color: transparent;
    animation: mark-brown 12s linear infinite;
    paint-order: stroke fill;
}

.hover-line-text {
    font-size: calc(0.8vw + 10px);
    display: inline-block;
    position: relative;
    text-align: center;
    z-index: 40 !important;
    background: transparent !important;
    color: black !important;
    will-change: transform;
    transform: translateZ(0);
}

.hover-line-text::after,
.hover-line-text::before {
    width: 0%;
    content: "";
    position: absolute;
    height: 0.6px;
    bottom: -2px;
    background: linear-gradient(to right, black, rgb(9, 9, 9));
    left: auto;
    right: 0;
    transition: width 0.45s ease-out;
    transform-origin: left;
    border-radius: 320px;
    z-index: 5;
}

.hover-line-text:hover::after,
.hover-line-text:hover::before {
    width: 100%;
}

.win7-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 2px;
    padding-top:10px;
    padding-bottom: 12px;
}

.title-bar-text {
    color: rgb(0, 0, 0) !important;
}

.window.active {
    margin: 0 1.5em; 
    --w7-w-bg: #1c1524; 
    width: 30em; 
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    min-height: 220px;
}

.window.active:hover {
    transform: scale(1.05);
}

.version{
    position: fixed;
    top: 0;
    left: 0;
    color: rgba(128, 128, 128, 0.223);
}

.rotate3d {
    width: 200px;
    transform-style: preserve-3d;
    animation: rotate3D 8s linear infinite;
    box-shadow: 1px rotate3D 2px rgba(0, 0, 0, 0.314);
    }

.shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 180px;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(4px);
    animation: shadowPulse 8s linear infinite;
  }

.secret-link:hover{
    color: red;
    text-decoration: none;
}

.icon-container {
    margin-bottom: 20px;
    margin-left: 50px;
    --width: auto;
    --height: 100%;
    --move-by: 2em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--width);
    height: var(--height);
    gap: 10px;
}

.icon-background {
    display: flex;
    width: calc(1.8vw + 20px);
    height: calc(1.8vw + 20px);
    align-items: center;
    justify-content: center;
    border-radius: 20%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(49, 49, 49, 0.226);
    transition: transform 0.3s ease;
}

.icon-background.bandcamp {
    background: linear-gradient(145deg, #5f56d6, rgb(98, 154, 169));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.icon-background.instagram{
    background: linear-gradient(145deg, #833ab4,#fd1d1d,#fcb045);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.10);
}
.icon-background.apple{
    background-color: white;
    border: none;
}
.icon-background.github{
    background: linear-gradient(145deg, #ffffff,#eeecec5c,#ffffff);
    box-shadow: 0 0px 2px rgba(255, 255, 255, 0.942);
    border: 1px solid rgba(213, 213, 213, 0.684);
}
.icon-background.spotify{
    background-color: black;
}
.icon-background.steam {
    background: linear-gradient(145deg, #1b2838,#171a21);
    border: 1px solid rgba(213, 213, 213, 0.684);
}
.icon-background.discord{
    background: #7289da; 
}

.icon-background.twitter{
    background: #000000; 
}

.icon-background.lastfm{
    background: #d00f0f; 
}

.icon-background.telegram{
    background: #1c92d2;
}

.icon-background:hover{
    transform: scale(1.05,1.05);
    
}


.cursor-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(0,0,0,0.92);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition: opacity 0.08s linear;
    z-index: 99999;
    opacity: 0;
    will-change: transform, opacity;
}

.cursor-tooltip.show {
    opacity: 1;
}


@keyframes slightRotate {
  0% { transform: rotateY(0deg); }
  25% { transform: rotateY(5deg); }
  50% { transform: rotateY(90deg); }
  75% { transform: rotateY(-5deg); }
  100% { transform: rotateY(0deg); }
}


@keyframes rotate3D {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
    }


@media screen and (max-width: 950px) {
    html, body{
        overflow-x: hidden;
    }

    .background {
        max-width: 90%;
    }

    .title-content {
        padding: 0 5px;
    }

    .title-kafeshka{
        width: 50vh;
    }

    .title-kafeshka h1 {
        font-size: 5vh;
    }
    .title-kafeshka h1:hover {
        font-size: 5.1vh;
    }

    .event-title{
        text-shadow: none;
    }

    .event-link{
        font-size: 20px;
    }

    .blur-div-container{
        height: 300px;
    }

    .icon-container{
     flex-direction: row;
        margin-left: 0px;
        
    }
    .icon-background{
        width: calc(3.8vw + 20px);
        height: calc(3.8vw + 20px);
    }

    .hover-line-text {
        font-size: clamp(16px, 5vw, 22px);
    }

    .background{
        left: 4vh;
    }
    .main-content{
        flex-direction: column;
    }
    .list{
        padding-top: 0em;
    }
    .container{
        margin-right: 0px;
    }
}

/* snoww */

.hat {
    background-image: url("/assets/home/hat.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 30;
    width: 200px;
    height: 300px;
    margin-bottom: 120px;
    position: absolute;
    animation: rotate3D 8s linear infinite;
}

.snow {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.snow::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  box-shadow:
    50px 80px white,
    120px 200px white,
    200px 50px white,
    300px 150px white,
    400px 80px white,
    500px 220px white,
    600px 120px white,
    700px 180px white,
    800px 100px white,
    900px 250px white;
  animation-name: fall, twinkle;
  animation-duration: 10s, 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear, ease-in-out;
  z-index: 99;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(50px);
    opacity: 0;
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}