/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family:"protestdemo";
    src: url("fonts/protestdemo.ttf") format("truetype");
}
@font-face {
    font-family:"retrofia";
    src: url("fonts/retrofia.ttf") format("truetype");
}
@font-face {
    font-family:"perfect";
    src: url("fonts/perfectdosvga.ttf") format("truetype");
}
@font-face {
    font-family:"gothicpixels";
    src: url("fonts/gothicpixels.ttf") format("truetype");
}


/* PAGE */
body {
    min-height: 100vh;
    font-family: "perfect", sans-serif;
    background-color: whitesmoke;
    color: black;
}
.crtoverlay {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    background-image: url("/images/crtfilter4.png");
    background-repeat: repeat;
    background-size: contain;
    opacity: 0.5;
}
.container {
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

/* MAIN PAGE START */
/* NAVIGATION (UNUSED) */
.top-nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.top-nav a {
    text-decoration: none;
}

/* LOGOS */
.logo-area {
    margin: 40px 0;
    text-align: center;
}
.logo-area h1 {
    font-family: "gothicpixels", sans-serif;
    font-size: 4rem;
    text-shadow: 5px 5px 0px rgb(184, 180, 180);
    white-space: pre;
}

/* MAIN CONTENT */
.content-grid {
    display: grid;
    grid-template-columns: 260px auto;
    align-items: center;
}
.top-section {
    display: grid;
    align-items: center;
}

/* ABOUT ME */
.updates-box {
    position: relative;
    height: 300px;
    border-radius: 5px;
    border: 1px solid rgb(145, 139, 126);
    background-color: lightgray;
    padding: 5px;
}
.corner-image1 {
  position: absolute;
  top: -20px; /* adjust to overlap the border */
  right: -20px;
  width: 60px; /* set size */
  height: auto;
  transform: rotate(20deg); 
}
.corner-image2 {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 100px;
  height: auto;
  transform: rotate(200deg); 
}
.corner-image3 {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 60px;
  height: auto;
  transform: rotate(-20deg);
}
.corner-image4 {
  position: absolute;
  bottom: -20px;
  left: -25px;
  width: 150px;
  height: auto;
}
.updates-box .scroll-content {
    height: 350px;
}
.imagerotate1:hover {
  transform: rotate(25deg);
}
.imagerotate2:hover {
  transform: rotate(205deg);
}
.imagerotate4:hover {
  transform: rotate(-5deg);
}


/* MAIN IMAGE */
.hero-image {
    justify-self: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    margin-left: 20px;
    margin-top: 20px;
}

/* ICON ROW */
.icon-row {
    display: flex;
    justify-content: center;
    gap: 40px;

    margin-top: 40px;
    padding-bottom: 40px;
}
.icon-button {
    width: 80px;
    height: 80px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
}
.icon-button:hover {
  transform: scale(1.05);
}

/* HOVER POPUP */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip-text {
  visibility: hidden;
  opacity: 1;
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  background-color: lightgray;
  border-radius: 7px;
  
  color: black;
  padding: 4px 6px;
  font-size: 15px;
  white-space: nowrap;
  z-index: 999;
}
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}
/* MAIN PAGE END */

/* ARTWORK PAGE START */
/* MASONRY GALLERY */
.artwork-gallery {
  column-count: 4;
  column-gap: 15px;
  width: 100%;
  padding: 30px 80px;
}
.gallery-item {
  display: inline-block; /* prevents items from breaking across columns */
  width: 100%;
  margin-bottom: 15px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}
/* ADJUSTMENT TO WIDTH */
@media (max-width: 768px) {
  .artwork-gallery {
    column-count: 2; /* drop to 2 columns on mobile */
  }
}

/* ART GALLERY/TAROT PAGE */
.tarot-button {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 50px auto;
  position: relative;
  width: 400px;
  height: 500;
  overflow: visible;
}
.tarot-button img {
  width: 225px;
  display: block;
  text-align: center;
}
.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translate(35%, 30%) scale(2.1);
}
.tarot-button:hover .hover {
  opacity: 1;
}
.tarot-button:hover .front {
  opacity: 0;
}
.tarot-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  padding: 30px 80px;
}
.tarot-gallery-item {
  break-inside: avoid;
  display: inline-block;
  position: relative;
  font-size: 1cqw;
  container-type: inline-size;
}
.tarot-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}
.tarot-label {
  position: absolute;
  bottom: .3%;
  left: 50%;
  color: black;
  padding: 5px 8px;
  transform: translateX(-50%);
  white-space: pre;
  font-family: "georgia", sans-serif;
}
.tarot-numeral {
  position: absolute;
  top: 2.7%;
  left: 50%;
  color: black;
  padding: 5px 8px;
  transform: translateX(-50%);
  white-space: pre;
  font-family: "georgia", sans-serif;
}
.empty-card {
  position: relative;
}
.empty-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(200, 200, 200, 0.4); /* adjust darkness */
  pointer-events: none; /* lets clicks pass through */
  z-index: 1;
}
@media (max-width: 768px) {
  .artwork-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 900px) {
    .container {
        width: 95%;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .stream-box {
        width: 100%;
        margin-left: 0;
    }
    .icon-row {
        flex-wrap: wrap;
    }
}
