/*
Theme Name: Reboot Child
Template: reboot
*/

/* Import parent theme styles */
@import url("../reboot/style.css");

/* General styles */
body {
    color: #ffffff;
    background-color: #141c2f;
}

.site-content {
    background-color: #090f1f;
    margin-top: -1px;
    padding-top: 0;
}

.entry-content {
    margin-top: 0;
}

.site-header {
    background-color: #1c263b;
    margin-bottom: 0;
}

.site-header, .site-header a, .site-header .pseudo-link {
    color: #279aee;
}

#content.site-content {
    padding-top: 0;
}

/* Hide standard title */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom header styles */
.custom-header-layout, .site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #141c2f;
    padding: 10px 20px;
    position: relative;
}

.site-branding {
    flex: 0 0 auto;
}

/* Horizontal menu with scrolling */
.horizontal-menu {
    flex: 1 1 auto;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    margin: 0 20px;
}

.horizontal-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
}

.horizontal-menu .menu {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content; /* Important for scrolling */
}

.horizontal-menu .menu-item {
    margin: 0 15px;
    white-space: nowrap;
}

.horizontal-menu .menu-item a {
    color: #ffa000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.horizontal-menu .menu-item a:hover {
    color: #ffffff;
}

/* Registration button */
.registration-button {
    flex: 0 0 auto;
}

/* Main button styles */
.button-primary,
.button-secondary,
.button_1697966261100,
.button_1698937665386,
.button_1697974109598,
.button_1699109676029,
.button_1699109676030,
.review-submit-btn,
.category-game-button,
.error-home-button,
.error-category-button,
.brand-card-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 23px;
    font-size: 16px;
    padding: 10px 40px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    background-color: #22b15f;
    color: #ffffff;
}

.button-primary:hover,
.button-secondary:hover,
.button_1697966261100:hover,
.button_1698937665386:hover,
.button_1697974109598:hover,
.button_1699109676029:hover,
.button_1699109676030:hover,
.review-submit-btn:hover,
.category-game-button:hover,
.error-home-button:hover,
.error-category-button:hover,
.brand-card-button:hover {
    background-color: #1a9c4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 177, 95, 0.2);
}

.button-secondary,
.error-category-button {
    background-color: #31a0f4;
}

.button-secondary:hover,
.error-category-button:hover {
    background-color: #2286d1;
    box-shadow: 0 5px 15px rgba(49, 160, 244, 0.2);
}

/* Small button size */
.button-sm,
.button_1697974109598 {
    font-size: 14px;
    padding: 8px 20px;
}

/* Large button size */
.button-lg {
    font-size: 18px;
    padding: 12px 50px;
}

/* For backward compatibility - support old button classes */
.button_1697966261100,
.button_1698937665386,
.button_1697974109598,
.button_1699109676029,
.button_1699109676030 {
    display: inline-block;
    text-decoration: none;
}

/* Banner styles */
.osnovaban {
    text-align: center;
    padding: 30px 15px;
    margin: 0 auto;
    background-color: transparent;
}

