/* */
@font-face {
    font-family: "ByteBounce";
    src: url("../fonts/ByteBounce.ttf") format("truetype");
}

@font-face {
    font-family: "BlackCherry";
    src: url("../fonts/VT323-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Alagard";
    src: url("../fonts/alagard.ttf") format("truetype");
}

@font-face {
    font-family: "Special-elite";
    src: url("../fonts/SpecialElite.ttf") format("truetype");
  }
  
  @font-face {
    font-family: "BlackCherry";
    src: url("../fonts/BLKCHCRY.woff") format("woff");
}


html{
    height: 100%;
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(218, 41, 41, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

body{
    width: 100vw;
    height: 100vh;
    animation: textShadow 1.6s infinite;
	background-color:#222222; 
}

.links a, .left a, .right a, .middle a{
    font-size: 22px;
    letter-spacing: 2px;
    color:#9ca3af!important;
    background-color:rgba(199, 157, 215, 0.3);
}

a{
    color: #c084fc;
    text-decoration: none;
}

a:hover {
    color: #9ca3af;
}

@media screen and (orientation:landscape) and (max-width:800px){
    .container{
        max-width:100%;
    }
}

body {
    font-family: "BlackCherry";
    font-size: 20px;
    color: #9ca3af;
    background: #1a0a2e;
    background-image: linear-gradient(rgba(199, 157, 215, 0), rgba(199, 157, 215, 0)), url("../images/purblebg.png");
    background-size: cover;
    background-attachment: fixed;
    background-position:bottom;
    background-size: cover;
    padding:0;
    margin:0;
}
  
center {
    text-align:center;
}
  
/*Some custom fun styling*/
h1, h2, h3 {
    text-align:center;
    font-family: "Alagard";
    margin-bottom: -10px;
    color: #9ca3af;
}

h1{
    font-size: 40px;
}

h2{
    font-size: 28px;
}

h3{
    font-size: 20px;
    letter-spacing: 2px;
}

p{
    font-size: 22px;
    letter-spacing: 1px;
}

ul {
    list-style-type: square;
}

li{
    font-size: 22px;
    letter-spacing: 1px;
}

blockquote {
    background: rgba(199, 157, 215, 0.15);
    color: #9ca3af;
    font-style: italic;
    border-left: 2px solid #c79dd7;
    padding: 0.5em 0.5em 0.5em 1em;
    border-radius: 0 3px 3px 0;
    margin: 1em;
}
  
/*Get rid to top padding on headers at the very top of a box.*/
.topheader {
    margin-top: 1px;
}
  
/*Container for all major divs*/
.main {
    border: 0px solid #121212;
    position: relative;
    height: 100%;
    width: 70vw;
    margin:auto;
}
  
.box {
    position: absolute;
    background: rgba(199, 157, 215, 0.12);
    display: inline-block;
    border: 4px solid #c79dd7;
    padding: 10px 5px 5px 0;
    bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 3px 3px rgba(0,0,0,0.8);
}
  
.left, .right{
    height: 32rem;
    width: 20%;  
}

.left2, .right2 {
    height: 17rem;
    width: 20%;  
}

.left2 {
    height: auto;
}


  
.left {
    border-radius: 10px 10px 10px 10px;
    top: 3rem;
}

.left2{
    border-radius: 10px 10px 10px 10px;
    bottom: 3rem;
}

.middle {
    border-radius: 10px 10px 10px 10px;
    height: 90%;
    width: 55%;
    margin-left:22%; /*Rounds more nicely than 22.5 for some reason*/
}

#pop{
    width: 100%;
    height: 100%;
    position: absolute;
}

#tart{
    opacity: 0.4;
    z-index: -2;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.shelfrow {
    background-color: rgba(20, 0, 40, 0.8);
    height: 21.3%;
    border: 4px solid rgba(199, 157, 215, 0.4);
    margin-bottom: 12px;
    overflow: visible;
}

.shelf {
    height: 90%;
    padding-left: 10px;
}
  
.right {
    border-radius: 10px 10px 10px 10px;
    right:0px;
    top: 22.5rem;
    bottom: 2.5rem;
    height: auto;
}

  
.left .scrollbox, .right .scrollbox {
    height: 31.75rem;
}

.right .scrollbox {
    height: 100%;
    max-height: calc(100vh - 22rem);
}

.left2 .scrollbox{
    height: auto;
    max-height: 14rem;
}

.board {
  height: 212px;
}
  
.middle .scrollbox {
    height: 100%;
    overflow: hidden;
}
  
.scrollbox {
    overflow:auto;
}
  
.inner {
    padding: 0.75rem 1rem 0 1em;
}
  
.inner img {
    max-width: 100%;
    height: auto;
}

.footer {
    position: fixed;
    width: 100%;
    color: #9ca3af;
    background-color: #1a0040;
    font-size:0.9em;
    font-weight:bold;
    bottom: 0;
    left:0;
    height: 24px;
    padding-top: 5px;
    font-family: "Alagard";
    letter-spacing: 2px;
}

.footer div {
    display: inline-block;
  }
  
span {
    display: inline-block;
}

.clock{
    float: right;
}

#feet {
    float: left;
}

#hrs::after{
    content: "";
}
#min::after{
    content: "";
}
#day::after{
    content: "";
}
#month::after{
    content: "";
}
#year::after{
    content: "";
}

