:root {
  --primary: #6a0dad;
  --light-primary: #d8bfd8;
  --accent-gold: #ffd700;
  --accent-green: #b8860b;
  --text-light: #ffffff;
  --text-dim: #f0f0f0;
  --font-body: "Courier New", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(135deg, 
    #ffeaa7 0%,    /* Pastel yellow */
    #fab1a0 15%,   /* Pastel orange */
    #fd79a8 30%,   /* Pastel pink */
    #e17055 45%,   /* Pastel coral */
    #a29bfe 60%,   /* Pastel purple */
    #74b9ff 75%,   /* Pastel blue */
    #00cec9 90%,   /* Pastel teal */
    #55a3ff 100%   /* Pastel light blue */
  );
  background-attachment: fixed;
  min-height: 100vh;
  color: #333;
}

header {
  background: var(--primary);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  padding: 20px;
  text-align: center;
}

header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
}

/* Cat Face Styling */
.cat-face {
  position: relative;
  display: inline-block;
  height: 2.5rem;
  width: 2.5rem;
  order: -1;
}

.cat-head {
  position: relative;
  width: 2.5rem;
  height: 2rem;
  background: var(--text-light);
  border-radius: 50% 50% 45% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
}

.cat-ears {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1rem;
}

.ear-left,
.ear-right {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.8rem solid var(--text-light);
  border-radius: 0;
}

.ear-left {
  left: -0.1rem;
  transform: rotate(-25deg);
}

.ear-right {
  right: -0.1rem;
  transform: rotate(25deg);
}

.eye {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: #333;
  border-radius: 50%;
  top: 0.5rem;
}

.left-eye {
  left: 0.7rem;
}

.right-eye {
  right: 0.7rem;
}

.nose {
  position: absolute;
  width: 0.15rem;
  height: 0.12rem;
  background: #ff69b4;
  border-radius: 50% 50% 50% 50%;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
}

.mouth {
  position: absolute;
  width: 0.5rem;
  height: 0.25rem;
  border: 2px solid #333;
  border-top: none;
  border-radius: 0 0 50% 50%;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
}

.whiskers {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 0.6rem;
}

.whisker {
  position: absolute;
  width: 1.5rem;
  height: 1px;
  background: #333;
  border-radius: 1px;
}

.whisker-left-1 {
  left: -0.2rem;
  top: 0.1rem;
  transform: rotate(30deg);
}

.whisker-left-2 {
  left: -0.2rem;
  top: 0.3rem;
  transform: rotate(0deg);
}

.whisker-right-1 {
  right: -0.2rem;
  top: 0.1rem;
  transform: rotate(-30deg);
}

.whisker-right-2 {
  right: -0.2rem;
  top: 0.3rem;
  transform: rotate(0deg);
}

.whisker-left-3 {
  left: -0.2rem;
  top: 0.5rem;
  transform: rotate(-30deg);
}

.whisker-right-3 {
  right: -0.2rem;
  top: 0.5rem;
  transform: rotate(30deg);
}

/* Cat Paw Styling */
.cat-paw {
  position: relative;
  display: inline-block;
  height: 3.5rem;
  width: 2.8rem;
  order: 2;
  align-self: flex-start;
  margin-top: -0.5rem;
}

.paw-pad-main {
  position: absolute;
  width: 1.8rem;
  height: 1.4rem;
  background: var(--text-light);
  border: 2px solid var(--accent-gold);
  border-radius: 50% 50% 60% 60%;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
}

.paw-toe {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--text-light);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
}

.paw-toe-1 {
  top: 1rem;
  left: 0.4rem;
}

.paw-toe-2 {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.paw-toe-3 {
  top: 1rem;
  right: 0.4rem;
}

.carousel-container {
  position: relative;
  width: 98vw;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  position: relative;
}

.carousel-slide {
  min-width: 450px;
  height: 350px;
  margin-right: 10px;
  border: 4px solid var(--accent-gold);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.modal:not([style*="display: none"]) ~ * .carousel-button {
  display: none;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-button.prev {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}

.lists {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin: 80px 10px;
}

.frame {
  background: var(--text-light);
  border: 8px solid var(--light-primary);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 600px;
  min-width: 500px;
  text-align: center;
}

.frame h3 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.frame ul,
.frame ol {
  text-align: left;
  padding-left: 30px;
  font-size: 1.3rem;
  line-height: 1.8;
  margin: 25px 0;
}

.frame li {
  margin-bottom: 8px;
}

.frame figure {
  margin: 30px 0;
}

.frame figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 4px solid var(--accent-gold);
}

.frame figcaption {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #555;
}

footer {
  background: var(--primary);
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: var(--text-light);
  padding: 30px;
  width: 96vw;
  height: 90vh;
  overflow: auto;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.modal-description {
  margin: 12px 0 4px;
  color: #555;
}

.modal-credit {
  margin: 0;
  font-size: 0.9em;
  color: #777;
}

.modal-credit a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.modal-credit a:hover {
  border-bottom: 1px solid var(--primary);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-green);
  border: none;
  color: var(--text-light);
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .carousel-slide {
    min-width: 200px;
    height: 160px;
  }
  
  .carousel-container {
    margin: 10px auto;
    width: 99vw;
  }
  
  .lists {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 40px 10px;
  }
  
  .frame {
    max-width: 95%;
    min-width: unset;
    width: 100%;
    padding: 35px;
  }
  
  .frame h3 {
    font-size: 1.4rem;
  }
  
  .frame ul,
  .frame ol {
    font-size: 1.2rem;
    padding-left: 25px;
  }
  
  .frame figure img {
    height: 240px;
  }
  
  .frame figcaption {
    font-size: 1.1rem;
  }
  
  .modal-content {
    width: 98vw;
    height: 95vh;
    padding: 15px;
  }
  
  .modal-content img {
    max-height: 75vh;
  }
  
  .close-btn {
    font-size: 16px;
    padding: 6px 10px;
  }
}
