@font-face {
    font-family: 'Default';
    src: url('fonts/default.woff') format('woff');
}

body {
  padding: 0;
  margin: 0;
  color: #191136;
  font-family: 'Default', sans-serif;
  image-rendering: pixelated;
  font-size: 18px;
}

h1 {
  color: #191136;
  text-align: center;
  font-family: 'Default', sans-serif;
}

.quote {
  color: white;
  font-family: 'Default', sans-serif;
  font-size: 30px;
  display: block;
  text-align: center;
}

.background {
    position: fixed;
    inset: 0;
    background-image: url("images/background_checkers.png");
    height: 10024px;
    background-color: #000;
    background-repeat: repeat;
    z-index: -3;
    animation: scroll-bg 80s linear infinite, bgcolors 60s infinite;
}

.stars {
    position: fixed;
    inset: 0;
    height: 10024px;
    background-image: url("images/stars.png");
    background-repeat: repeat;
    background-size: 1024px;
    z-index: -1;
    opacity: 0.5;
    image-rendering: pixelated;
    mix-blend-mode: plus-lighter;
}

.panel {
    max-width: 800px;
    margin: 50px auto;

    padding: 12px 40px;

    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

.invisible-panel {
    max-width: 800px;
    margin: 50px auto;

    padding: 12px 40px;

    background: rgba(255, 255, 255, 0);
    animation: fadeIn 0.5s ease-out;
}

.sub-panel {
    min-width: 300px;
    margin: auto;
    
    padding: 2px 40px 10px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

.image-link {
  border-radius: 12px;
}

.header {
    min-width: 300px;
    margin: auto;
    padding: 2px 40px 10px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

.footer {
  display: block;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.6);
}

#navbar {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 999;
  overflow: hidden;
  background: rgba(255, 255, 255);
  box-shadow: 0px 8px 5px rgba(0, 0, 0, 0.15);
}

#navbar a {
  display: block;
  color: #FF68C3;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  animation: textcolors 60s infinite;
}

#navbar a:hover {
  background: #eee;
  text-shadow: 0px -5px 8px rgba(#fff, #fff, #fff);
}

::-moz-selection {
  color: #FF68C3;
  background: #F8B8FB;
  animation: bg 30s infinite;
}

::selection {
  color: #FF68C3;
  background: #F8B8FB;
  animation: bg 30s infinite;
}

#deck{
    position:relative;
    width:88px;
    height:31px;
}

.card{
    position:absolute;
    left:0;
    top:0;
    perspective: 1000px;
    transform-style: preserve-3d;

    transition:
        transform 0s, filter 0s;

    image-rendering:pixelated;
}




/* books */

.bookshelf{
    display:flex;
    gap:6px;
    padding:50px;

    background: linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 32%, rgba(255, 255, 255, 0.53) 33%, rgba(255, 255, 255, 0) 100%);
    align-items:flex-end;
}

.book{
    position:relative;
    width:42px;
    height:260px;
    transition:.45s;
    transform-style:preserve-3d;
}

.book:hover{
    width:180px;
    transform: translateX(-30px);
    z-index:100;
}

.spine,
.cover{
    width:180px;
    position:absolute;
    inset:0;
    backface-visibility:hidden;
}

.spine{
    background:var(--book-color);
    width:42px;
    transform: translateX(-14px);
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius: 4px;
    writing-mode:sideways-rl;
    transition:.45s;
    color:white;
    font-weight:bold;
    letter-spacing:2px;
    background-image: url("images/book_spine.png");
    background-blend-mode: multiply;
}

.cover{
    background:var(--book-color);

    color:white;
    border-radius: 4px;
    padding:16px;
    box-sizing:border-box;

    transform-origin:left;
    transform:rotateY(180deg);
    transition:.45s;
    box-shadow:8px 10px 18px rgba(0,0,0,.35);
    background-image: url("images/book_cover.png");
    background-blend-mode: multiply;
}

.book:hover .cover{
    transform:rotateY(0deg)translateX(22px);
}

.book:hover .spine{
    transform:rotateY(-90deg) translateX(-14px);
}



.gallerycontainer {
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px;
}


.gallery {
  width: 200px;
  background-color: #00000071;
  border-radius: 12%;
  margin: 15px;
}


.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12%;
}

.desc {
  padding: 15px;
  text-align: center;
  color: #fff;
}

.gallery {
  transform: translateY(-0px);
  box-shadow:0px 0px 0px rgba(0, 0, 0, 0);
  transition: 0.45s;
}

.gallery:hover {
  box-shadow:0px 14px 18px rgba(0,0,0,.35);
  transform: translateY(-14px);
}






@keyframes scroll-bg {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1024px -1024px;
    }
}

@keyframes stars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(200px);
    }
}

@keyframes bgcolors {
  0% {background-color: #FF68C3}
  25% {background-color: #55BEFF}
  50% {background-color: #EB89FF}
  75% {background-color: #8DEC4C}
  100% {background-color: #FF68C3}
}

@keyframes bg {
  0% {background: #FF68C3}
  25% {background: #55BEFF}
  50% {background: #EB89FF}
  75% {background: #8DEC4C}
  100% {background: #FF68C3}
}

@keyframes textcolors {
  0% {color: #FF68C3}
  25% {color: #55BEFF}
  50% {color: #EB89FF}
  75% {color: #8DEC4C}
  100% {color: #FF68C3}
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}