html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: linear-gradient(135deg, #ffeef8 0%, #e3f2fd 100%);
}

.container {
  height: 100vh;
  width: 100vh;
  margin: 0 auto;
  text-align: center;
  display: none;
  position: relative;
  overflow: hidden !important;
}

.container.scrollable {
  overflow-y: auto !important;
}

/* Mobilde de sadece scrollable olduğunda scroll olsun */
@media screen and (max-width: 500px) {
  .container {
    overflow: hidden !important;
  }
  
  .container.scrollable {
    overflow-y: auto !important;
  }
}

.container div.six {
  top: 10vh;
  z-index: 1;
}

.container div.seven,
.container div.eight {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: 4.5rem;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  width: 600px;
  margin: 0 auto;
  border: 3px solid #d4a5d8;
  border-radius: 15px;
  padding: 10px;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  opacity: 0;
}

.text-box .fake-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  background: linear-gradient(135deg, #d4a5d8 0%, #b8a6d9 100%);
  padding: 5px 8px;
  border-radius: 8px;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  padding: 3px 5px;
  border-radius: 5px;
  display: inline-block;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 10rem;
}

.idea-6 span:nth-child(3),
.idea-6 span:nth-child(4) {
  font-size: 8rem;
}

/* Özür Bölümü */
.apology-section {
  position: absolute;
  left: 0;
  right: 0;
  top: 10vh;
  padding: 0 50px;
  opacity: 0;
  display: none;
}

.apology-section h2 {
  font-size: 3rem;
  color: #d4a5d8;
  margin-bottom: 30px;
}

.apology-text {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(212, 165, 216, 0.3);
}

.apology-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* Hafıza Kartları */
.memory-cards-section {
  position: absolute;
  left: 0;
  right: 0;
  top: 5vh;
  padding: 0 30px;
  opacity: 0;
  display: none;
}

.memory-cards-section h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, #d4a5d8 0%, #b8a6d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  text-align: center;
}

/* Anı Hikayeleri */
.memory-stories {
  max-width: 950px;
  margin: 0 auto 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.memory-story {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 255, 0.95) 100%);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 6px 25px rgba(212, 165, 216, 0.2);
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.memory-story:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(212, 165, 216, 0.3);
  border-color: rgba(212, 165, 216, 0.3);
}

.story-image-container {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-story:hover .story-image {
  transform: scale(1.1);
}

.story-content {
  flex: 1;
  padding-right: 10px;
}

.story-content h3 {
  font-size: 1.3rem;
  color: #b8a6d9;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.story-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Galeri Grid */
.memory-gallery {
  max-width: 950px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 1.3rem;
  color: #b8a6d9;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
}

.gallery-grid-item {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(212, 165, 216, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-grid-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 165, 216, 0.4);
  border-color: rgba(212, 165, 216, 0.5);
  z-index: 10;
}

/* Arkadaşlık Barları */
.friendship-bars-section {
  position: absolute;
  left: 0;
  right: 0;
  top: 8vh;
  padding: 0 30px;
  opacity: 0;
  display: none;
}

.friendship-bars-section h2 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #ff6b9d 0%, #ffa06b 50%, #ffd16b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.2);
}

.stat-bars {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 255, 0.95) 100%);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.15);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: visible;
}

.stat-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.25);
  border-color: rgba(255, 107, 157, 0.3);
}

