/* FADE IN */
#blackOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 1;
    transition: opacity 2s ease;
    z-index: 9999;
}
#blackOverlay.fade-out {
    opacity: 0;
    pointer-events: none;
}


html {
    font-family: ms pgothic;
    margin: 0;
    padding: 0;
    cursor: url(https://cur.cursors-4u.net/anime/ani-11/ani1090.cur) !important;
    background: black;
}

body {
    height: 100%;
}

/* BAT NAVIGATION */
nav {
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    filter: grayscale(1);
    z-index: 99;
}
#bat-nav {
    height: 20em;
    position: absolute;
    top: 0;
    left: 20px;
    z-index: 9;
    user-select: none;
}
#bat-wing, #nav {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
#bat-wing.active, #nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#bat-wing {
    animation: wingSway 6s ease-in-out infinite;
    transform-origin: left center;
    height: 160px;
    position: absolute;
    top: 100px;
    left: 110px;
    animation: wingSway 6s ease-in-out infinite;
    transform-origin: left center;
}
#nav {
    position: absolute;
    z-index: 99;
    background: url('https://domokunlover.github.io/domoneocities/pages/home/navigation/nav-border.png') no-repeat;
    background-size: 18em;
    height: 370px;
    width: 290px;
    top: 150px;
    left: 170px;
    animation: navSway 6s ease-in-out infinite;
    text-align: center;
}
#nav-scroll {
    display: block;
    margin: 40px auto;
    background: url('https://domokunlover.github.io/domoneocities/pages/home/navigation/nav-bg.jpg') no-repeat;
    background-size: 100% 100%;
    width: 230px;
    height: 290px;
    overflow-y: scroll;
}
#nav-scroll::-webkit-scrollbar {
    display: none;
}
.nav-flex {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    flex-wrap: wrap;
}
.nav-flex a {
    background: rgba(128, 128, 128, 0.274);
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid gray;
    color: darkgray;
    position: relative;
    z-index: 1;
    transition: color 0.5s ease-in-out;
}
.nav-flex a:hover {
    color: white;
}
#nav-scroll h3 {
    color: white;
    margin: 5px 0;
    user-select: none;
}
.nav-flex a::before {
transform: scaleX(0);
transform-origin: bottom right;
} 
.nav-flex a:hover::before {
transform: scaleX(1);
transform-origin: bottom left;
}
.nav-flex a::before {
content: " ";
display: block;
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
inset: 0 0 0 0;
backdrop-filter: brightness(150%);
-webkit-backdrop-filter: blur(2px);
z-index: -1;
transition: transform .5s ease;
}
 



@keyframes wingSway {
    0%,
    100% {
        transform: translateY(0px);
        rotate: 0deg;
    }
    50% {
        transform: translateY(-4px);
        rotate: -3deg;
    }
}

@keyframes navSway {
    0%,
    100% {
        transform: translateY(0px);
        rotate: 3deg;
    }
    50% {
        transform: translateY(-10px);
        rotate: -2deg;
    }
}

#contentframe {
    width: 70em;
    height: 100vh;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    margin-top: 150px;
    user-select: none;
    border: 1px solid white;
    border-radius: 2px;
}

/* Div at the top */
#site-title {
    background: url('https://domokunlover.github.io/domoneocities/pages/home/content/headers/domokun.neocities.org.png') no-repeat center center;
    background-color: black;
    width: 100vw;
    height: 115px;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
}


body::-webkit-scrollbar {
width: 8px;
}
 
body::-webkit-scrollbar-track {
background-color: black;
-webkit-border-radius: 10px;
border-radius: 10px;
border: 1px solid #ccc;
}
 
body::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: black;
border: 1px solid #aaa;
}

.nav-divider {
    background: url('https://domokunlover.github.io/domoneocities/imgs/general/dividers/barbwire.png');
    background-size: 10em;
    height: 35px;
}

.calendar {
    height: 265px;
    width: 265px;
    margin: 0;
    padding: 0;
    user-select: none;
}

#side-content {
    height: 100vh;
    width: 20em;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 150px;
    right: 50px;
    gap: 20px;
}

#my-button {
    width: 250px;
    height: fit-content;
    border: 1px solid white;
    padding: 5px;
    color: white;
    font-size: 12px;
}

.buttonbadge {
    width: 88px;
    height: 31px;
}

#button-code {
    height: 70px;
    width: 149px;
    max-height: 70px;
    max-width: 149px;
    padding: 3px;
}

#my-button a {
    color: gray;
    text-decoration: underline dotted;
    transition: letter-spacing 0.5s ease-in-out;
}
#my-button a:hover {
    color: white;
    text-decoration: underline dotted;
    letter-spacing: 1px;
}

.bottom-button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
    user-select: none;
}

.clock {
    user-select: none;
}

#side-content-userbar {
    color: white;
    background-color: black;
    border: 1px solid white;
    border-bottom: none;
    width: 16.25em;
    text-align: right;
    padding-bottom: 2px;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.hitcounter {
    width: 250px;
    height: fit-content;
    border: 1px solid white;
    padding: 5px;
    color: white;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.hitcounter img {
    max-width: 20px;
}