/*Optional sidebar links*/
.button-link {
    display: block;
    background: #b07dc4;
    color: #9ca3af;
    text-decoration: none;
    margin: 0.5em 0;
    padding: 0.35em 0.5em;
    border-radius: 2px;
    text-align: center;
}
  
.button-link:visited {
    color: #9ca3af;
}
  
.button-link:hover {
    background: #c79dd7;
    color: #9ca3af;
}

tr{
    display: block;
}

td{
    width: 33%;
}

td img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stamp{
    height:55px;
    width: 100px;
    padding:0px;
}

.canclick:hover{
    background-color: #F5D2A5;
  opacity:0.7 !important;
  filter:alpha(opacity=70) !important; /* For IE8 and earlier */
  box-shadow: 0 0 0px #000000 !important;
}

#overlay{
    background-color: rgb(80, 20, 120);
    mix-blend-mode: luminosity;
}

#overlay2{
    background-color: rgb(100, 0, 180);
    mix-blend-mode: overlay;
}


/* decorative images */
#moon-decor {
    position: fixed;
    top: 10px;
    right: 18px;
    width: 110px;
    height: auto;
    z-index: 100;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(199, 157, 215, 0.6));
    animation: moonFloat 4s ease-in-out infinite;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

#skull-locket {
    position: fixed;
    top: 3.5rem;
    left: calc(50% - 35vw - 80px);
    width: 70px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(199, 157, 215, 0.5));
    transform: rotate(-10deg);
}

@keyframes spinStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#star-spin {
    position: fixed;
    bottom: 34px; /* sits just above the footer bar */
    right: 12px;
    width: 110px;
    height: auto;
    z-index: 100;
    pointer-events: none;
    animation: spinStar 8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 220, 50, 0.5));
}

/* books */
.stopper{
    border: 4px;
    border-style: solid;
    border-radius: 4px;
    display: inline-block;
    vertical-align: bottom;
    margin-top: 8px;
    width: 60px;
    height: 100%;
    font-size: 30px;
}

.title{
    height: 100%;
    width: 100%;
    margin: auto;
    text-align: center;
    vertical-align: middle;
    line-height: 58px; 
    writing-mode: vertical-rl;
    text-shadow: 0 0 3px black, 0 0 5px black;
    font-size: 28px;
    font-family: "Alagard";
    color: #ececed;
    /* text-combine-upright: all; */
}

#a1{
    background-color: #5a2a6a;
}

#b1{
    background-color: #5a2a6a;
    border-color: #c79dd7;  
    margin-left: 252px;
}

#c1{
    background-color: #5a2a6a;
}

#d1{
    background-color: #5a2a6a;
}

#e1{
    background-color: #5a2a6a;
    margin-left: 300px;
}

#f1{
    background-color: #5a2a6a;
}

.book{
    border: none;
    border-radius: 4px;
    display: inline-block;
    vertical-align: bottom;
    width: 35px;
    height: 90%;
    margin-right: -3px;
}

.label{
    height: 100%;
    width: 100%;
    margin: auto;
    text-align: center;
    vertical-align: middle;
    line-height: 25px; 
    writing-mode: vertical-rl;
    text-shadow: 0 0 5px black, 0 0 5px black;
    font-family: "ByteBounce";
    font-size: 25px;
    transform: scaleX(1.5);
    color: #9ca3af;
}

#a2{
    background: linear-gradient(rgba(123, 47, 190, .85)), url("../images/book_spine.png");
}

#a3{
    background: linear-gradient(rgba(75, 143, 213, .9));
}

#a4{
    background: linear-gradient(rgba(240, 111, 164, .85)), url("../images/book_spine.png");
}

#b2{
    background: linear-gradient(rgba(200, 200, 212, .75)), url("../images/book_spine.png");
}