.stat-gif {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  text-align: left;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.stat-bar-container {
  background: rgba(200, 200, 200, 0.2);
  height: 32px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-bar {
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stat-item:nth-child(1) .stat-bar {
  background: linear-gradient(90deg, #d4a5d8 0%, #b8a6d9 100%);
  box-shadow: 0 0 20px rgba(212, 165, 216, 0.5);
}

.stat-item:nth-child(2) .stat-bar {
  background: linear-gradient(90deg, #ffb3ba 0%, #ff8a94 100%);
  box-shadow: 0 0 20px rgba(255, 138, 148, 0.5);
}

.stat-item:nth-child(3) .stat-bar {
  background: linear-gradient(90deg, #bae1ff 0%, #a0d4ff 100%);
  box-shadow: 0 0 20px rgba(160, 212, 255, 0.5);
}

.stat-item:nth-child(4) .stat-bar {
  background: linear-gradient(90deg, #ffd4a3 0%, #ffb88c 100%);
  box-shadow: 0 0 20px rgba(255, 184, 140, 0.5);
}

.stat-bar.animated {
  width: var(--bar-width);
}

.six {
  position: relative;
}

.six img {
  display: inline-block;
  max-width: 100%;
  height: 450px;
}

.six .hat {
  position: absolute;
  width: 85px;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -5px;
}

.baloons img {
  display: inline-block;
  position: absolute;
}

.baloons img:nth-child(even) {
  left: -10%;
}

.baloons img:nth-child(odd) {
  right: -10%;
}

.baloons img:nth-child(3n + 0) {
  left: 30%;
}

.eight svg {
  width: 25px;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: -1;
}

.eight svg:nth-child(1) {
  top: 7vh;
  left: 5vw;
  fill: #d4a5d8;
}

.eight svg:nth-child(2) {
  top: 23vh;
  left: 35vw;
  fill: #b8d4a5;
}

.eight svg:nth-child(3) {
  top: 33vh;
  left: 23vw;
  fill: #a5d4cd;
}

.eight svg:nth-child(4) {
  top: 43vh;
  left: 57vw;
  fill: #a5b8d4;
}

.eight svg:nth-child(5) {
  top: 68vh;
  left: 7vw;
  fill: #d4a5a5;
}

.eight svg:nth-child(6) {
  top: 42vh;
  left: 77vw;
  fill: #d4c9a5;
}

.eight svg:nth-child(7) {
  top: 68vh;
  left: 83vw;
  fill: #e3bae8;
}

.eight svg:nth-child(8) {
  top: 86vh;
  left: 37vw;
  fill: #b8a6d9;
}

.eight svg:nth-child(9) {
  top: 94vh;
  left: 87vw;
  fill: #d4b8da;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-weight: lighter;
  font-size: 2rem;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  z-index: 3;
  cursor: pointer;
}

/* İleri Butonu */
.continue-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  background: linear-gradient(135deg, #d4a5d8 0%, #b8a6d9 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 165, 216, 0.5);
  transition: all 0.3s ease;
  font-weight: 600;
  display: none;
  animation: pulse 2s infinite;
}

.continue-btn.show {
  display: block;
}

.continue-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 165, 216, 0.7);
}

.continue-btn:active {
  transform: translateY(-1px);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Media Queries */
@media screen and (max-height: 1000px) {
  .six .hat {
    top: -36px;
  }
}

@media screen and (max-height: 800px) {
  .six .hat {
    width: 75px;
    top: -34px;
  }
}

@media screen and (max-height: 700px) {
  .six .hat {
    width: 70px;
    top: -32px;
  }
}

@media screen and (max-height: 850px) and (max-width: 450px) {
  .six .hat {
    width: 55px;
    top: -25px;
  }
}

@media screen and (max-width: 500px) {
  .container {
    width: 90%;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    right: 5px;
    bottom: -38px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 7rem;
  }

  .idea-6 span:nth-child(3),
  .idea-6 span:nth-child(4) {
    font-size: 5rem;
  }

  .six .hat {
    width: 55px;
    top: -25px;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: 1.4rem;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }

  /* Özür bölümü */
  .apology-section {
    padding: 0 15px;
    top: 8vh !important;
  }

  .apology-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .apology-text {
    padding: 20px;
  }

  .apology-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Hafıza kartları */
  .memory-cards-section {
    padding: 0 15px;
    top: 5vh !important;
  }

  .memory-cards-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .memory-stories {
    gap: 12px;
    margin-bottom: 15px;
  }

  .memory-story {
    flex-direction: column;
    text-align: center;
    padding: 12px;
    gap: 10px;
  }

  .story-image-container {
    width: 100%;
    height: 140px;
  }

  .story-content {
    padding-right: 0;
  }

  .story-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .story-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .gallery-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid-item {
    height: 100px;
  }

  /* Dostluk barları */
  .friendship-bars-section {
    padding: 0 15px;
    top: 8vh !important;
  }

  .friendship-bars-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .stat-bars {
    gap: 10px;
  }

  .stat-item {
    padding: 10px 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .stat-gif {
    width: 60px;
    height: 60px;
  }

  .stat-content {
    text-align: center;
    width: 100%;
  }

  .stat-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .stat-bar-container {
    height: 24px;
  }

  .stat-bar {
    font-size: 0.85rem;
    padding-right: 6px;
  }

  .continue-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    font-size: 1rem;
  }
}