.ekzsgame {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.poluvyp {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.knopaperehod {
    margin-top: 15px;
}

/* Games grid styles */
.game {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
    justify-content: flex-start;
}

.nazvgame {
    padding: 10px;
    text-align: center;
    flex: 0 0 25%;
    max-width: 25%;
}

.su-column-inner {
    background-color: #1c263b;
    padding: 15px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.su-column-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.igroizo {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 5px; /* Reduce top margin for image */
}

.crashigra {
    font-weight: bold;
    font-size: 18px;
    color: #31a0f4;
    margin: 0 0 5px 0; /* Reduce bottom margin for game title */
}

.pereyti {
    margin-top: 10px;
}

/* Content styles */
.table-of-contents {
    background-color: #1c263b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.table-of-contents__header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #31a0f4;
}

.table-of-contents__list {
    padding-left: 20px;
}

.table-of-contents__list a {
    color: #ffffff;
    text-decoration: none;
}

.table-of-contents__list a:hover {
    color: #31a0f4;
}

/* Rating block styles */
.rating-box {
    background-color: #1c263b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.rating-box__header {
    font-weight: bold;
    margin-bottom: 10px;
}

.ico-star {
    color: #31a0f4;
}

/* Comments block styles */
.comments-area {
    background-color: #1c263b;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

#reply-title {
    color: #31a0f4;
    font-weight: bold;
    margin-bottom: 15px;
}

.comment-form input[type="text"],
.comment-form textarea {
    background-color: #141c2f;
    border: 1px solid #273046;
    color: #ffffff;
    border-radius: 4px;
}

.comment-form input[type="submit"] {
    background-color: #31a0f4;
    color: #ffffff;
    border: none;
    border-radius: 23px;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #2286d1;
}

/* Full width page styles */
.full-width {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    flex: 0 0 100%;
}

/* Hide sidebar on full-width page */
.full-width + .widget-area {
    display: none;
}

/* Full width content container */
.full-width .entry-content {
    max-width: 1200px; /* Increase max content width */
    margin: 0 auto; /* Center content */
    padding: 0 15px; /* Add side padding */
}

/* Enhance banner styles */
.main-banner {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 60px 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Important for content inside banner */
}

/* Add darkening for better text readability */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 28, 47, 0.4);
    border-radius: 8px;
    z-index: 1;
}

.main-banner .osnovaban {
    position: relative;
    z-index: 2;
}

/* Title styles between banner and games */
.title-container {
    text-align: center;
    margin: 50px 0;
    position: relative;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    color: #31a0f4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #31a0f4;
    border-radius: 1.5px;
}

/* Burger menu styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu span {
    display: block;
    height: 3px;
    background-color: #ffa000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Active state of burger menu (when menu is open) */
.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #141c2f;
    z-index: 99;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #ffa000;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #ffffff;
}

.mobile-registration {
    text-align: center;
    margin-top: 30px;
}

/* Block scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Game page styles */
.game-header-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background-color: #1c263b;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    opacity: 0.95;
    transition: opacity 0.2s ease-in-out;
    min-height: 350px;
}

.game-image-container {
    flex: 0 0 55%;
    padding-right: 20px;
    width: 55%;
    max-width: 55%;
    position: relative;
    display: block;
    float: none;
}

.game-buttons-container {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 45%;
    max-width: 45%;
    position: relative;
    float: none;
}

/* Ensure elements inside container don't exceed its bounds */
.game-header-container * {
    max-width: 100%;
}

.pervoigra {
    font-size: 22px;
    margin-bottom: 20px;
}

