/* ========================== */
/*   GLOBAL PAGE STYLING      */
/* ========================== */

body.things-page {
    margin: 0;
    padding: 0;
    background-color: rgba(217, 237, 247, 1); /* same blue */
    font-family: sans-serif;
    cursor: url('alien.png') 16 16, auto;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    box-sizing: border-box;
}

/* ========================== */
/*        TITLE STYLES        */
/* ========================== */

.things-title {
    font-size: 2.3rem;
    color: rgba(84, 144, 196, 1);
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 40px;
    animation: gentleFloat 4s ease-in-out infinite;
}

/* ========================== */
/*  ITEMS: ALTERNATING ROWS   */
/* ========================== */

.items-container {
    width: 80%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.thing-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left image */
.thing-row.left {
    flex-direction: row;
}

/* Right image */
.thing-row.right {
    flex-direction: row-reverse;
}

/* Image styling */
.thing-image {
    width: 45%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Description box */
.thing-description {
    width: 55%;
    color: rgb(60, 90, 120);
    font-size: 1.1rem;
    line-height: 1.6;
}

.thing-description h2 {
    margin-top: 0;
    color: rgb(70,120,160);
    font-size: 1.5rem;
}

/* ========================== */
/*       HOME BUTTON          */
/* (copied from blog.css)     */
/* ========================== */

.home-button {
    text-decoration: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    text-align: center;
    z-index: 10;
}

.home-icon {
    width: 80px;
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: url('alien.png') 18 30, auto;
}

.home-label {
    display: block;
    font-size: 1rem;
    color: rgba(84, 144, 196, 0.6);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: lowercase;
    cursor: url('alien.png') 18 30, auto;
    user-select: none;
}

/* Floating wrapper */
.float-wrapper {
    display: inline-block;
    animation: gentleFloat 5s ease-in-out infinite;
}

.float-wrapper:hover .home-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Image carousel */


.image-carousel {
    position: relative;
    width: 45%;
    max-width: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.small-carousel img {
    height: 500px;
}


.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
}



.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 2rem;
    padding: 0 10px;
    cursor: url('alien.png') 18 30, auto;
    border-radius: 8px;
}

.prev { left: 10px; }
.next { right: 10px; }



/* ========================== */
/*  FLOATING ANIMATION        */
/* ========================== */

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


@keyframes tiltSpin {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-12deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(12deg); }
  100% { transform: rotate(0deg); }
}

/* ========================== */
/*   RESPONSIVE BEHAVIOR      */
/* ========================== */

@media (max-width: 850px) {
    .thing-row {
        flex-direction: column !important;
        text-align: center;
    }

    .thing-image, .thing-description {
        width: 100%;
    }
}

/* LOADING SCREEN */

#loader {
  position: fixed;
  inset: 0;
  background: rgba(217, 237, 247, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-img {
  width: 120px;
  margin-bottom: 20px;
  animation: tiltSpin 2s ease-in-out infinite;

}

#loader p {
  font-size: 1.1rem;
  color: rgb(84, 144, 196);
  letter-spacing: 2px;
}


