@font-face {
    font-family: 'RubikBubbles-Regular';
    src: url('../fonts/RubikBubbles-Regular.ttf') format('truetype');
}

/* Общие стили */
body {
    background-color: #d9e581;
    background-image: url('../images/paper-texture.jpg');
    background-blend-mode: multiply;
    margin: 0;
    padding: 0;
    cursor: url('../images/paw.cur'), auto;
    font-family: 'RubikBubbles-Regular', cursive;
    overflow-x: hidden;
}

/* Стили для шапки */
.site-header {
    background: linear-gradient(135deg, #2E8B57 30%, #8B4513 70%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    transition: transform 0.3s;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px dotted #431e04;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
    transition: all 0.3s;
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.main-nav ul {
    display: flex;
    gap: 40px;
    margin-left: 30px;
    list-style: none;
    padding: 0;
}

.main-nav ul li a {
    color: white !important;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #FFD700 !important;
    text-decoration: underline;
}

/* Стили поиска */
.search-box {
    display: flex;
    max-width: 600px;
    margin-left: 1.5cm;
}

.search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-button {
    background: #FFD700;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #E6C200;
}

.search-icon {
    color: #5D4037;
}

/* Кнопки авторизации */
.auth-buttons {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.btn-login:hover {
    background: #FFD700;
    color: #8B4513;
}

.btn-register {
    background: #FFD700;
    border: 2px solid #FFD700;
    color: #8B4513;
}

.btn-register:hover {
    background: #E6C200;
}

/* Заголовок */
.welcome-title {
    font-family: 'RubikBubbles-Regular', cursive;
    font-size: 48px;
    color: #5C3317;
    margin-bottom: 30px;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    text-align: center;
}

.main-img {
    border-radius: 50%;
    object-fit: cover;
    width: 400px;
    height: 400px;
    border: 3px dotted #8B4513;
    display: block;
    margin: 0 auto;
}

/* Кнопки Игры и Материалы */
.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.bear-button {
    display: inline-block;
    background-color: #2E8B57;
    color: white;
    font-family: 'RubikBubbles-Regular', cursive;
    font-size: 36px;
    padding: 25px 50px;
    margin: 20px;
    border-radius: 50px;
    border: 4px solid #5C3317;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bear-button:hover {
    background-color: #3CB371;
    transform: scale(1.05) translateY(-5px);
}

/* Контейнер для контента и сайдбара */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1800px;
    width: 95%;
    margin: 30px auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Сайдбар */
.premium-sidebar {
    width: 350px;
    background: rgba(255, 248, 225, 0.9);
    border-radius: 25px;
    padding: 25px;
    border: 4px dashed #8B4513;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    position: sticky;
    top: 20px;
    flex-shrink: 0;
}

.sidebar-title {
    color: #5C3317;
    font-size: 32px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 3px dotted #FFA500;
    padding-bottom: 10px;
    font-family: 'RubikBubbles-Regular', cursive;
}

/* Секция бесплатных игр */
#free-games {
    padding: 30px 40px;
    background: linear-gradient(135deg, #f9f3e9 0%, #f0e6d2 100%);
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.15);
    border: 2px solid #e8d9b6;
    width: 100%;
    box-sizing: border-box;
}

#free-games h2 {
    text-align: center;
    color: #8b5a2b;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.language-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.12);
    border: 1px solid #e8d9b6;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0e6d2;
}

.panel-header h3 {
    color: #5a3921;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.lang-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.themes-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 20px;
}

.theme-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgba(139, 90, 43, 0.22);
}

.theme-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.theme-info {
    padding: 15px 10px;
    text-align: center;
}

.theme-info h4 {
    color: #5a3921;
    font-size: 1.4rem;
    margin: 0;
}

.theme-link {
    text-decoration: none;
    display: block;
}

/* Подвал */
.site-footer {
    background-color: #3E2723;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-about {
    flex: 1;
}

.footer-text {
    margin-top: 15px;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-columns {
    flex: 2;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-col h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: white;
    text-decoration: none;
    line-height: 2;
}

.footer-col a:hover {
    color: #FFD700;
}

/* Модальное окно оплаты */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.payment-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Адаптация */
@media (max-width: 1200px) {
    .themes-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .premium-sidebar {
        width: 100%;
        position: static;
    }
    .themes-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .header-container {
        flex-direction: column;
    }
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    .auth-buttons {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .themes-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .welcome-title {
        font-size: 32px;
    }
    .main-img {
        width: 250px;
        height: 250px;
    }
    .bear-button {
        font-size: 24px;
        padding: 15px 30px;
    }
}