/* */
/* styles for werewolf-girlfriend's (https://werewolf-girlfriend.neocities.org) gallery template! */
/*  */
@font-face {
font-family: 'Adler';
src: url('/fonts/Adler.ttf') format("truetype");
}
@font-face {
font-family: 'CALIBURN';
src: url('/fonts/CALIBURN13%20abandon.ttf') format("truetype");
}
@font-face {
font-family: 'Fantaisie';
src: url('/fonts/FantaisieArtistique.ttf') format("truetype");
}
@font-face {
font-family: 'OverdriveSunset';
src: url('/fonts/Overdrive Sunset.otf') format("opentype");
}
@font-face {
font-family: 'PoorLittleBaby';
src: url('/fonts/PoorLittleBaby.ttf') format("truetype");
}
@font-face {
font-family: 'punkkid';
src: url('/fonts/punk kid.ttf') format("truetype");
}
@font-face {
font-family: 'Scratchy';
src: url('/fonts/SCRATCHL.ttf') format("truetype");
}
@font-face {
font-family: 'Prozak';
src: url('/fonts/prozak.ttf') format("truetype");
}
@font-face {
font-family: 'SpecialElite';
src: url('/fonts/SpecialElite.ttf') format("truetype");
}
@font-face {
font-family: 'DirtyEnough';
    src: url('/fonts/DirtyEnough');}

h1{font-family:'Scratchy';color:#833b53;text-shadow: -1px -1px 0 #270011, 1px -1px 0 #270011, -1px 1px 0 #270011, 1px 1px 0 #270011;
}
h2{font-family:'CALIBURN';color:#ffd1d1;text-shadow: -1px -1px 0 #270011, 1px -1px 0 #270011, -1px 1px 0 #270011, 1px 1px 0 #270011;
}
h3,h4,h5,h6{font-family:'Adler';color:#861a3b;text-shadow: -1px -1px 0 #270011, 1px -1px 0 #270011, -1px 1px 0 #270011, 1px 1px 0 #270011;
}
p {font-size:13px;}
a {color:#98d5a8;text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
a:hover {color:#dcf1e1;cursor:url('/graphics/Cursor2.png'),auto;}
/*  */
/* colors */
/*  */

@keyframes rotate {
    0% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

img {
    animation: gentleRock 4s ease-in-out infinite;
    transform-origin: center center;
}
.rotating {
    display: inline-block;
    animation: rotate 2s linear infinite;
}
:root {
    --bg: rgba(10, 10, 10, 0.90);
    --txt: #ffd1d1;
    --accent: #ffd1d1;
}

::selection {
  background: #270011;
  color: #e5d1f2;
}
::-moz-selection {
  background: #270011;
  color: #e5d1f2;
}
::-webkit-selection {
  background: #270011;
  color: #e5d1f2;}

ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  font-family:'Prozak';
  font-size:22px;
}

li {
  font-family:'SpecialElite';
  font-size:12px;
  padding-left: 1em;
  text-indent: -1em;
}

li:before {
  content: "☠";
  padding-right: 5px;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 230px;
  background-color: rgba(35, 0, 0, 0.9);
  color: #ffd1d1;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(35, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
/*  */
/* general styles for the gallery view */
/*  */

body {
    background-image:url('/images/background8.png');
    background-color: var(--bg);
    color: var(--txt);
    cursor: url('/graphics/Cursor1.png'), auto;
    font-family: monospace;
    font-size: 16px;
    text-align: center;
}

header div {
    margin-bottom: 1em;
}

a:has(img) {
    text-decoration: none;
}

hr {
    border:  solid;
    border-image:url('/graphics/dividers/dividergradient_01.gif');
    border-image-width: 100%;
}

/* tag button styles */
#tag-buttons {
    margin-top: 1em;
}

.tag, #reset {
    box-shadow: #1f1a1c;
border: 12px solid transparent;
border-image: url('/graphics/border1.gif')17 round;
border-image-outset: 6px;
    font-family: 'Adler';
    margin-bottom: 0.2em;
    padding: 2px;
    background-color: var(--bg);
    color: var(--accent);
}

.tag::before {
    content: "#";
}

/* change accent color for different tag categories */
.color-coded {--accent: rgb(180, 25, 25);}

/* styles for when a tag is selected */
.active {
    background-color: var(--accent);
    color: var(--bg);
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.item {
    width: calc(20vw - 1.5em);
    height: calc(20vw - 1.5em);
    overflow: hidden;
    cursor: url('/graphics/Cursor2.png'), auto;
    border-radius: 5px;
    filter:drop-shadow(10px 10px 10px #000) drop-shadow(10px 10px 10px #000);
}

.hidden, .item-info {
    display: none;
}

#to-top-btn {
    display: none;
    position: fixed;
    padding: 15px;
    bottom: 20px;
    right: 30px;
    z-index: 1;
    cursor: url('/graphics/Cursor2.png'), auto;
    border: 1px solid var(--accent);
    background-color: var(--bg);
    color: var(--accent);
}

footer {
    margin-top: 3em;
}


/*  */
/* styles for controlling how the gallery thumbnails look */
/*  */

/* defaults */
.item img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.filtered {filter:brightness(10%)!important;}

.filtered:hover {filter:brightness(30%)!important;}

.centered {
  color:#861a3b;text-shadow: -1px -1px 0 #270011, 1px -1px 0 #270011, -1px 1px 0 #270011, 1px 1px 0 #270011;
  font-family:'Adler';
  font-size:30px;
  position: absolute;
  top: 50%;
  left: 50%;
    transform: translate(-50%, -50%);}

.zoom img {object-fit: none;}

.crop img {object-fit: cover;}

.top-left img       {object-position: top left;}
.top-center img     {object-position: top center;}
.top-right img      {object-position: top right;}

.center-left img    {object-position: center left;}
.center-center img  {object-position: center;}
.center-right img   {object-position: center right;}

.bottom-left img    {object-position: bottom left;}
.bottom-center img  {object-position: bottom center;}
.bottom-right img   {object-position: bottom right;}


/*  */
/* Lightbox styles */
/*  */

#lightbox {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(10, 10, 10, 0.90);
    color: #98d5a8;;

    display: none;

    overflow-y: auto;
}

#close-btn {
    z-index: 2;
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 24px;
    color: #98d5a8;;
    cursor: url('/graphics/Cursor2.png'), auto;
}

#lightbox .flex {
    display: flex;
    gap: 2em;
    justify-content: space-between;

    height: 100vh;
    padding: 0 1em;
}

