
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;

    background-image: url('img/bg.jpg'); /* Замените на путь к вашему изображению */
    background-size: cover; /* Изображение растягивается и обрезается, чтобы покрыть весь экран */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Не повторяем фон */
    background-attachment: fixed; /* Фиксируем фон при прокрутке (по желанию) */
}

nav {
    background-color: #ffffff;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

section {
    padding: 20px;
    margin-top: 80px;
}

#event-description {
    padding: 100px 20px 60px 20px;
}

section h1, section h2 {
    text-align: center;
    color: #333333;
    margin-bottom: 20px;
}

section h1 {
    font-size: 36px;
}

section h2 {
    font-size: 30px;
}

.emoji {
    font-size: 40px;
    margin-right: 10px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #222222;
}

section h2 {
    text-align: center;
    font-size: 30px;
    color: #333333;
    margin-bottom: 20px;
}


#event-description .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.event-text {
    flex: 1 1 500px;
    padding: 20px;
}

.event-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.event-text p {
    font-size: 18px;
    line-height: 1.6;
}

.event-image {
    flex: 1 1 400px;
    padding: 20px;
}

.event-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#instructions {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 60px 20px;
}

#instructions h2 {
    text-align: center;
    margin-bottom: 40px;
}

.instruction-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.instruction-block {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.instruction-block:hover {
    transform: translateY(-10px);
}

.instruction-block img {
    width: 60px;
    margin-bottom: 20px;
}

.instruction-block p {
    font-size: 18px;
    color: #555555;
}

#rules-info {
    background-color: #f9f9f9;
}

.rules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.rule-block {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin: 15px;
    flex: 1 1 500px;
    max-width: 550px;
    position: relative;
}

.rule-block img {
    width: 50px;
    position: absolute;
    top: -25px;
    left: 25px;
}

.rule-block h3 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.rule-block p {
    line-height: 1.6;
    font-size: 18px;
    color: #555555;
}

#calculator .calculator-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.calculator-block {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px 30px;
    margin: 15px;
    flex: 1 1 300px;
    max-width: 450px;
    display: flex;
    align-items: center;
}

.calculator-block input {
    flex: 1;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    margin-right: 10px;
}

.calculator-block span {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-right: 5px;
    white-space: nowrap; 
}

#participate {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

#participate h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
}


.invite-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}


.invite-row {
    display: flex;
    justify-content: center; 
    width: 100%;
    max-width: 1200px; 
    margin-bottom: 20px;
}

.invite-block {
    display: flex;
    width: 45%; 
    background-color: #ffffff; 
    box-sizing: border-box;
    padding: 0 20px 0 0;
    margin: 0 10px; 
    border-radius: 15px;
}

.invite-block img {
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    margin-right: 20px;
}

.invite-content {
    flex: 1; 
}

.invite-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.invite-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.invite-content button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease; 
}

.invite-content button:hover {
    background-color: #0056b3;
    transform: translateY(-3px); 
}

.invite-content button:active {
    background-color: #003f7f;
    transform: scale(0.95); 
}

.super-text {
    color: #ffffff !important; /* Яркий белый цвет */
    font-weight: 700; /* Чёткий жирный шрифт */
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),  /* глубокая чёрная тень */
        0 0 10px rgba(0, 0, 0, 0.6), /* дополнительное размытие */
        1px 1px 2px rgba(0, 0, 0, 0.8); /* лёгкий объём и читаемость */
}



.invite-content span.status {
    display: inline-flex; 
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.invite-content span .emoji {
    font-size: 16px; 
    display: inline-block; 
    line-height: 1;
    margin-right: 5px; 
    vertical-align: middle; 
}

#table {
    padding: 60px 20px;
    margin-top: 0;
    background-color: #fff;
}

#table h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
}

#table .table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}

#table table {
    width: 100%; 
    border-collapse: collapse; 
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
    max-width: 1500px;
    margin: 0 auto;
}

#table th, #table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#table td img {
    width: 25px; 
    height: 25px; 
    object-fit: cover; 
    margin-right: 20px;
}

#table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
}

#table tr:hover {
    background-color: #f9f9f9; 
}

#table td img {
    vertical-align: middle;
    margin-right: 10px;
}

/* Стили для статусов */
.status-success {
    color: #28a745;
    font-weight: bold;
}

/* 5. Footer */
footer {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 1200px) {
    .invite-row {
        flex-direction: column;
        align-items: center;
    }

    .invite-block {
        width: 80%;
        margin: 10px 0;
    }

    .invite-block img {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .invite-content {
        text-align: center;
    }

    .invite-content h3 {
        font-size: 22px;
    }

    .invite-content p {
        font-size: 20px;
    }

    .invite-content span.status {
        font-size: 18px;
    }
    
    .invite-content span .emoji {
        font-size: 18px; 
    }

    .invite-content button {
        font-size: 18px; 
    }
}

@media (max-width: 768px) {
    nav ul li {
        margin: 0 10px;
    }

    .event-text h1 {
        font-size: 28px;
    }

    .event-text, .event-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .instruction-block, .calculator-block {
        flex: 1 1 100%;
        max-width: none;
    }

    section {
        padding: 80px 20px 40px 20px;
    }
}