/* Base styles for the brown color scheme */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #2e1e00; /* Dark brown */
    color: #e0d9d0; /* Light off-white for general text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #f5deb3; /* Lighter brown/gold for headings */
}

.bg-brown-800 {
    background-color: #5a3d2e;
}

.material-symbols-outlined.filled {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

.material-symbols-outlined.filled.gold {
    color: gold;
}

.text-brown-50 {
    color: #562c17 !important;
}

.toaster-success {
    font-size: 1.5rem;      /* більший шрифт */
    color: #16a34a;         /* зелений текст */
    font-weight: bold;
    padding: 1rem 1.5rem;
    background-color: #d1fae5; /* світлий фон */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toaster-success.show {
    opacity: 1;
    transform: translateY(0);
}



/* Tailwind CSS utility classes are heavily used, so custom CSS is minimal */

/* Custom scrollbar for a themed look */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #4a2c00; /* Medium brown */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #8b5e34; /* Lighter brown */
    border-radius: 10px;
    border: 3px solid #4a2c00;
}

::-webkit-scrollbar-thumb:hover {
    background: #a07248; /* Even lighter brown on hover */
}

/* Material Symbols icon adjustments */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom button styles to remove underline */
.btn {
    text-decoration: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: slideUpFadeIn 0.6s ease-out forwards;
    opacity: 0; /* Hidden by default, JS will add this class */
}

.animate-slide-up-fade-in-1 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up-fade-in-2 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-slide-up-fade-in-3 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out forwards;
    opacity: 0;
}

/* Delay utilities for animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Specific styles for the game iframe container to ensure it covers the full width and height */
#game-play .relative {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
}

#game-play iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure all blocks have consistent padding */
section {
    padding-top: 4rem; /* Equivalent to py-16 */
    padding-bottom: 4rem; /* Equivalent to py-16 */
}

@media (min-width: 768px) {
    section {
        padding-top: 6rem; /* Equivalent to py-24 */
        padding-bottom: 6rem; /* Equivalent to py-24 */
    }

}


@media (max-width: 767px) {
    .tab-button {
        font-size: 12px !important; /* Slightly smaller font size on mobile */
    padding: 6px !important;
    width: 100%;
    }
    
    .text-5xl {
        font-size: 1.5rem !important; /* Adjust heading size for mobile */
    }

    .nav-link {
        font-size: 14px !important; /* Slightly larger nav links for better tap targets */
    }

    .s-txt {
        font-size: 14px !important; /* Slightly larger text for readability */
    }

    .h-sm {
        position: relative !important;
    }

    #screenshot-slider {
        height: 400px !important; /* Adjust height for mobile */
    }

}

/* Ensure grid/card blocks have equal height */
/* This is often handled by JS for dynamic content, but for static, flexbox/grid can help */
.grid.md\:grid-cols-2 > div, .grid.lg\:grid-cols-3 > div {
    display: flex;
    flex-direction: column;
}

.grid.md\:grid-cols-2 > div > div, .grid.lg\:grid-cols-3 > div > div {
    flex-grow: 1;
}

/* Star rating styles */
.star-icon.filled {
    color: #fcd34d; /* Amber-400 */
    fill: #fcd34d; /* For SVG stars if used */
}

/* Toaster styles */
.toaster {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 50px 100px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}


.toaster.show {
    opacity: 1;
    transform: translateY(0);
}

.toaster.success {
    color: #562c17; /* Green-800 */
    background-color: #fcd34d; /* Green-500 */
}

.toaster.error {
    background-color: #ef4444; /* Red-500 */
}

.toaster.info {
    background-color: #3b82f6; /* Blue-500 */
}
/* New styles for .dataTrustFrame and its child elements */

.dataTrustFrame {
    padding-top: 2rem;    /* Top padding for the data trust frame */
    padding-bottom: 2rem; /* Bottom padding for the data trust frame */
    padding-left: 1.5rem; /* Left padding for the data trust frame */
    padding-right: 1.5rem; /* Right padding for the data trust frame */
    /* Optional: Max width and center alignment for better readability on large screens */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive padding for larger screens */
@media (min-width: 768px) {
    .dataTrustFrame {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.dataTrustFrame h1 {
    font-size: 2rem; /* Moderate H1 font size */
    line-height: 1.2; /* Line height for H1 */
    margin-bottom: 1.5rem; /* Bottom margin for H1 */
    color: #f5deb3; /* Heading color, consistent with base styles */
}

.dataTrustFrame h2 {
    font-size: 1.75rem; /* Moderate H2 font size */
    line-height: 1.3; /* Line height for H2 */
    margin-bottom: 1.25rem; /* Bottom margin for H2 */
    color: #f5deb3;
}

.dataTrustFrame h3 {
    font-size: 1.5rem; /* Moderate H3 font size */
    line-height: 1.4; /* Line height for H3 */
    margin-bottom: 1rem; /* Bottom margin for H3 */
    color: #f5deb3;
}

.dataTrustFrame h4 {
    font-size: 1.25rem; /* Moderate H4 font size */
    line-height: 1.5; /* Line height for H4 */
    margin-bottom: 0.75rem; /* Bottom margin for H4 */
    color: #f5deb3;
}

.dataTrustFrame h5 {
    font-size: 1.125rem; /* Moderate H5 font size */
    line-height: 1.6; /* Line height for H5 */
    margin-bottom: 0.5rem; /* Bottom margin for H5 */
    color: #f5deb3;
}

.dataTrustFrame p {
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.7; /* Line height for paragraphs */
    margin-bottom: 1rem; /* Bottom margin for paragraphs */
    color: #e0d9d0; /* General text color, consistent with base styles */
}

.dataTrustFrame ul {
    list-style-type: disc; /* Default disc bullet points for unordered lists */
    padding-left: 1.5rem; /* Indent for bullet points */
    margin-bottom: 1rem; /* Bottom margin for unordered lists */
    color: #e0d9d0;
}

.dataTrustFrame ol {
    list-style-type: decimal; /* Default numbered list for ordered lists */
    padding-left: 1.5rem; /* Indent for numbers */
    margin-bottom: 1rem; /* Bottom margin for ordered lists */
    color: #e0d9d0;
}

.dataTrustFrame li {
    font-size: 1rem; /* List item font size */
    line-height: 1.7; /* Line height for list items */
    margin-bottom: 0.5rem; /* Small space between list items */
    color: #e0d9d0;
}

/* Remove bottom margin for the last child of specific elements within .dataTrustFrame to prevent extra space */
.dataTrustFrame p:last-child,
.dataTrustFrame ul:last-child,
.dataTrustFrame ol:last-child,
.dataTrustFrame li:last-child {
    margin-bottom: 0;
}