/* the main image in the lightbox */
#lightbox-img {
    margin: 1em 0;
    width: 60%;
}

#lightbox-img img {
    /* make it centered and as big as possible in the containing div */
    object-fit: scale-down;
    object-position: center;

    width: 100%;
    height: 100%;
    margin: 0 auto;
}

/* the info section of the lightbox */
#lightbox-info {
    display: flex;
    flex-direction: column;
    margin: auto 0 1em 0;
    width: 35%;
}

#lightbox-title, #lightbox-date, #lightbox-desc, #lightbox-tags {
    word-break: break-word;
    overflow-y: auto;
    scrollbar-width: thin;
    margin-bottom: 0.5em;
}

#lightbox-date, #lightbox-tags {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
}

#lightbox-desc {
    max-height: 30em;
    margin-bottom: 1.5em;
}
#lightbox-desc img {max-width: 45%;}
#lightbox-desc video, #lightbox-desc iframe {max-width: 90%;}

#lightbox-tags {
    margin-top: 0;
    padding-left: 0;
    list-style-type: none;
}

#lightbox-tags li {
    background-color: rgba(35, 0, 0, 0.9);
    color: #98d5a8;
    border-radius: 15px;
   border: 8px solid transparent;
   border-image: url('/graphics/border1.gif')17 round;
   border-image-outset: 4px;
    display: inline-block;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
}
#lightbox-tags li::before {content: ' #';}
#lightbox-tags li:nth-child(even) {
    background-color: rgba(35, 0, 0, 0.9);
     border: 8px solid transparent;
   border-image: url('/graphics/border1.gif')17 round;
   border-image-outset: 4px;
    display: inline-block;
}

/* styles for navigation buttons & progress tally */
#lightbox-nav {
    display: flex;
    justify-content: space-between;
    
    margin-top: 2em;
}

#prev-btn, #next-btn {
    padding: 0.5em 4em;
    cursor: url('/graphics/Cursor2.png'), auto;
    min-width: 10em;
    border: 14px solid transparent;
   border-image: url('/graphics/border1.gif')17 round;
   border-image-outset: 7px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0);
    color: #98d5a8;;
}

#progress {
    padding: 0.5em;
}

.text {width:90%;margin:auto;float:left!important;}
.tooltip {margin-left:-10%;}
/*  */
/* responsive section */
/*  */

/* dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: rgb(19, 19, 19);
        --txt: #ffd1d1;
        --accent: #c7ffb0;
    }
    .color-coded {--accent: #ffd1d1;}
}

/* scaling */
@media screen and (max-width: 1200px) {
    .item {
        width: calc(25vw - 2em);
        height: calc(25vw - 2em);
    }
    .tooltip {margin-left:-8%;}
}

@media screen and (max-width: 1000px) {
    .item {
        width: calc(33vw - 2em);
        height: calc(33vw - 2em);
    }
}


/* mobile view */
@media screen and (max-width: 800px) {
    /* gallery */
    
    .tooltip {margin-left: -5%;}
    .tooltip img {height:100px;}
    .tooltip .tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: rgba(35, 0, 0, 0.9);
  color: #ffd1d1;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}
    .item {
        width: calc(50vw - 2em);
        height: calc(50vw - 2em);
    }

    /* lightbox */
    #lightbox {
        overflow-y: scroll;
    }

    #lightbox .flex {
        margin-top: 0;
        flex-direction: column;
        height: auto;
        gap: 1em;
    }

    #close-btn {
        position: static;
        display: block;
        text-align: right;
        padding-top: 0.5em;
        padding-right: 0.5em;
    }

    #lightbox-img {
        width: 100%;
        height: 65vh;
    }
    
    #lightbox-img img {
        height: 100%;
    }

    #lightbox-info {
        margin-top: 0;
        width: 100%;
        gap: 0.5em;
    }

    #lightbox-title, #lightbox-date, #lightbox-desc, #lightbox-tags {
        margin-bottom: 0;
        max-height: none;
    }

    #lightbox-nav {
        order: -1;
        margin-top: 0;
    }
}