#b3{
    background: linear-gradient(rgba(232, 135, 58, .9));
}

#b4{
    background: linear-gradient(rgba(245, 230, 66, .8)), url("../images/book_spine2.png");
}

#c2{
    background: linear-gradient(rgba(139, 95, 160, .9));
}

#c3{
    background: linear-gradient(rgba(107, 191, 212, .8)), url("../images/book_spine2.png");
}

#c4{
    background: linear-gradient(rgba(123, 47, 190, .8)), url("../images/book_spine2.png");
}

#c5{
    background: linear-gradient(rgba(75, 143, 213, .8)), url("../images/book_spine3.png");
}

#d2{
    background: linear-gradient(rgba(240, 111, 164, .75)), url("../images/book_spine2.png");
}

#d3{
    background: linear-gradient(rgba(232, 135, 58, .9));
}

#e2{
    background: linear-gradient(rgba(245, 230, 66, .75)), url("../images/book_spine2.png");
}

#e3{
    background: linear-gradient(rgba(139, 95, 160, .8)), url("../images/book_spine.png");
}

#e4{
    background: linear-gradient(rgba(107, 191, 212, .85)), url("../images/book_spine3.png");
}

#f2{
    background: linear-gradient(rgba(200, 200, 212, .75));
}

#f3{
    background: linear-gradient(rgba(123, 47, 190, .85)), url("../images/book_spine3.png");
}

#f4{
    background: linear-gradient(rgba(75, 143, 213, .9));
}

/*Nicer-looking resizing for narrower screens.*/
@media(max-width: 1000px) {
    .main {
    width: 82.5vw;
    }

    @media(max-width: 850px){
    body {
        font-size: 0.85rem;
        }
    .main {
        height: 91vh;
        width: 92vw;
        margin: 7vh 5vw 1.5vh 5vw;
        }
    .left, .right {
        height: 75vh;
        width: 18.5vw;
        }
    .left{
        top: 0rem;
    }
    .right {
        right: 0;
        }
    .middle {
        height: 90vh;
        width: 50vw;
        margin-left: 20.5vw;
        }
    .left .scrollbox, .right .scrollbox {
        height: 75vh;
        }
    .middle .scrollbox {
        height: 90vh;
        }
    .footer {
        bottom: -2.5vh;
        margin: 0.25rem auto 0.5rem auto;
        }
    .stopper{
        width:0;
        border:0;
    }
    .title{
        width:0;
        font-size:0;
    }
    #b1{
        margin-left:0;
    }
    #e1{
        margin-left: 0;
    }
    }
}

/*Resizing for horizontally shorter screens. like my laptop*/
@media(max-height: 45rem) {
    p{
        font-size: 18px;
    }
    h2{
        font-size: 22px;
    }
    h3{
        font-size: 20px;
    }
    .links a, .left a, .right a, .middle a{
        font-size: 18px;
    }
    .main {
        height: 100vh;
    }
    .middle {
        height: 90vh;
        width: 550px;
    }
    .left, .right {
        height: 42vh;
    }
    .left2, .right2{
        height:38vh;
    }
    .left{
        top: 1.5rem;
        }
    .right{
        bottom: 3rem;
        }
    .right2{
        top:1.5rem;
    }
    .left .scrollbox{
        height: 75vh;
    }
    .right .scrollbox {
        height: 45vh;
    }
    .left2 .scrollbox{
        height: 75vh;
    }
    .right2 .scrollbox{
        height: 37vh;
    }
    .middle .scrollbox {
        height: 90vh;
    }
    .inner {
        padding-top: 0.5em;
    }
    .footer {
        bottom: -2.5vh;
        margin: 0.25rem auto 0.5rem auto;
    }
    .shelfrow {
        height: 20%;
    }
    .stopper{
        width:0;
        border:0;
    }
    .title{
        width:0;
        font-size:0;
    }
    .label{
        font-size: 20px;
    }
    #b1{
        margin-left:0;
    }
    #e1{
        margin-left: 0;
    }

    @media(max-height: 32.5rem) {
    body {
        font-size: 0.825rem;
        }
    .main {
        margin-top: 10vh;
        height: 88vh;
        }
    .middle {
        height: 87vh;
        }
    .left, .right {
        height: 32rem;
        }
    .left{
        top: 1.5rem;
        }
    .left .scrollbox, .right .scrollbox {
        height: 32rem;
        }
    .middle .scrollbox {
        height: 87vh;
        }
    .inner {
        padding-top: 0.25rem;
        }
    .footer {
        bottom: -3vh;
        }
    .stopper{
        width:0;
        border:0;
    }
    .title{
        width:0;
        font-size:0;
    }
    #b1{
        margin-left:0;
    }
    #e1{
        margin-left: 0;
    }
    }
}

