* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid red; */
}

body {
  font-family: Comic Sans MS;
  overflow-x: hidden;
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: url('images/wallpaper.gif'); 
}

.behind-title {
  position: absolute;
  top: 300px;
  left: 0;
  width: 100%;
  height: 550px;
  background-color: #000000;
  z-index: 2;
}

.main-container {
  position: relative;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 40px;
  overflow: hidden;
  z-index: 3;
}

.ABSOLUTE-CINEMA {
  color: #d3af37;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 100%;
  text-align: center;
}

.spoiler-warning {
  color: #ad00db;
  font-size: 15px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 100%;
  text-align: center;
}

.corner-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none; 
}

.left-corner, .right-corner {
  position: absolute;
  top: -20px;
  width: 375px;
  height: auto;
}

.left-corner {
  left: -15px;
}

.right-corner {
  right: -15px;
  transform: scaleX(-1);
}

.purple-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px;
  z-index: 3;
  pointer-events: none;
  /* display: none; */
}

.video-selector {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(123, 0, 155, 0.5);
  padding: 10px 20px;
  border-radius: 15px;
  border: 2px solid #D3AF37;
}

.selector-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.upper-btn {
  color: #D3AF37;
  font-weight: bold;
  padding: 12px 15px;
  border: 2px solid #D3AF37;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: Comic Sans MS;
  line-height: 1;
}

.video-options {
  background: #000000;
  color: #D3AF37;
  border: 1px solid #D3AF37;
  padding: 5px 10px;
  font-family: Comic Sans MS;
}

.nav-btn {
  background: #000000;
  color: #d3af37;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: #ffd700;
  color: #000000;
  transform: scale(1.1);
}

.video-container {
  position: relative;
  top: 210px;
  width: 70%;
  margin: 0 auto;
  margin-bottom: 250px;
}

.video-container iframe {
  width: 100%;
  height: 550px;
  border: none;
  display: block;
}

.main-title {
  position: relative;
  z-index: 4;
}

.main-title > h1, .quote {
  font-weight: bold;
}

.main-title > h1 {
  font-size: 50px;
  text-shadow: 
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff;
  color: #D3AF37;
}

.quote {
  color: #d3af37;
  padding: 5px;
}

.main-line {
  position: relative;
}

.hanging-stars {
  position: absolute;
  top: -65px;
  left: 35px;
  width: 95%;
  height: 160px;
  object-fit: cover; 
  z-index: 3;
  filter: brightness(5);
  pointer-events: none;
}

.top-line {
  background: linear-gradient(0deg, #520068, #000000);
  height: 45px;
}

.middle-line {
  background-color: #d3af37;
  height: 90px;
  box-shadow: inset 0 -20px 15px 5px rgb(0, 0, 0);
}

.middle-line img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.bottom-line {
  background-color: #000000;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center; 
}

.underline {
  height: 670px;
  background-image: url('images/dream.gif');
}

.nav-bar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 0 10px;
}

.nav-btn {
  color: #D3AF37;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 15px;
  border: 2px solid #D3AF37;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: Comic Sans MS;
  font-size: 16px;
  white-space: nowrap;
  flex: 1;
  max-width: 180px;
  min-width: 120px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  line-height: 1;
}

.nav-btn:hover, .upper-btn:hover {
  background: #D3AF37;
  color: #000000;
  transform: scale(1.05);
}

.star-btn {
  border: none !important;
  background: transparent !important;
  font-size: 24px;
  padding: 5px 10px !important;
  flex: 0 0 auto;
  max-width: 50px;
}

.star-btn:hover {
  background: transparent !important;
  color: #ffd700 !important;
  transform: scale(1.2) rotate(15deg);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.content-area {
  width: 100%;
  height: 630px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  padding: 30px;
  box-sizing: border-box;
}

.content-area .special-left-block,
.content-area .special-center-block,
.content-area .special-right-block {
  flex: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.default-content {
  color: #d3af37;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  margin: 0 auto;
}

.about-center-block,
.special-center-block {
  color: #d3af37;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #ffff8c30;
  height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.special-center-block {
  color: #ac403f;
}

.about-center-block ul {
  list-style-type: none;
}

.special-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.special-left-block,
.special-center-block,
.special-right-block {
  height: 100%;
}

.special-left-block,
.special-right-block {
  flex: 1;
  position: relative;
}

.special-center-block {
  flex: 2;
  min-width: 300px; 
}

.image-half {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.special-left-block .image-half {
  background-image: url('images/poster.jpg');
  background-position: left center;
}

.special-right-block .image-half {
  background-image: url('images/poster.jpg');
  background-position: right center;
}

.likes-center-block,
.activities-center-block {
  color: #d3af37;
  text-align: center;
  background-color: #ffff8c30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;                         
  padding: 30px;
  text-align: center;
}

.likes-top-block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding: 10px 0;
}

.likes-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffff8c30;
  padding: 25px;
  width: 100%;
}

.activities-wrapper {
  position: relative;
  width: 800px;
  height: 630px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.activities-top-block,
.activities-bottom-block {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.bg-row {
  display: flex;
}

.bg-row img {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-height: 100%;
}

.end-line {
  background-color: #d3af37;
  height: 90px;
  position: relative;
}

.end-line img {
  width: 100%;
  height: 100%;
  opacity: 0.3;
  display: block;
  position: absolute;
  top: -65%;
}

.char-line {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
  position: relative;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 20px 0;
  gap: 10px;
}

.char-line img {
  width: 100px;
  height: 120px;
  object-fit: contain;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .nav-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-btn {
    font-size: 14px;
    padding: 10px 12px;
    min-width: 100px;
    height: 40px;
  }
  .star-btn {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin-bottom: 5px;
  }
}