@import url('/storage/css/themes.css');

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    display: flex;
    background-color: var(--background-color); 
    animation: mainHeaderAnimation 2s forwards;
    
    scrollbar-width: none;
    -ms-overflow-style: none;

    height: 100%;
}
  
body::-webkit-scrollbar {
    width: 0;
}
  
.content-side {
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: mainHeaderAnimation 1s ease-in-out forwards;
    background-image: var(--background-image);
    background-size: cover;
    position: relative;
}

.content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 40, 0.5);
    pointer-events: none;
    z-index: 0;
}

.content-side > * {
    position: relative;
    z-index: 1;
}
  
h1 {
    font-size: 96px;
    font-family: var(--font-family);
    text-shadow: 0 0 10px var(--text-color),
                 0 0 10px var(--text-glow),
                 0 0 30px var(--text-glow),
                 0 0 40px var(--text-color),
                 0 0 50px var(--text-glow),
                 0 0 60px var(--text-color),
                 0 0 70px var(--text-glow),
                 0 0 80px #000000;
    margin-bottom: 0px;
}
  
h2 {
    font-size: 20px;
}
  
p {
    font-size: 18px;
    margin-bottom: 2px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    text-shadow: 5px 5px 5px var(--text-glow);
    animation: paragraphTween 1.2s ease-in-out forwards;
}
  
.linkp a {
    font-size: 20px;
    text-align: center;
    border: 3px solid transparent;
    transition: 0.15s ease-in-out;
    text-shadow: 5px 5px 5px var(--text-glow);
}
  
.linkp a:hover {
    color: rgb(199, 192, 192);
}
  
a {
    margin-top: 15px;
    font-size: 18px;
    text-decoration: underline;
    color: var(--text-color);
    
    text-shadow: 5px 5px 5px var(--text-glow);
}
  
.gamesbutton {
    background-color: var(--background-color);
    color: var(--text-color);
    width: 50%;
    max-width: 100px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    height: 85px;
    margin: 0 10px;
    padding-left: 20px;
    padding-right: 20px;
    
    transition: background-color 0.15s ease-in-out;
    border: 3px solid var(--border-color2);
    border-radius: 16px;
    position: relative;
}
  
.gamesbutton img {
    width: calc(100% - 24px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.gamesbutton-link {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

.gamesbutton:hover {
    background-color: var(--hover-color); 
    transition: background-color 0.1s ease-in-out; 
}
  
.button-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center; 
}

.button-container {
    display: flex;
    text-align: center; 
}
  
  
.cursor {
    width: 7px;
    height: 7px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
    z-index: 10000;
}

#blackout {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

#updPopup {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 60%;
    max-height: 80%;
    padding: 30px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 3px solid var(--border-color2);
    border-radius: 16px;
    z-index: 1001;
    text-align: center;
    flex-direction: column;
}

#updPopup h2 {
    margin-top: 0;
}

#updConfirm {
    margin-top: 20px;
    padding: 15px 24px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 3px solid var(--border-color2);
    border-radius: 16px;
    font-family: var(--font-family);
    font-size: 16px;
    cursor: pointer;
}

#updConfirm:hover {
    background-color: var(--hover-color); 
    transition: background-color 0.1s ease-in-out; 
}

#updContent {
    border: 2px solid var(--border-color2);
    border-radius: 16px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;

    overflow: auto;
    overflow-y: scroll;

    max-height: 200px;
}

#updContent ul {
    list-style-position: inside;
    text-align: left;
}

#updConfirmFrame {
    z-index: 1002;
    width: 100%;
}
  
@keyframes mainHeaderAnimation {
    0% {
        opacity: 0;
        transform: translateY(-25%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
  
@keyframes paragraphTween {
    0% {
        transform: translateX(-4%);
    }
    100% {
        transform: translateX(0%);
    }
}
  
  
/* Snow particles effect */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowfall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.8;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffffff;
}

@keyframes snowfall {
    0% {
        transform: translateY(0vh) translateX(0);
    }
    100% {
        transform: translateY(100vh) translateX(100px);
    }
}

.snowflake:nth-child(1) { left: 1%; animation-duration: 6s; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 20%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 30%; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 40%; animation-duration: 13s; }
.snowflake:nth-child(6) { left: 50%; animation-duration: 7s; animation-delay: 3s; }
.snowflake:nth-child(7) { left: 60%; animation-duration: 10s; animation-delay: 1.5s; }
.snowflake:nth-child(8) { left: 70%; animation-duration: 8s; animation-delay: 2.5s; }
.snowflake:nth-child(9) { left: 80%; animation-duration: 14s; }
.snowflake:nth-child(10) { left: 90%; animation-duration: 11s; animation-delay: 0.8s; }
.snowflake:nth-child(11) { left: 5%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(12) { left: 15%; animation-duration: 12s; }
.snowflake:nth-child(13) { left: 25%; animation-duration: 10s; animation-delay: 1.2s; }
.snowflake:nth-child(14) { left: 35%; animation-duration: 8s; animation-delay: 0.3s; }
.snowflake:nth-child(15) { left: 45%; animation-duration: 13s; animation-delay: 1.8s; }
.snowflake:nth-child(16) { left: 55%; animation-duration: 7s; }
.snowflake:nth-child(17) { left: 65%; animation-duration: 11s; animation-delay: 2.2s; }
.snowflake:nth-child(18) { left: 75%; animation-duration: 9s; animation-delay: 0.7s; }
.snowflake:nth-child(19) { left: 85%; animation-duration: 12s; animation-delay: 1.3s; }
.snowflake:nth-child(20) { left: 95%; animation-duration: 10s; animation-delay: 0.1s; }

/* Hollow Knight style custom cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="none" stroke="white" stroke-width="2"/><circle cx="16" cy="16" r="4" fill="white"/></svg>') 16 16, auto;
}

a, button, .button, select, input {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="none" stroke="white" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="white"/></svg>') 16 16, pointer;
}

/* Hide v10 update popup */
#updPopup {
    display: none !important;
}

#blackout {
    display: none !important;
}
