@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-color: #FFFFFF;
    font-family: 'IRANSans', sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Intro Animations */
.intro-title {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.intro-subtitle {
    animation: fadeInUp 1.2s ease-out;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.intro-torino-text {
    animation: fadeInUp 4s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

#enter-menu-btn {
    animation: fadeInUp 1.4s ease-out;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-icon {
    width: 24px;
    height: 24px;
}

/* Cross-Browser Scrollbar Styling */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #000000 #000000;
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
    
    .scroll-to-top-icon {
        width: 20px;
        height: 20px;
    }
}

