html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

*, *:after, *:before {
    box-sizing: border-box;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100%;
}

.header-nav {
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.nav-container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

@media (max-width: 920px) {
    .nav-menu {
        gap: 20px;
    }
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media(max-width: 960px) {
    .nav-link {
        font-size: 11px;
        padding: 8px 12px;
    }
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.language-selector {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(255,255,255,0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-login:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    flex-shrink: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    list-style: none;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
}

.mobile-auth {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-language {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .nav-menu,
    .auth-buttons,
    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-top {
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0 10px;
    }

    .logo {
        font-size: 18px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 12px;
    }
}

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

.mobile-nav-item {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.mobile-menu.active .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-nav-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu.active .mobile-nav-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu.active .mobile-nav-item:nth-child(6) { animation-delay: 0.6s; }

.casino-section {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.layout-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar {
    background: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
    min-width: 0;
}

.sidebar h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.sidebar h3:hover {
    color: #3498db;
}

.sidebar h3::after {
    content: '';
    margin-left: auto;
    display: none;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 8px;
}

.sidebar-link {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #34495e;
    color: white;
}

.main-content {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.view-all:hover {
    text-decoration: underline;
}

.winners-scroll {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 15px;
    white-space: nowrap;
    max-width: 100%;
}

.winners-list {
    display: inline-flex;
    gap: 15px;
    animation: scroll 30s linear infinite;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-shrink: 0;
}

.winner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-name {
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
}

.winner-amount {
    font-size: 14px;
    color: #27ae60;
    font-weight: bold;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    min-width: 0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    height: 100px;
    background: url("../slt-media/1.webp") no-repeat 0 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    overflow: hidden;
}

.game-card {

    &:nth-child(2) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/2.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(3) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/3.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(4) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/4.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(5) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/5.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(6) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/6.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(7) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/7.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

    &:nth-child(8) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/8.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }
    &:nth-child(9) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/9.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }
    &:nth-child(10) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/10.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }
    &:nth-child(11) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/11.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }
    &:nth-child(12) {
        .game-image{
            width: 100%;
            height: 100px;
            background: url("../slt-media/12.webp") no-repeat 0 0;
            background-size: cover;
            background-position: bottom;
        }
    }

}

h1 {
    font-size: 29px;
    line-height: 35px;
    text-align: center;
    margin: 10px 0;

    @media(max-width: 768px) {
        font-size: 25px;
        line-height: 30px;
    }
}

.bottom_1 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/15.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}

.bottom_2 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/16.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_3 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/17.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_4 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/18.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_5 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/19.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_6 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/20.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_7 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/21.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}
.bottom_8 {
    width: 100% !important;
    height: 100px !important;
    background: url("../slt-media/22.webp") no-repeat 0 0 !important;
    background-size: cover !important;
    background-position: bottom !important;
}

.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-badge.hot {
    background: #e74c3c;
}

.game-badge.new {
    background: #f39c12;
}

.game-info {
    padding: 10px;
}

.game-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.game-provider {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.game-jackpot {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 13px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .sidebar h3::after {
        content: '▼';
        display: block;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .sidebar h3.collapsed::after {
        transform: rotate(-90deg);
    }

    .sidebar-menu {
        max-height: 1000px;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

    .sidebar-menu.hidden {
        max-height: 0;
        opacity: 0;
    }

    .layout-container {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .casino-section {
        padding: 0 15px;
    }

    .sidebar {
        padding: 15px;
        margin-bottom: 15px;
    }

    .main-content {
        padding: 15px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .game-image {
        height: 90px;
        font-size: 25px;
    }

    .game-info {
        padding: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .winners-scroll {
        margin-bottom: 15px;
    }

    .winner-item {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .casino-section {
        padding: 0 10px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .game-image {
        height: 80px;
        font-size: 20px;
    }

    .game-title {
        font-size: 11px;
        line-height: 1.3;
    }

    .game-provider {
        font-size: 9px;
    }

    .game-jackpot {
        font-size: 10px;
    }
}

/* Larger screens optimizations */
@media (min-width: 1400px) {
    .casino-section {
        max-width: 1400px;
        height: calc(100vh - 20px);
        overflow: hidden;
    }

    .layout-container {
        height: 100%;
    }

    .main-content {
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        max-height: 100%;
        overflow-y: auto;
    }
}

.winners-scroll::-webkit-scrollbar {
    height: 4px;
}

.winners-scroll::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 2px;
}

.winners-scroll::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 2px;
}

.winners-scroll::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.content_block {
    padding: 15px 0;

    h2 {
        font-size: 28px;
        line-height: 34px;
        text-align: center;
        margin: 15px 0;
    }

    h3 {
        font-size: 22px;
        line-height: 27px;
        margin: 15px 0;
        text-align: center;
    }

    ul, ol {
        padding-left: 15px;
        margin-bottom: 10px;

        li {
            margin-bottom: 10px;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    p {
        font-size: 16px;
        line-height: 20px;
    }
}