/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLOR THEME */
:root {
  --primary-color: #9945ff;
  --secondary-color: #ffe950;
  --tertiary-color: #14f195;
  --text-color: #340946;
  --btn-text: #fefefc;
  --btn-color: #14f195;
  --btn-color2: #f3e481;
  --btn-color3: #c9bb62;
  --btn-shadow: #340946;
}

@font-face {
  font-family: "bubble";
  src: url(media/fonts/Bobbleboddy.ttf);
}
@font-face {
  font-family: "bubble-light";
  src: url(media/fonts/Bobbleboddy_light.ttf);
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: "bubble", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(90deg, #be8cfa, #9945ff);
  width: 100%;
  overflow-y: scroll;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
p {
  font-size: 18px;
}

/* DESIGN */

#master {
  overflow: hidden;
  height: 100vh;
}

.container {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 1000px;
}

header {
  font-size: 36px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 24px;
  padding: 0 64px;
}
header .btn {
  font-size: 24px;
  display: flex;
  align-items: center;
  margin: 3px;
}
.top-nav {
  display: flex;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 60px;
  margin-right: 20px;
}

.main-body {
  width: 100%;
  min-height: 2000px;
  border: var(--btn-shadow) solid 2px;
  border-radius: 48px;
  display: flex;
  box-shadow: 10px 25px 50px rgb(0, 0, 0, 0.3);
}
.body-column {
  background-color: var(--primary-color);
  flex-grow: 0;
  flex-shrink: 0;
  max-width: 384px;
  border-left: var(--btn-shadow) solid 2px;
  border-right: var(--btn-shadow) solid 2px;
  background: linear-gradient(110deg, #be8cfa, #9945ff);
  position: relative;
  padding: 0 12px;
}
.side-column-left {
  background-image: repeating-linear-gradient(
    to right,
    #be8cfa,
    #be8cfa 80px,
    #a9ffdb 80px,
    #a9ffdb 160px
  );
  border-radius: 48px 0 0 48px;
}
.side-column-right {
  background-image: repeating-linear-gradient(
    to left,
    #be8cfa,
    #be8cfa 80px,
    #a9ffdb 80px,
    #a9ffdb 160px
  );
  border-radius: 0 48px 48px 0;
}
.side-column-left,
.side-column-right {
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "bubble-light", sans-serif;
}

.body3 h1 {
  margin-bottom: 48px;
}

.ca {
  background-image: linear-gradient(
    90deg,
    #9945ff 0%,
    #be8cfa 50%,
    #a9ffdb 51%,
    #14f195 100%
  );
  text-align: center;
  padding: 6px 12px;
  margin: 12px 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* height: 32px; */
  background-color: #a9ffdb;
  border: var(--btn-shadow) 2px solid;
  border-radius: 24px;
  font-size: 18px;
  /* font-family: "bubble-light", sans-serif; */
  z-index: 50;
}

.body3 .btn {
  font-size: 32px;
  min-width: 100px;
  min-height: 100px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.bottom-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer {
  margin-top: 48px;
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: linear-gradient(
    90deg,
    #9945ff 0%,
    #be8cfa 50%,
    #a9ffdb 51%,
    #14f195 100%
  );
  width: 65%;
  height: 32px;
  background-color: rgb(142, 226, 160);
  border: var(--btn-shadow) 2px solid;
  border-radius: 24px;
  box-shadow: 10px 25px 50px rgb(0, 0, 0, 0.3);
  font-size: 18px;
  font-family: "bubble-light", sans-serif;
}
.footer-left {
  margin-left: 8%;
}
.footer-right {
  margin-right: 8%;
}

/* buttons */

.btn-icon {
  width: 28px;
  height: auto;
  stroke: var(--btn-shadow);
  fill: var(--btn-shadow);
}

.btn {
  padding: 8px 16px;
  background-color: var(--btn-color);
  color: var(--text-color);
  border-radius: 40px;
  border: var(--btn-text) 2px solid;
}

.clickable {
  background-color: var(--btn-color);
  /* box-shadow: 0 3px var(--btn-shadow);
  transform: translateY(-3px); */
}

.clickable:hover {
  background-color: var(--btn-color2);
  /* box-shadow: 0 5px var(--btn-shadow);
  transform: translateY(-5px); */
  cursor: pointer;
}

.clickable:active {
  background: var(--btn-color3);
  /* box-shadow: 0 2px var(--btn-shadow);
  transform: translateY(-2px); */
}

/* CLOUDS */
.cls-1 {
  /* Ensure the SVG defines this gradient */
  stroke: #340946;
  stroke-width: 3px;
  filter: url(#shadow); /* Ensure the SVG defines this filter */
}
#cloud1 {
  fill: url(#cloudGradient);
  width: 75%;
  right: -80%;
}
#cloud2 {
  fill: url(#cloudGradient2);
  width: 75%;
  left: -80%;
}
#cloud3 {
  fill: url(#cloudGradient3);
  width: 85%;
  right: -90%;
  bottom: 280px;
}

.cloud {
  animation-name: cloudhover;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  overflow: visible;
  z-index: 100;
  position: absolute;
}

@keyframes cloudhover {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-40px);
  }
  50% {
    transform: translateX(0);
  }
  75% {
    transform: translateX(40px);
  }
}

/* TREATS */
.treats {
  width: 100%;
  text-align: center;
  margin: 64px 0;
}
.treats img {
  width: 50%;
}
#choco {
  position: absolute;
  bottom: -65px;
  right: 25%;
}

/* CAGE & STUFF */

#animation-container {
  position: fixed;
  width: 100%; /* Adjust based on your image size */
  height: 100vh;
  overflow: hidden; /* Keeps everything contained */

  z-index: 200;
  transition: opacity 0.5s ease;
}

#animation-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #be8cfa, #9945ff);
  z-index: -200;
  transition: opacity 1s ease;
}

.cage,
#parrot,
#beak,
#bird-body {
  position: fixed;
  width: 400px;
  height: auto;
  top: 50%; /* Center the images */
  left: 50%;
  transform: translate(-50%, -50%); /* Center alignment */
}
#beak {
  z-index: 10;
}
#bird-body,
#parrot {
  transition: all 1s ease-out;
  pointer-events: none;
}

@keyframes hover {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(-24px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(24px);
  }
}

#cage-closed {
  z-index: 10;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
#cage-open {
  transition: opacity 0.5s ease;
  cursor: pointer;
}
#cagefloor {
  opacity: 1;
  z-index: -10;
  transition: opacity 0.5s ease;
}

#sound-off,
#sound-on {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: auto;
  cursor: pointer;
}
#sound-off {
  display: none;
}

/* Media Queries for Mobile */
@media (max-width: 855px) {
  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .top-nav {
    margin-top: 18px;
  }
}

@media (max-width: 630px) {
  .side-column-left,
  .side-column-right {
    display: none;
  }
  .main-body {
    justify-content: center;
    padding: 10px 20px;
  }
  .body-column {
    width: 80%;
    border-radius: 48px;
    border: var(--btn-shadow) 2px solid;
    padding: 20px;
  }
  .container {
    width: 100%;
  }
  .ca {
    word-break: break-all;
    min-width: 110%;
  }
}

@media (max-width: 386px) {
  .body-column {
    width: 280px;
    min-width: auto;
  }
  .footer-right {
    display: none;
  }
}