.vydelnazvani {
    color: #31a0f4;
    font-weight: bold;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scrinusginus {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Game sidebar styles */
.game-sidebar-item {
    transition: transform 0.3s ease;
}

.game-sidebar-item:hover {
    transform: translateY(-3px);
}

/* Related games styles */
.post-card--related {
    transition: transform 0.3s ease;
}

.post-card--related:hover {
    transform: translateY(-5px);
}

.related-posts__header {
    color: #31a0f4;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Force correct display for different screen sizes */
@media (min-width: 769px) {
    .game-header-container {
        flex-direction: row;
    }
}

/* Mobile device styles */
@media (max-width: 768px) {
    .site-header-inner, .custom-header-layout {
        flex-direction: row;
        padding: 10px;
        position: relative;
        padding-left: 60px; /* Add left padding for logo */
    }
    
    .burger-menu {
        display: flex;
    }
    
    .horizontal-menu {
        display: none;
    }
    
    .registration-button {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .site-branding {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
    }
    
    .site-logotype img {
        max-width: 200px;
        height: auto;
    }
    
    .full-width .entry-content {
        padding: 0 10px;
    }
    
    .nazvgame {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .ekzsgame {
        font-size: 22px;
    }
    
    .poluvyp {
        font-size: 16px;
    }
    
    .game-header-container {
        flex-direction: column;
        min-height: 550px;
    }
    
    .game-image-container, 
    .game-buttons-container {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .game-image-container {
        margin-bottom: 20px;
    }
    
    .pervoigra {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .game-buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nazvgame {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .site-logotype img {
        max-width: 150px;
    }
}

/* Improve sidebar style for better readability */
.widget-area .post-card__title {
    background-color: rgba(28, 38, 59, 0.9);
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 0;
}

.widget-area .post-card__title a {
    color: #31a0f4;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: block;
    text-align: center;
}

.widget-area .post-card__thumbnail img {
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.widget-area .post-card__thumbnail img:hover {
    transform: scale(1.05);
}

.widget-area .post-card--small {
    margin-bottom: 15px;
}

.widget-area .post-card__thumbnail {
    margin-bottom: 5px;
}

.widget-header {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.widget-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #31a0f4;
    border-radius: 1px;
}

.widget {
    background-color: rgba(28, 38, 59, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Review form styles */
.review-form-container {
    background-color: #1c263b;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-form-title {
    color: #31a0f4;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.review-form .form-group {
    margin-bottom: 20px;
    padding: 0 10px;
    width: 100%;
}

.review-form .form-group.half {
    width: 50%;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #273046;
    border-radius: 6px;
    background-color: #141c2f;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form input[type="email"]:focus,
.review-form textarea:focus {
    border-color: #31a0f4;
    outline: none;
}

.review-form .star-rating-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.review-form .star-rating-select input {
    display: none;
}

.review-form .star-rating-select label {
    cursor: pointer;
    color: #888;
    font-size: 30px;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.review-form .star-rating-select label .review-star {
    width: 30px;
    height: 30px;
}

.review-form .star-rating-select label:hover,
.review-form .star-rating-select label:hover ~ label,
.review-form .star-rating-select input:checked ~ label {
    color: #ffa000;
}

.review-submit-btn {
    background-color: #22b15f;
    color: #ffffff;
    border: none;
    border-radius: 23px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.review-submit-btn:hover {
    background-color: #1a9c4e;
    transform: translateY(-2px);
}

.review-message {
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.review-message.success {
    background-color: rgba(34, 177, 95, 0.2);
    color: #22b15f;
}

.review-message.error {
    background-color: rgba(255, 77, 79, 0.2);
    color: #ff4d4f;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .review-form .form-group.half {
        width: 100%;
    }
    
    .review-form .star-rating-select label .review-star {
        width: 25px;
        height: 25px;
    }
}

/* Game categories block styles */
.game-categories-block {
    background-color: #141c2f;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.game-categories-title {
    color: #31a0f4;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.game-categories-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #31a0f4;
    border-radius: 2px;
}

.game-categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.game-category-item {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    background-color: #1c263b;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #273046;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 30px;
    transition: all 0.3s ease;
}

.crash-icon {
    background: linear-gradient(135deg, #ff4d4d, #f9cb28);
    color: #ffffff;
}

.mines-icon {
    background: linear-gradient(135deg, #4a7eff, #63e2ff);
    color: #ffffff;
}

.cards-icon {
    background: linear-gradient(135deg, #a866ff, #ff66c4);
    color: #ffffff;
}

.slots-icon {
    background: linear-gradient(135deg, #44c282, #2dde98);
    color: #ffffff;
}

.category-name {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    transition: color 0.3s ease;
}

.game-category-item:hover .category-name {
    color: #31a0f4;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .game-category-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .game-category-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .game-categories-title {
        font-size: 24px;
    }
}

/* Category page games grid styles */
.category-games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.category-game-item {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
}

.category-game-inner {
    background-color: #1c263b;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.category-game-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.category-game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-game-title {
    color: #31a0f4;
    font-size: 16px;
    margin: 10px 0;
    text-align: center;
}

.category-game-button {
    display: inline-block;
    background-color: #22b15f;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.category-game-button:hover {
    background-color: #1a9c4e;
    transform: translateY(-2px);
}

.no-games-found {
    padding: 20px;
    background-color: rgba(255, 77, 79, 0.1);
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .category-game-item {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .category-game-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .category-game-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Category page styles */
.category-header {
    background-color: #1c263b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #31a0f4, #22b15f);
}

.category-title {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.category-description {
    color: #b9bfca;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.category-games-count {
    margin-top: 20px;
    background-color: rgba(49, 160, 244, 0.1);
    color: #31a0f4;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* "Back to home" button styles */
.back-to-home {
    display: inline-block;
    background-color: #1c263b;
    color: #31a0f4;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: #31a0f4;
    color: #ffffff;
}

.back-to-home i {
    margin-right: 5px;
}

/* Fix position of categories block at bottom of page */
#game-categories-footer {
    position: relative;
    z-index: 5;
    margin-top: 40px;
    margin-bottom: 40px;
    clear: both;
}

/* 404 page styles */
.error-404-container {
    background-color: #1c263b;
    border-radius: 15px;
    padding: 60px 30px;
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.error-404-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #31a0f4, #22b15f);
}

.error-code {
    font-size: 150px;
    font-weight: 800;
    color: rgba(49, 160, 244, 0.1);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
}

.error-title {
    color: #31a0f4;
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.error-description {
    color: #b9bfca;
    font-size: 18px;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.error-home-button, 
.error-category-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #22b15f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-home-button:hover, 
.error-category-button:hover {
    background-color: #1a9c4e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 177, 95, 0.3);
}

.error-category-button {
    background-color: #31a0f4;
}

.error-category-button:hover {
    background-color: #2286d1;
    box-shadow: 0 5px 15px rgba(49, 160, 244, 0.3);
}

.error-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.error-search .search-form {
    display: flex;
}

.error-search .search-field {
    flex: 1;
    background-color: #141c2f;
    border: 1px solid #273046;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 16px;
}

.error-search .search-submit {
    background-color: #22b15f;
    color: #ffffff;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-search .search-submit:hover {
    background-color: #1a9c4e;
}

.game-suggestions {
    margin-top: 50px;
}

.game-suggestions h2 {
    color: #31a0f4;
    font-size: 24px;
    margin-bottom: 20px;
}

.game-suggestions-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.game-suggestion-item {
    width: 150px;
    background-color: #141c2f;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-suggestion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.game-suggestion-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.game-suggestion-item span {
    display: block;
    color: #31a0f4;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* 404 page responsiveness */
@media (max-width: 768px) {
    .error-code {
        font-size: 100px;
    }
    
    .error-title {
        font-size: 28px;
    }
    
    .error-description {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .error-home-button, 
    .error-category-button {
        width: 80%;
        margin: 0 auto;
    }
    
    .game-suggestion-item {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .error-404-container {
        padding: 40px 20px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .game-suggestion-item {
        width: 100px;
    }
}

/* 404 page animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.error-code {
    animation: float 4s ease-in-out infinite;
}

/* Quote block styles with pros and cons */
blockquote.thumbs-up,
blockquote.thumbs-down {
    color: #000000; /* Black text color for better contrast */
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 6px;
}

blockquote.thumbs-up p,
blockquote.thumbs-down p,
blockquote.thumbs-up ul,
blockquote.thumbs-down ul,
blockquote.thumbs-up li,
blockquote.thumbs-down li {
    color: #000000; /* Black text color for nested elements too */
}

/* Additionally improve style of these blocks */
blockquote.thumbs-up {
    background-color: #e6ffed; /* Light green background for pros */
    border-left: 4px solid #22b15f; /* Green left border */
}

blockquote.thumbs-down {
    background-color: #ffebe9; /* Light red background for cons */
    border-left: 4px solid #ff4d4f; /* Red left border */
}

/* Styles for other quote block types */
blockquote.info,
blockquote.warning,
blockquote.danger,
blockquote.question,
blockquote.check {
    color: #000000; /* Black text color for all block types */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

blockquote.info p,
blockquote.warning p,
blockquote.danger p,
blockquote.question p,
blockquote.check p {
    color: #000000;
}

blockquote.info {
    background-color: #e6f7ff; /* Light blue background */
    border-left: 4px solid #31a0f4; /* Blue left border */
}

blockquote.warning {
    background-color: #fffbe6; /* Light yellow background */
    border-left: 4px solid #faad14; /* Yellow left border */
}

blockquote.danger {
    background-color: #fff1f0; /* Light pink background */
    border-left: 4px solid #ff4d4f; /* Red left border */
}

blockquote.question {
    background-color: #f0f5ff; /* Light blue background */
    border-left: 4px solid #2f54eb; /* Blue left border */
}

blockquote.check {
    background-color: #f6ffed; /* Light green background */
    border-left: 4px solid #52c41a; /* Green left border */
}

/* Brands block styles - carousel */
.brands-slider-container {
    background-color: #1c263b;
    border-radius: 8px;
    padding: 30px 20px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brands-title {
    color: #31a0f4;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: #31a0f4;
    border-radius: 1.5px;
    transform: translateX(-50%);
}

.brands-slider {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.brands-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
}

.brand-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    margin: 0 15px;
    background-color: #141c2f;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.brand-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .brand-item {
        width: 150px;
        height: 80px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .brand-item {
        width: 120px;
        height: 70px;
        margin: 0 8px;
    }
    
    .brands-title {
        font-size: 24px;
    }
}

/* Brand page styles */
.brand-container {
    margin-bottom: 40px;
}

.brand-header {
    background-color: #1c263b;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #31a0f4, #22b15f);
}

.brand-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
}

.brand-title {
    color: #31a0f4;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.brand-subtitle {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
}

.brand-description {
    color: #b9bfca;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumbs styles */
.breadcrumbs {
    margin-bottom: 20px;
    background-color: rgba(28, 38, 59, 0.85);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #31a0f4;
}

.breadcrumbs a {
    color: #31a0f4;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 4px;
    font-weight: bold;
}

.breadcrumbs a:hover {
    color: #ffffff;
    background-color: rgba(49, 160, 244, 0.2);
    border-radius: 3px;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #e0e0e0;
}

/* Make current page more noticeable */
.breadcrumbs span:last-child {
    color: #ffffff;
    font-weight: bold;
    padding: 2px 5px;
    background-color: rgba(34, 177, 95, 0.15);
    border-radius: 3px;
}

/* Style for separator between elements */
.breadcrumbs-separator {
    color: #ffa000;
    margin: 0 5px;
    font-weight: bold;
}

/* Brand game page styles */
.game-brand {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.game-brand-label {
    font-weight: bold;
    color: #31a0f4;
    margin-right: 5px;
}

.game-brand-link {
    color: #22b15f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-brand-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.game-brand-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

/* Fixes for preset image sizes */
.game-image-container {
    min-height: 300px; /* Minimum height for image container */
}

.scrinusginus {
    width: 100%;
    height: auto;
    min-height: 250px; /* Minimum height for image */
    object-fit: cover;
    display: block;
}

/* Fixes for margins and sizes for consistency */
.game-buttons-container {
    padding: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .brand-title {
        font-size: 26px;
    }
    
    .brand-subtitle {
        font-size: 16px;
    }
    
    .brand-card {
        flex: 0 0 100%;
        max-width: 300px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
}

/* Return white text color on all buttons */
.button-primary,
.button-secondary,
.button_1697966261100,
.button_1698937665386,
.button_1697974109598,
.button_1699109676029,
.button_1699109676030,
.review-submit-btn,
.category-game-button,
.error-home-button,
.error-category-button,
.brand-card-button {
    color: #ffffff !important; /* Force white text color */
    font-weight: bold; /* Make text bold for better contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add shadow for better readability */
}

/* Additionally enhance contrast on hover */
.button-primary:hover,
.button-secondary:hover,
.button_1697966261100:hover,
.button_1698937665386:hover,
.button_1697974109598:hover,
.button_1699109676029:hover,
.button_1699109676030:hover,
.review-submit-btn:hover,
.category-game-button:hover,
.error-home-button:hover,
.error-category-button:hover,
.brand-card-button:hover {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Additionally for buttons in game listings */
.pereyti a,
.knopaperehod a {
    color: #ffffff !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ensure consistent display for all game images */
.post-card__thumbnail img,
.igroizo,
.game-sidebar-item img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1; /* For square thumbnails */
}

.post-card__thumbnail {
    background-color: #141c2f;
    border-radius: 8px;
    overflow: hidden;
}

/* Images for main games grid */
.nazvgame .igroizo {
    aspect-ratio: 4 / 3; /* Aspect ratio for main grid */
}

/* Improve contrast for brand link in "Exclusively at" block */
.game-brand-link {
    color: #31a0f4 !important; /* Bright blue color for better contrast */
    font-weight: bold;
    text-decoration: none;
    background-color: rgba(28, 38, 59, 0.7); /* Slightly darkened background around text */
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Shadow for better readability */
}

.game-brand-link:hover {
    color: #ffffff !important; /* White color on hover */
    background-color: #22b15f; /* Green background on hover, like buttons */
    text-decoration: none;
}

/* Style for "Exclusively at:" text */
.game-brand-label {
    color: #ffffff;
    font-weight: bold;
    margin-right: 8px;
}

/* Improve overall block appearance */
.game-brand {
    margin-bottom: 20px;
    font-size: 16px;
    background-color: rgba(20, 28, 47, 0.7);
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 3px solid #31a0f4;
}