/* Скидання стилів */
html {
   overflow-x: hidden;
   width: 100%;
   height: 100%;
}

body {
   margin: 0;
   padding: 0;
   background-color: white;
   color: black;
   font-family: Arial, sans-serif;
   /* min-height: 100vh; */
   /* height: 100%; */
   display: flex;
   justify-content: center;
   align-items: center;
   overflow-x: hidden;
   cursor: url('/Cross.png') 40 40, auto;
   width: 100%;
   position: relative;
   /* overflow: hidden;  */
   /* background-image: url('GoldBack.gif');
     
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed; */
}
a,
button,
div,
.clickable {
   cursor: url('/Cross.png') 40 40, pointer;
}
.container {
   width: 100%;
   max-width: none;
   text-align: center;
   position: relative;
   overflow: visible;
   background-color: transparent;
   min-height: 100vh;
   height: auto;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   padding: 20px;
   box-sizing: border-box;
}

.header {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
}
@media 
 {
   
}
.header {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
   /* margin-top: 25%; */
}

.main-logo {
   width: 30vh;
   height: auto;
   margin-bottom: 0;
   background: none;
   position: relative;
   z-index: 2;
}

.title {
   width: 18%;
   height: auto;
   margin: 5px 0;
}

/* Единые стили для слогана */
.slogan {
   color: gold;
   display: flex;
   justify-content: center;
   gap: 15px;
   font-size: 80px;
   font-weight: 900;
   /* text-transform: uppercase; */
   font-family: 'Anton', sans-serif;
   letter-spacing: 1px;
   margin: 0;
   margin-bottom: 60px;
}

/* Text Section Styles */
.text-section {
   text-align: center;
   margin: 40px 0;
   padding: 30px;
   max-width: 865px;
   width: 90%;
   margin-left: auto;
   margin-right: auto;
   background: rgba(0, 0, 0, 0.3);
   border-radius: 15px;
   border: 2px solid rgba(255, 215, 0, 0.3);
   backdrop-filter: blur(10px);
}

.section-title {
   color: gold;
   font-size: 52px;
   font-weight: 900;
   font-family: 'Anton', sans-serif;
   letter-spacing: 3px;
   margin: 0 0 30px 0;
   text-transform: uppercase;
   text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
   animation: glow 2s ease-in-out infinite alternate;
}

.story-text {
   text-align: center;
   max-width: 800px;
   margin: 0 auto;
}

.story-text p {
   color: #fff;
   font-size: 18px;
   line-height: 1.6;
   margin: 15px 0;
   font-weight: 400;
   text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
   padding: 10px 0;
   padding-left: 0;
}

@keyframes glow {
   from {
      text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5);
   }
   to {
      text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.8);
   }
}