/*Mobile layout*/
@media(orientation: portrait) {
    .main, .box, .footer {
        position: relative;
        display: block;
        }

    .left, .right, .middle {
        width: 90vw;
        height: auto;
        margin: 0 auto;
        padding-right: 3px;
        }
    
    .left2, .right2 {
        height: 0;
        width: 0;
        border: 0;
        padding: 0;
    }

    .left .scrollbox, .right .scrollbox, .middle .scrollbox, .left2 .scrollbox {
        height: auto;
        max-height: 110%;
        }
        
    .inner {
        padding: 0.75rem 1.5em 0.25em 1.5em;
        }

    .left {
        border-radius: 20px 20px 2px 2px;
        margin: 0;
        top: -2rem;
        }
        
    .middle {
        border-radius: 2px;
        margin: 1rem 0;
        }
        
    .right {
        border-radius: 2px 2px 20px 20px;
        margin: 0;
        }
        
    .footer {
        width:0px;
        height:0px;
        font-size:0px;
    }
    .stopper{
        width:0;
        border:0;
    }
    .title{
        width:0;
        font-size:0;
    }
    #b1{
        margin-left:0;
    }
    #e1{
        margin-left: 0;
    }
}

/* Win7 librarian popup — uses 7.css .window */
#librarian-popup {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    z-index: 200;
}

#librarian-body {
    padding: 8px;
    text-align: center;
}

#librarian-img {
    width: 100%;
    height: auto;
    border: 1px solid #aac8e8;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

#librarian-caption {
    font-size: 12px;
    color: #333;
    margin: 7px 0 4px 0;
    line-height: 1.4;
    font-family: "Segoe UI", sans-serif;
}

#librarian-talk {
    margin: 4px 0 2px 0;
}

#librarian-talk a {
    background: linear-gradient(to bottom, #6db3f2, #2176c7);
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-family: "Segoe UI", sans-serif;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #1a5fa8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

#librarian-talk a:hover {
    background: linear-gradient(to bottom, #89c4f4, #3a8fd6);
    color: #fff !important;
}

/* Music player styles */
#wik-nowplaying {
    background: #000;
    color: #0f0;
    font-family: monospace;
    font-size: 10px;
    padding: 4px 6px;
    margin-bottom: 5px;
    border: 1px solid #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wik-controls {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.wik-controls button {
    flex: 1;
    font-family: "Segoe UI", sans-serif;
    font-size: 11px;
    background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
    color: #222;
    border: 1px solid #adadad;
    border-radius: 2px;
    cursor: pointer;
    padding: 2px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.wik-controls button:hover {
    background: linear-gradient(to bottom, #e8f4fc, #c8e0f4);
    border-color: #4a90d9;
}

.wik-time {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #555;
    margin-bottom: 4px;
    font-family: monospace;
}

.wik-vol {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #333;
}

.wik-playlist-label {
    font-size: 11px;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 4px;
    margin-bottom: 3px;
    font-family: "Segoe UI", sans-serif;
}

#wik-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 60px;
    overflow-y: auto;
}

#wik-playlist li {
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 11px;
    color: #333;
    font-family: "Segoe UI", sans-serif;
}

#wik-playlist li:hover {
    background: #d0e8ff;
    color: #003f7f;
}

/* .right2 uses 7.css .window structure - no custom titlebar needed */
.right2 {
    position: absolute !important;
    right: 0;
    left: auto;
    margin-right: -3%;
    transform: translateX(-10px);
    top: calc(1.5rem + 25px);
    bottom: auto !important;
    width: 23%;
    height: 18.5rem;
    z-index: 10;
    overflow: visible;
    /* cancel out .box styles that break Win7 appearance */
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    /* subtle borders */
    border-top: 1px solid rgba(0,0,0,0.15) !important;
    border-left: 4px solid rgba(0,0,0,0.15) !important;
    border-right: 4px solid rgba(0,0,0,0.15) !important;
    border-bottom: 2px solid rgba(0,0,0,0.15) !important;
}

.right2.window::before {
    display: block !important;
}

.right2 .window-body {
    background: #f0f0f0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Responsive scaling fix — scales layout on screens narrower than 1920px */
@media (max-width: 1919px) {
    html {
        font-size: calc(16px * (100vw / 1920));
    }
}
