body {
    background-color: #000000;
    margin: 0 auto;
    padding: 0;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
    color: white;
}
a {
    color: white;
}
#title {
    background: linear-gradient(to bottom, #333333, #000000);
    color: white;
    text-align: center;
    margin: 0;
}
#title h1 {
    margin: 0;
    font-size: 50px;
}
#main {
    width: 85%;
    max-width: 100%;               
    margin: 0 auto;
    padding: 20px 20px 40px 20px;  
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 0;
    box-sizing: border-box;
}
#char {
    width: 150px;
    height: 322px;
    flex: 0 0 auto;
    margin: 0 !important;
    display: flex;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;  
    background-size: cover; 
    cursor: pointer;
    transition: transform 0.4s;
}
#char:hover {
    transform: scale(1.3);
    z-index: 1;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 1),
                8px 8px 16px rgba(0, 0, 0, 0.7);
}
#char #charID {
    position: absolute;
    top: 1px;
    left: 4px;
    font-size: 13px;
    color: white;
    paint-order: stroke fill;                    
    -webkit-text-stroke: 3px black;              
    text-stroke: 3px black;                      
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
}
#char #removal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 43px;
    padding: 1px;
    color: white;
    font-weight: bold;
    background: rgba(255, 0, 0, 0.5);
    text-transform: uppercase;
    font-size: 11px;
}
#char #charDetail {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
    font-size: 13px;
    color: white;
}
#blur {
    position: fixed;
    display: none;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#details {
    position: fixed;
    display: none;
    gap: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    max-width: 75vw;
    min-height: 90vh;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border: 2px #FFFFFF solid;
    border-radius: 12px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.7);
    z-index: 9998;
}
#details div {
    text-align: left;
}

#details .stars {
    display: inline-flex;
    flex-direction: row-reverse;
}

#details .stars button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#details .stars img {
    width: 40px;
    padding-right: 5px;
    opacity: .3;
    transition: opacity .1s;
}
#details .stars button:hover img, #details .stars button:hover ~ button img {
    opacity: 1;
}

#details .rated {
    display: inline-flex;
}
#details .rated img {
    width: 40px;
    padding-right: 5px;
}

#details .switchChar {
    font-size: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
#details .switchChar:hover {
    color: #888888;
}
#details #charPic {
    max-height: 90vh; 
    display: block;
}
#details #description {
    overflow-y: auto;
    min-width: 15vw;
    max-width: 20vw;
    max-height: 90vh;
    padding-right: 5px;
}
#scenepics {
    margin-top: 7px;
    position: relative;
    text-align: left;
    display: flow-root;
}
#scenepics #pic {
    float: left; 
    width: 80px;
    height: 80px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 2px white solid;
    background-size: cover;
    text-align: left;
    cursor: pointer;
    position: relative;
}
#scenepics #pic:hover {
    border: 2px #888888 solid;
}
#scenepics #pic #aipic {
    position: absolute;
    bottom: 0px;
    left: 0px;
    font-size: 13px;
    font-weight: bold;
    color: #007BFF;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
}
#scenepics img {
    width: 18px;
    padding-top: 2px;
    padding-left: 2px;
}
#details div h1 {
    margin: 0;
    font-size: 45px;
    font-weight: 100;
}
#details div h2 {
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 40px;
}
#details div h3 {
    font-size: 25px;
    margin-top: 0px;
    margin-bottom: 2px;
    font-weight: normal;
}
#details div p {
    margin-top: 25px;
    font-size: 20px;
}
#details div div {
    text-align: center;
}
#details input[type=submit] {
    background: #007BFF;
    color: white;
    border: none;
    margin: 0px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}
#details input[type=button] {
    background: #007BFF;
    color: white;
    border: none;
    margin: 20px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}
#details input[type=text] {
    background: transparent;
    color: white;
    border: 1px solid white;
    margin: 20px;
    padding: 10px 18px;
    font-size: 14px;
    width: 150px;
}
#zoomed {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border: 2px #FFFFFF solid;
    border-radius: 12px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.7);
    width: auto;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#zoomed div {
    overflow-y: auto;
    overflow-x: hidden; 
    max-height: 90vh; 
    padding: 0;
    margin: 0;
}
#zoomcontent img {
    max-width: 90vw;
    display: block;
}
#sceneImg {
    max-height: 80vh;
}
#scenePassword {
    padding: 30px !important;
    font-size: 20px;
}
#scenePassword input[type=text] {
    background: transparent;
    color: white;
    border: 1px solid white;
    margin: 10px;
    padding: 10px 18px;
    font-size: 14px;
    width: 150px;
}
#scenePassword input[type=submit] {
    background-color: #007BFF;
    color: white;
    border: none;
    margin: 0px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}

#passwordPrompt {
    display: none;
    background-color: #3D3D3D;
    padding: 10px 18px;
    font-size: 17px;
    text-align: center;
}
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.close {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    background: #444;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 2px #FFFFFF solid;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.close:hover {
    background: #666;
}
.close::before,
.close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 3px;
    background: white;
    transform-origin: center;
}
.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.magnify {
    position: absolute;
    left: 10px;
    bottom: 10px;
    cursor: pointer;
}
.magnify img {
    width: 50px;
}
