body{
    background-size: 100%;
    overflow-x: hidden;
    background-color: black;
}
*{
    cursor: none
}
#cursor, #cursorCircle{
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    mix-blend-mode: difference;
}
#cursor{
    width: 7px;
    height: 7px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.05s linear;
    z-index: 1001;
}
#cursorCircle{
    width: 30px;
    height: 30px;
    background: none;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease-out;
    z-index: 1001;
}
#cursor.line-mode{
    width: 2px;
    height: 10px;
    border-radius: 0;
    background-color: white;
}
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

@media (pointer: coarse) {
    #cursor, #cursorCircle {
        display: none !important;
    }
}
#navBar{
        background-color: #000000;
        padding: 10px;
        margin-bottom: 0px;
        margin-top: -8px;
        margin-inline: -10px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #ffffff44;
}
.navLinks{
    color: white;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 15px;
    margin-inline: 20px;
    margin-top: 6px;
    text-shadow: 0px 0px 10px white;
}
#logo{
    height: 30px;
    width: 30px;
    object-fit: cover;
    margin-left: 20px;
    margin-right: 15px;
    margin-top: 5px;
    border-radius: 50%;
    border: 2px solid #a474ff;
    box-shadow: 0px 0px 10px #a474ff;
    transition: transform 0.3s ease;
}
#mainLink{
    font-size: 25px;
    font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    text-shadow: 0px 0px 30px #a474ff;
    align-items: center;
    display: flex;
    margin-top: 5px;
}
#cursorControl{
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    gap: 10px;
}
body.cursor-off * {
    cursor: auto !important;
}
body.cursor-off #cursor, 
body.cursor-off #cursorCircle {
    display: none !important;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3a295a;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: #a474ff; }
input:checked + .slider:before { transform: translateX(20px); }
#cursorToggleLabel{
    color: white;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 15px;
    margin-top: 15px;
    display: inline-block;
    text-shadow: 0px 0px 10px white;
}
#loginLink{
    margin-left: 0;
    margin-right: 0;
    margin-top: -2px;
}
#pfp{
    display: inline-block;
    height: 25px;
    width: 25px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #a474ff;
    box-shadow: 0px 0px 10px #a474ff;
    transition: transform 0.3s ease;
    margin-right: 20px;
    margin-left: 13px;
}

#page1{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url("header-multiverse.webp");
    height: 65vh;
    margin-inline: -8px;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px;
}
.text{
    z-index: 2;
    position: relative;
    color: white;
    font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#title{
    font-size: 70px;
    margin-top: 0px;
    margin-right: 200px;
    text-shadow: 0px 0px 40px #a474ff;
    font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#whatItIs{
    font-size: 30px;
    margin-top: 0px;
    max-width: 500px;
    margin-left: auto;
    color: #d2a1ed;
    text-shadow: 0px 0px 30px white;
}
#logoPic{
    z-index: 1;
    margin-left: 100px;
    box-shadow: 0px 0px 30px black;
}
#page2{
    align-items: center;
    display: flex;
}
#about{
    font-size: 50px;
    color: rgb(219, 152, 255);
    margin-top: 40px;
    margin-left: 80px;
    text-shadow: 0px 0px 30px #ffffff;
    font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#aboutText{
    font-size: 20px;
    color: white;
    margin-top: 20px;
    margin-left: 80px;
    text-shadow: 0px 0px 30px white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#loginPage{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url("header-multiverse.webp");
    height: 500px;
    margin-inline: -8px;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px;
}
#loginOverlay{
    width: 500px;
    height: auto;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 0px 30px black;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}
#loginTitle{
    font-size: 50px;
    color: #3a295a;
    text-shadow: 0px 0px 40px #5a5a5a;
    font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-top: -2px;
}
.form-input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    background: #f9f9f9;
}

#loginButton, #signupButton {
    width: 100%;
    padding: 12px;
    background-color: #3a295a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}
#loginButton:hover, #signupButton:hover {
    background-color: #5a3a8c;
}
#signupText{
    text-align: center;
    margin-top: 15px;
    color: #3a295a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#bubbleSection {
    display: flex;
    justify-content: left;
    gap: 40px;
    margin-top: 0px;
}
.bubble {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    --scale: 1;
    animation: float 4s infinite ease-in-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
    padding: 20px;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.8s ease;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset -8px -8px 15px rgba(255,255,255,0.05),
        inset 8px 8px 15px rgba(255,255,255,0.08),
        0 0 20px #a474ff;
    border: none;
    will-change: transform, box-shadow;
}
.bubble:hover {
    --scale: 1.12;
    box-shadow: 0 0 45px #d2a1ed;
}
.bubble:hover + .bubble {
    transform: translateY(-6px) scale(1.03);
}
@keyframes float {
    0% {
        transform: translateY(0px) scale(var(--scale));
    }
    50% {
        transform: translateY(-12px) scale(var(--scale));
    }
    100% {
        transform: translateY(0px) scale(var(--scale));
    }
}
.bubble::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 25px;
    top: 30px;
    left: 35px;
    background: rgba(255,255,255,0.45);
    border-radius: 50%;
    transform: rotate(-20deg);
}
.bubble::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 65px;
    left: 60px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}
.large{
    height: 230px;
    width: 230px;
    margin-top: -80px;
}
.medium{
    height: 210px;
    width: 210px;
    margin-top: -30px;
}
.small{
    height: 190px;
    width: 190px;
    margin-top: 30px;
    font-size: 12px;
}
.storyPage{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url("header-multiverse.webp");
    height: auto;
    margin-inline: -8px;
    background-repeat: repeat-y;
    background-size: cover;
}
#galaxyHub {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galaxy {
    position: absolute;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.7s ease;
    animation: drift 6s ease-in-out infinite;
}
@keyframes drift {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.galaxy:hover .galaxyImg{
    transform: translateY(-10px) scale(1.12);
}
.galaxyImg {
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: transform 0.7s ease;
}
.galaxy span {
    position: absolute;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bold;
    text-shadow: 0 0 20px white;
} 
.mainGalaxy span {
    font-size: 28px;
    bottom: 0px;
}
.smallGalaxy {
    width: 200px;
    animation: fadeIn 0.8s ease forwards, drift 6s ease-in-out infinite;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.smallGalaxy span {
    font-size: 16px;
    bottom: 0px;
}
.side1 {
    top: 60px;
    left: 80%;
    width: 280px;
    animation-delay: 1s;
}
.side2 {
    top: 150px;
    right: 85%;
    animation-delay: 2s;
}
#addSideStoryBtn{
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #3a295a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #3a295a;
    transition: background-color 0.3s, box-shadow 0.3s;
}
#addSideStoryBtn:hover{
    background-color: #5a3a8c;
    box-shadow: 0 0 20px #5a3a8c;
}
#addSideStoryBtn:active{
    background-color: #2a1f4a;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 15px #3a295a;
    transform: scale(0.98);
}
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#sideStoryForm {
    width: 400px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(168, 105, 250, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px black;
    z-index: 1000;
}
.chaptersToggle-container{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
#sideStoryForm button {
    margin-top: 15px;
    padding: 10px 18px;
    background: #3a295a;
    border: 10px solid #ffffff;
    color: white;
    border: none;
    border-radius: 8px;
    margin-right: 10px;
}