@font-face {
    font-family: 'Poppins';
    src: url('./fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; /* Обычный вес */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; /* Жирный текст */
    font-style: normal;
}
:root {
    --primary-color: #48704c;
    --secondary-color: #e9cbd9;
    --accent-color: #e74c3c;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px; 
    max-height: 100%; 
    object-fit: contain; 
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main content */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(8, 65, 0, 0.5), rgba(25, 63, 0, 0.5)), 
                url('/img/photo13_11zon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    position: relative;
    border-radius: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
}

.cta-button:hover {
    background-color: #8ec02b;
    transform: translateY(-3px);
}

/* .hero-image {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: url('/img/photo63_11zon.webp') no-repeat center center;
    background-size: cover;
    border-radius: 50%;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
} */

/* Features section */
.features {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* How to Play section */
.how-to-play {
    background-color: #f9f9f9;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* How to Play page specific styles */
.how-to-play-details,
.scoring-system,
.tips-and-strategies {
    margin-top: 2rem;
}

.how-to-play-details .feature-card,
.scoring-system .feature-card,
.tips-and-strategies .feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: 100%;
}

.scoring-system .feature-card ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.scoring-system .feature-card li {
    margin-bottom: 0.5rem;
}

/* Featured Players section */
.featured-players {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
}

.player-showcase {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.player-card {
    flex: 1;
    text-align: center;
}

.player-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.player-info {
    flex: 1;
}

.player-info ul {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.player-info li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Contact section */
.contact {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
}

#contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Contact page specific styles */
.contact-page {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-form h2 {
    margin-bottom: 1rem;
}

.form-notification {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-notification.success {
    display: block;
    background-color: var(--secondary-color);
    color: #fff;
}

.form-notification.error {
    display: block;
    background-color: var(--accent-color);
    color: #fff;
}

.submit-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    flex: 1;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.main-logo {
    max-width: 150px;
    height: auto;
}

.footer-section h3 {
    color: #e9cbd9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.25rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-section a:hover {
    color: #e9cbd9;
}

.footer-bottom {
    text-align: center;
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.age-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 600px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    text-align: center;
    padding: 1rem 0;
}

@media screen and (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
    }

    .footer-disclaimer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Ball Systems page specific styles */
.ball-systems {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
    margin-top: -3rem;
}

.table-container {
    margin-bottom: 2rem;
}

.table-container h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e6e6e6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 80px;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
        margin: 1rem 0;
    }

    .nav-links a::after {
        bottom: -5px;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .steps {
        flex-direction: column;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .player-showcase {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .footer-disclaimer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .small-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .how-to-play-details .feature-grid,
    .scoring-system,
    .tips-and-strategies .feature-grid {
        grid-template-columns: 1fr;
    }

    .contact-page {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .ball-systems {
        padding: 2rem 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #f4f4f4;
    }

    .features,
    .contact,
    .featured-players,
    .contact-page,
    .ball-systems {
        background-color: #2a2a2a;
    }

    .feature-card {
        background-color: #333;
    }

    input, textarea {
        background-color: #333;
        color: var(--text-color);
        border-color: #555;
    }

    table {
        background-color: #333;
    }

    th {
        background-color: var(--primary-color);
    }

    tr:nth-child(even) {
        background-color: #2c2c2c;
    }

    tr:hover {
        background-color: #3a3a3a;
    }

    th, td {
        border-bottom: 1px solid #444;
    }
}

/* Privacy Policy page styles */
.privacy-policy {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* Поддержка для более старых браузеров */
    hyphens: auto;
    overflow-x: hidden;

}

.privacy-policy h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.privacy-policy h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy p, .privacy-policy ul {
    margin-bottom: 1rem;
}

.privacy-policy ul {
    padding-left: 2rem;
}

@media (prefers-color-scheme: dark) {
    .privacy-policy {
        background-color: #2a2a2a;
    }
}

/* Age Confirmation Pop-up */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #f4f4f4;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-buttons {
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#confirmYes {
    background-color: var(--secondary-color);
    color: white;
}

#confirmYes:hover {
    background-color: #27ae60;
}

#confirmNo {
    background-color: var(--accent-color);
    color: white;
}

#confirmNo:hover {
    background-color: #c0392b;
}

.modal-message {
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    display: none;
}

/* Age Check Trigger */
#ageCheckTrigger {
    cursor: pointer;
}

/* Notification */
.notification {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles for modal and notification */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #333;
        color: #f4f4f4;
    }

    .notification {
        background-color: #c0392b;
    }
}

/* Age Check Button */
.age-check-button {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.age-check-button:hover {
    background-color: #27ae60;
}

.age-check-button .age-icon {
    margin-right: 10px;
}