.section-description {
   color: #fff;
   font-size: 20px;
   line-height: 1.6;
   margin: 0;
   font-weight: 400;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.slogan span {
   opacity: 0;
   animation: fade-in-out 4s infinite;
}
/* 
/* Налаштування затримки для кожного слова */
.slogan span:nth-child(1) {
   animation-delay: 0s;
}
.slogan span:nth-child(2) {
   animation-delay: 1s;
}
.slogan span:nth-child(3) {
   animation-delay: 2s;
}
.slogan span:nth-child(4) {
   animation-delay: 3s;
} */

.progress-bar-container {
   width: 100%;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
}

.progress-bar {
   background-color: rgba(255, 215, 0, 0.1);
   width: 100%;
   height: 50px;
   margin: 0 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 5px;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.progress-bar:hover {
   background-color: rgba(255, 215, 0, 0.1);
}

.progress-text {
   color: gold;
   font-size: 23px;
   letter-spacing: 2px;
   font-weight: bold;
   transition: all 0.3s ease;
   text-align: center;
   width: 100%;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

@media screen and (max-width: 1024px) {
   .progress-text {
      font-size: 18px;
   }
}
@media screen and (max-width: 768px) {
   .progress-text {
      font-size: 23px;
   }
}

.progress-bar:hover .progress-text {
   letter-spacing: 3px;
}

.icons {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 15px;
   margin-top: 40px;
}

.icons img {
   width: 75px;
   height: 75px;
   transition: transform 0.2s;
}

/* .icons a:nth-child(3) img {
   width: 150px;
   height: 150px;
} */

.icons img:hover {
   transform: scale(1.1);
}

.icons a {
   text-decoration: none;
   display: inline-block;
   margin: 0 10px;
}

.icons img:hover {
   transform: scale(1.2);
}

@font-face {
   font-family: 'GoodTimingBD'; /* Назва шрифту */
   src: url('./GoodTimingBD.ttf') format('truetype'); /* Шлях до файлу */
   font-weight: normal; /* За потреби можна додати інші варіанти */
   font-style: normal;
}
h1 {
   font-family: 'GoodTimingBD', sans-serif;
}

/* Добавляем медиа-запросы для мобильных устройств */
@media screen and (max-width: 768px) {
   /* .main-logo {
      width: 100px;
   } */

   .title {
      width: 40%;
   }

   .slogan {
      font-size: 40px;
      gap: 10px;
      margin-bottom: 30px;
   }

   .progress-bar {
      width: 100%;
      height: 40px;
   }

   .progress-text {
      font-size: 10px;
   }

   .icons {
      gap: 15px;
      margin-top: 30px;
      flex-wrap: wrap; /* позволяет иконкам переноситься на новую строку */
   }

   .icons img {
      width: 39px;
      height: 39px;
   }

   /* .icons a:nth-child(3) img {
      width: 80px;
      height: 80px;
   } */

   .container {
      padding: 10px;
   }

   #tradingview_ogold {
      height: 400px;
   }

   .frame .tradingview-widget-container__widget {
      height: 600px;
   }

   .section-title {
      font-size: 36px;
      letter-spacing: 1px;
   }

   .section-description {
      font-size: 18px;
   }

   .story-text p {
      font-size: 18px;
      line-height: 1.6;
      padding-left: 0;
   }

   .text-section {
      padding: 20px;
      margin: 20px 0;
   }
}

/* Добавляем медиа-запрос для очень маленьких экранов */
@media screen and (max-width: 480px) {
   .container {
      /* padding: 10px; */
   }
/* 
   .main-logo {
      width: 80px;
   } */

   .title {
      width: 50%;
   }

   .slogan {
      font-size: 32px;
      gap: 8px;
      margin-bottom: 20px;
   }

   .progress-bar {
      height: 35px;
          text-align: -webkit-center;
    display: flex
;
    align-items: center;
    justify-content: center;

   }

   .progress-text {

      font-size: 8px;
   }

   .icons {
      gap: 10px;
   }

   .icons img {
      width: 33px;
      height: 33px;
   }

   /* .icons a:nth-child(3) img {
      width: 70px;
      height: 70px;
   } */

   .container {
      padding: 5px;
   }

   #tradingview_ogold {
      height: 300px;
   }

   .section-title {
      font-size: 28px;
      letter-spacing: 0.5px;
   }

   .section-description {
      font-size: 16px;
   }

   .text-section {
      margin: 20px 0;
      padding: 15px;
      width: 80%;
   }
}

/* Добавляем контейнер для частиц */
.particles {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
   overflow: hidden;
}

/* Создаем частицы */
.particle {
   position: absolute;
   width: 2px;
   height: 2px;
   background: rgba(255, 255, 255, 0.5);
   border-radius: 50%;
}

/* Генерируем 20 частиц с разными анимациями */
@for $i from 1 through 20 {
   .particle:nth-child(#{$i}) {
      left: random(100) * 1%;
      animation: particleFloat#{$i} #{random(15) + 10}s linear infinite;
   }

   @keyframes particleFloat#{$i} {
      0% {
         transform: translateY(-100%) rotate(0deg);
         opacity: 0;
      }
      20% {
         opacity: 0.5;
      }
      80% {
         opacity: 0.5;
      }
      100% {
         transform: translateY(100vh) rotate(360deg);
         opacity: 0;
      }
   }
}

.chart-section {
   width: 100%;
   max-width: none;
   margin: 60px auto 0;
   border: 2px solid gold;
   border-radius: 10px;
   overflow: hidden;
   box-shadow: 0 0 10px gold;
   box-sizing: border-box;
}

.tradingview-widget-container {
   width: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
}

#tradingview_ogold {
   width: 100%;
}

.copy-message {
   position: absolute;
   top: 100%;
   /* під текстом */
   left: 50%;
   transform: translateX(-50%);
   background: rgba(255, 215, 0, 0.9);
   /* золоте */
   color: black;
   padding: 8px 16px;
   border-radius: 5px;
   font-weight: bold;
   font-family: 'Anton', sans-serif;
   font-size: 16px;
   letter-spacing: 1px;
   opacity: 0;
   transition: opacity 0.3s ease;
   pointer-events: none;
   z-index: 99;
}

.copy-message.show {
   opacity: 1;
}

