.logo {
    font-size: 26px;
    font-weight: bold;
}

.container-fluid.background {
    background-color: #f5f5f5;
    min-height: 730px;
}

.container-fluid.background > .row {
    min-height: 730px;
}

.container-fluid.background .col-lg-6 {
    display: flex;
}

.background .text-center {
    margin-bottom: 20px;
}

.btn-flip {
    font-size: 1.5rem !important;
    padding: 15px 60px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin: 20px 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
    cursor: pointer !important;
}

.btn-flip:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.5) !important;
}

.btn-flip:active {
    transform: translateY(0) scale(1.02) !important;
}

.moon-blocks-container {
    perspective: 1000px;
    margin: 20px auto;
}

.blocks-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.moon-block {
    width: 180px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer !important;
    transition: transform 0.3s, filter 0.2s;
}

.moon-block:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.moon-block.flipped:hover {
    filter: brightness(1.1);
    transform: rotateX(180deg) scale(1.05);
}

.moon-block.flipped {
    transform: rotateX(180deg);
}

.moon-block.throwing {
    animation-duration: 1.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.moon-block#block1.throwing {
    animation-name: throwBlock1;
}

.moon-block#block2.throwing {
    animation-name: throwBlock2;
}

.moon-block .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-block .face.back {
    transform: rotateX(180deg);
}

.moon-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-display {
    background: #f8f8f8;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #e9ecef;
}

@keyframes throwBlock1 {
    0% {
        transform: rotateX(var(--initial-rotation)) rotateZ(0deg) translateY(0);
    }
    30% {
        transform: rotateX(calc(var(--initial-rotation) + var(--rotation-amount, 540deg))) rotateZ(-15deg) translateY(-160px);
    }
    60% {
        transform: rotateX(calc(var(--initial-rotation) + var(--rotation-amount, 720deg))) rotateZ(-5deg) translateY(-40px);
    }
    75% {
        transform: rotateX(var(--final-rotation)) rotateZ(2deg) translateY(5px);
    }
    85% {
        transform: rotateX(var(--final-rotation)) rotateZ(-1deg) translateY(-8px);
    }
    92% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(2px);
    }
    96% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(-3px);
    }
    100% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(0);
    }
}

@keyframes throwBlock2 {
    0% {
        transform: rotateX(var(--initial-rotation)) rotateZ(0deg) translateY(0);
    }
    28% {
        transform: rotateX(calc(var(--initial-rotation) + var(--rotation-amount, 600deg))) rotateZ(12deg) translateY(-170px);
    }
    58% {
        transform: rotateX(calc(var(--initial-rotation) + var(--rotation-amount, 800deg))) rotateZ(6deg) translateY(-35px);
    }
    73% {
        transform: rotateX(var(--final-rotation)) rotateZ(-2deg) translateY(6px);
    }
    83% {
        transform: rotateX(var(--final-rotation)) rotateZ(1deg) translateY(-10px);
    }
    90% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(3px);
    }
    95% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(-4px);
    }
    100% {
        transform: rotateX(var(--final-rotation)) rotateZ(0deg) translateY(0);
    }
}

.faq {
    margin-top: 40px;
}

.modal-content {
    padding: 20px;
}

.stat-card {
    width: 120px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card p {
    margin: 0;
    font-weight: bold;
}

.stat-card .fs-4 {
    font-size: 1.5rem !important;
}

.step {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #ffd700;
    text-align: center;
    line-height: 40px;
    color: #fff;
    border-radius: 50%;
    margin-bottom: 14px;
    font-weight: 900;
}

.title-section {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h1.fw-bold {
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    font-weight: 700 !important;
    color: #212529;
}

.ad-header-position {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.ad-position {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.coin-area-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.control-panel-border {
    border: 3px solid #dee2e6 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    background-color: #ffffff;
    min-height: 630px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gx-5 {
    --bs-gutter-x: 3rem;
}

.nav-tabs {
    border-bottom: 3px solid #dee2e6 !important;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 4px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
    border-bottom: 4px solid #0d6efd;
    color: #0d6efd;
    background-color: #ffffff;
}

.nav-tabs .nav-link:hover {
    border-bottom: 4px solid #0d6efd;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.stat-item {
    border-radius: 14px;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.card {
    border-radius: 16px;
    border: 2px solid #e9ecef;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 0.875rem 1.25rem;
    font-size: 1.05rem;
}

.form-control-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    border: none !important;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    font-size: 1.05rem;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.sticky-ads .mb-4:last-child {
    margin-bottom: 0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-content {
    padding: 2rem !important;
}

.tab-content h5 {
    font-size: 1.3rem;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

#settings .mb-3 {
    margin-bottom: 1rem !important;
}

#settings .form-label {
    margin-bottom: 0.5rem;
}

:fullscreen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-webkit-full-screen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-moz-full-screen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-ms-fullscreen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .sticky-ads {
        position: sticky !important;
        top: 20px;
    }
}

@media (max-width: 991px) {
    .sticky-ads {
        position: relative !important;
        top: auto !important;
        margin-top: 2rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    h1.fw-bold {
        font-size: 1.5rem !important;
    }
    
    .ad-header-position {
        margin-top: 1rem;
        min-height: 80px;
    }
}


.stat-item-card {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.stat-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.result-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-display h2 {
    font-weight: 700 !important;
}

.btn-outline-secondary {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-label.fw-semibold {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.75rem;
}

.form-select,
.form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-check-input {
    width: 3rem;
    height: 1.5rem;
    border: 2px solid #dee2e6;
    cursor: pointer !important;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.content-sections {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.content-sections section {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-sections h4 {
    color: #0d6efd;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e9ecef;
}

.content-sections p {
    color: #495057;
    font-size: 1.05rem;
}

.content-sections ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-sections ul li {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.05rem;
}

.sticky-ads {
    position: sticky;
    top: 20px;
}

.sticky-ads .ad-position {
    margin-bottom: 1.5rem;
}

.btn-flip {
    font-size: 1.5rem !important;
    padding: 15px 60px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin: 20px 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
    cursor: pointer !important;
}

.btn-flip:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.5) !important;
}

.btn-flip:active {
    transform: translateY(0) scale(1.02) !important;
}

.btn-flip:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.5) !important;
}

.btn-flip:active {
    transform: translateY(0) scale(1.02) !important;
}

.faq .fs-5, .col-lg-8 .fs-5 {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    line-height: 1.8;
}

.faq h4, .col-lg-8 .fs-5 h4 {
    color: #0d6efd;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e9ecef;
}

.faq p, .col-lg-8 .fs-5 p {
    color: #495057;
    font-size: 1.05rem;
}

.faq ul, .col-lg-8 .fs-5 ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq ul li, .col-lg-8 .fs-5 ul li {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.05rem;
}

.bg-light.p-3.rounded {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.stat-item {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
