@font-face {
    font-family: "OpenSans";
    src: url(https://fantasysporthobby.com/wp-content/themes/fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

:root{
    --accent-color: #4cff4c;
    --accent-color-transparent: #ffca8b38;
}



* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "OpenSans";
    overflow-x: hidden;

}

header {
    display: flex;
    position: absolute;
    top: 0;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: transparent;
    width: 100vw;
    z-index: 2;
}
button{
    margin-left: 80px;
        font-weight: 700;
        color: white;
        text-decoration: none;
        padding: .8em 1em calc(.8em + 3px);
        border-radius: 3px;
        background: #4cff4c;
        box-shadow: 0 -3px #4cff4c inset;
        transition: 0.2s;
      } 
button:hover { background: #4cff4c; }
button:active {
        background: #4cff4c;
        box-shadow: 0 3px #4cff4c inset;
      }

.logo {
    font-size: 24px;
    color: var(--accent-color);
    filter: brightness(1.7);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

.burger {
    position: relative;
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 1px;
    background-color: #fff;
    transition: 0.4s;
}

.active div:nth-child(1) {
    transform: rotate(-60deg) translate(-5px, 1px);
}

.active div:nth-child(2) {
    opacity: 0
}

.active div:nth-child(3) {
    transform: rotate(60deg) translate(-7px, -2px);
}


/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0px;
        left: 0;
        width: 100%;
        background-color: #1c1c1c;
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: flex;
        z-index: 10;
    }

    .nav-links.active {
        display: flex;
        padding-top: 100px;
    }
}
main {
    min-height: 65vh;
    width: 100vw;
    display: flex;
    padding-top: 100px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1; /* Забезпечує, що контент main буде над псевдоелементом */
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("wp-content/themes/img/ban1.png"); /* Додаємо фон */
    background-size: cover;
    background-position: center;
    filter: brightness(50%); /* Затемнює тільки фон */
    z-index: 0; /* Розміщує псевдоелемент під контентом main */
    pointer-events: none; /* Забезпечує клікабельність елементів */
}


footer {
    min-height: 40vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 100px;
    flex-wrap: wrap;
    z-index: 1;
    transform: translateY(-100px);
    position: absolute;
    overflow: hidden;
    justify-content: center;
}

.footer_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer_links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer_links li {
    list-style: none;
}

.footer_links li a {
    color: #ffffff;
    text-decoration: none;
    /*font-weight: 600;*/
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("wp-content/themes/img/ban2.png");
    background-size: cover;
    filter: brightness(50%); /* Затемнює тільки background-image */
    z-index: -1; /* Розміщує псевдоелемент за контентом footer */
}
.form__title {
    color: var(--black);
    font-size: 32px;
    /*font-weight: 900;*/
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.phone-form {
    width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    height: 200px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.content {
    background: white;
    min-height: 20vh;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 150px;
    padding-left: 5vw;
    padding-right: 5vw;
    border-top-left-radius: 50% 50px;
    border-top-right-radius: 50% 50px;
    border-bottom-left-radius: 50% 50px;
    border-bottom-right-radius: 50% 50px;
    transform: translateY(-50px);
    border-top: 10px solid var(--accent-color);
    border-bottom: 10px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.content-1 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}
.content-3 {
    margin-top: 100px;
}

.content-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.content-2 .content-title {
    font-size: 30px;
    color: var(--accent-color);
    /*font-weight: 800;*/
}

.content-1 img {
    max-width: 80%;
    width: 500px;
    border-radius: 25px;
}

.content-1 p {
    max-width: 500px;
    font-size: 20px;
    text-align: center;

}

.containers {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;

}

.container-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 90%;
}

.container img {
    max-width: 100%;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.step {
    text-align: left;
    max-width: 80%;
    font-size: 20px
}

.step p span {
    /*font-weight: 700;*/
    margin-bottom: 10px;
}

.content-1 p span {
    color: var(--accent-color);
    font-size: 30px;
    /*font-weight: 800;*/
    margin-bottom: 10px;
}

.phone-form label {
    display: block;
    margin-bottom: 12px;
    /*font-weight: bold;*/
    color: #333;
    font-size: 18px;
}

.phone-form input {
    width: calc(100% - 40px);
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background-image: url('https://fantasysporthobby.com/img/india.png');
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 50px;
    font-size: 16px;
}

.phone-form a {
    text-decoration: none;
    border: none;
    background: var(--accent-color);
    color: #fff;
    border-radius: 25px;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.phone-form a:hover {
    background: #0056b3;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .phone-form {
        width: 95%;
        margin: 15px auto;
        padding: 15px;
    }

    .phone-form a {
        padding: 12px 20px;
    }

    .phone-form input {
        width: calc(100% - 50px);
        padding: 12px 20px;
        margin-bottom: 10px;
        background-position: 10px center;
        padding-left: 50px;
    }

    .phone-form label {
        margin-bottom: 10px;
    }
}

.logo img {
    width: 200px;
    height: auto;
}


.title {
    max-width: 600px;
    min-width: 50%;
    padding: 5%;
    text-align: center;
    color: white;
    gap: 10px;
    z-index: 2;
    /*font-weight: 700;*/
}

.title h1 {
    font-size: 55px;
}
.title h2 {
    font-size: 30px;
}

.blocks {
    display: flex;
    max-width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
}

.block {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    gap: 30px;
    justify-content: space-around;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    height: 70%;
}
.block-review{
    width: 400px;
}

.block-upper {
    background-color: var(--accent-color-transparent);
    height: 110%;
}

.block-icon {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-icon img {
    height: 35px;
    width: 35px;
    border-radius: 0%;
}

.block-title {
    /*font-weight: 700;*/
}

.disclaimer {
    padding: 20px 30px;
    color: white;
    text-align: center;
    max-width: 800px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.disclaimer-title {
    font-size: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    align-self: center;
    /*font-weight: 700;*/
}
.disclaimer-title img{
    height: 50px;
    width: auto;
    border-radius: 15px;
}

footer p {
    color: white
}

details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
summary {
    /*font-weight: bold;*/
    cursor: pointer;
    padding: 10px;
    background-color: #f7f7f7;
    transition: background-color 0.3s ease;
}
summary:hover {
    background-color: #e0e0e0;
}
p {
    padding: 10px;
    margin: 0;
}

/* Animation */
details[open] summary ~ * {
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth expand/collapse animation */
details > p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

details[open] > p {
    max-height: 500px; /* Arbitrary large max-height for open state */
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Hidden initially */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: linear-gradient(145deg, #0f0f0f, #191919);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px var(--accent-color), inset 0 0 10px var(--accent-color);
  text-align: center;
  max-width: 400px;
  width: 100%;
  animation: neonGlow 2s ease-in-out infinite alternate;
}
.popup-content h2 {
  font-size: 24px;
  color: #0ff;
  margin-bottom: 10px;
}
.popup-content p {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 16px;
}
.buttons {
  display: flex;
  justify-content: space-around;
}
.btn {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid var(--accent-color);
  background-color: transparent;
  color: #0ff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn:hover {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}
.no-btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.no-btn:hover {
  background-color: #0ff;
  color: #fff;
}
@keyframes neonGlow {
  0% {
      box-shadow: 0 0 20px #0ff, 0 0 30px var(--accent-color);
  }
  100% {
      box-shadow: 0 0 40px var(--accent-color), 0 0 60px #0ff;
  }
}