@media screen and (max-width: 480px) {
   .container {
      padding: 5px;
   }
   
   #tradingview_ogold {
      height: 300px;
   }
}

/* Large screens (1200px and up) */
@media screen and (min-width: 1200px) {
   .slogan {
      font-size: 80px;
   }
   
   .progress-bar {
      /* width: 80%; */
      height: 50px;
   }
   
   .icons img {
      width: 75px;
      height: 75px;
   }
}

/* Medium screens (768px to 1199px) */
@media screen and (max-width: 1199px) {
   .slogan {
      font-size: 60px;
      gap: 10px;
   }
   
   .progress-bar {
      width: 90%;
      height: 45px;
   }
   
   .icons img {
      width: 60px;
      height: 60px;
   }
   
   #tradingview_ogold {
      height: 520px;
   }
}

/* Small screens (576px to 767px) */
@media screen and (max-width: 767px) {
   .container {
      padding: 15px;
   }
   
   .slogan {
      font-size: 40px;
      gap: 8px;
      margin-bottom: 40px;
   }
   
   .progress-bar {
      width: 95%;
      height: 40px;
   }
   
   .icons {
      gap: 10px;
      margin-top: 30px;
   }
   
   .icons img {
      width: 45px;
      height: 45px;
   }
   
   #tradingview_ogold {
      height: 510px;
   }
}

/* Extra small screens (up to 575px) */
@media screen and (max-width: 575px) {
   html, body {
      overflow-y: auto !important;
      height: auto !important;
      min-height: 100vh;
   }
   .container {
      width: 100%;
      min-width: 0;
      max-width: 100vw;
      padding: 20px 5px 10px 5px;
      box-sizing: border-box;
      justify-content: flex-start;
      align-items: center;
   }
   .frame {
      width: 100%;
      min-width: 0;
      margin-top: 30px;
      margin-right: 0;
      box-sizing: border-box;
      justify-content: center;
      align-items: center;
   }
   .header {
      margin-top: 20px;
   }
   .main-logo {
      width: 40vw;
      max-width: 120px;
      margin-top: 0;
   }
   .progress-bar {
      width: 100%;
      height: 32px;
      padding: 0 4px;
   }
   .progress-text {
      font-size: 9px;
      padding: 0 2px;
      letter-spacing: 1px;
   }
   .icons {
      gap: 12px;
      margin-top: 18px;
   }
   .icons img {
      width: 28px;
      height: 28px;
   }
}

/* Mobile landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
   .container {
      padding: 10px;
   }
   
   .main-logo {
      width: 20vh;
   }
   
   .slogan {
      font-size: 25px;
      margin-bottom: 20px;
   }
   
   .progress-bar {
      height: 30px;
   }
   
   .icons img {
      width: 30px;
      height: 30px;
   }
   
   #tradingview_ogold {
      height: 250px;
   }
}

.chart-container {
   margin-top: 50px;
   width: 30vh;
}

/* Large screens (1000px and up) */
@media screen and (min-width: 1000px) {
   .chart-container {
      width: 100vh;
   }
}

.frame {
   margin-top: 50px;
   width: 90%;
   /* margin-right: 20px; */
   display: flex;
   justify-content: center;
   align-items: center;
   max-width: 875px;
   background: rgba(0, 0, 0, 0.3);
   backdrop-filter: blur(10px);
   border-radius: 15px;
   border: 2px solid rgba(255, 215, 0, 0.3);
   padding: 20px;
   margin: 20px 0;
   overflow: hidden !important;
}

@media screen and (min-width: 1000px) {
   .frame {
      /* width: 100vh; */
      margin-right: 0;
   }
}

.tradingview-widget-container2{
   width: 100%;
    margin-top: 80px;
}

/* Second frame styles */
.frame {
   overflow: hidden !important;
   border-radius: 15px;
   background: rgba(0, 0, 0, 0.3);
   backdrop-filter: blur(10px);
   border: 2px solid rgba(255, 215, 0, 0.3);
   padding: 20px;
   margin: 20px 0;
}

.frame iframe {
   overflow-y: hidden !important;
   overflow-x: hidden !important;
   max-height: none !important;
   height: 900px !important;
}

/* Additional scroll removal */
.frame {
   overflow: hidden !important;
}

.frame * {
   overflow: hidden !important;
}

/* Specific vertical scroll removal */
.frame {
   overflow-y: hidden !important;
   overflow-x: hidden !important;
}

.frame iframe {
   overflow-y: hidden !important;
   overflow-x: hidden !important;
   max-height: none !important;
   height: 900px !important;
}