/* =========================================
   Reset and Base Styles
========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: "vazir";
  src: url("/files/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
    background-color: #f2f2f2;
    color: #111;
    font-family: "vazir", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

p, a, h1, span {  
    font-family: "vazir", sans-serif;  
}

/* =========================================
   Layout Structure
========================================= */
.app-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simple-page-layout {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Header Styles
========================================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eaeaea;
    border: 1.5px solid #888;
    border-radius: 12px;
    padding: 10px 25px; 
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.crash-header-icon {
    color: #e68927;
    animation: chartPulse 1.5s infinite alternate ease-in-out;
}

@keyframes chartPulse {
    0% { transform: scaleY(0.9) translateY(2px); color: #e68927; }
    100% { transform: scaleY(1.1) translateY(-2px); color: #2e7d32; }
}

.game-title { 
    font-size: 1.17rem; 
    font-weight: 900; 
}

.game-title-link {
    text-decoration: none;
    color: #000;
}

.game-title-link:hover {
    text-decoration: none;
    color: #000;
}

/* =========================================
   Button Styles (Integrated from inline CSS)
========================================= */
.btn-start-game {
    background-color: #e68927;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 10px rgba(230, 137, 39, 0.25);
}

.btn-start-game:hover {
    background-color: #d17a22;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-start-game svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   Main Content / Banner Styles
========================================= */
.about-crash-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.about-crash-section.standalone-mode {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.about-banner {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border: 1.5px solid #888;
    border-radius: 12px;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.about-content {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: justify;
}

.about-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a65a0d; 
    font-weight: 900;
    font-size: 0.95rem;
    text-align: right;
}

.about-subtitle h1 {
    font-size: 1.4rem;
    color: #111;
}

.about-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* =========================================
   Footer Styles
========================================= */
.site-footer {
    text-align: center;
    padding: 25px 15px 30px;
    margin-top: 20px;
    border-top: 1.5px solid #eaeaea;
    color: #555; 
    font-size: 0.95rem;
    font-weight: 500;
    direction: rtl;
    background-color: transparent;
}

.site-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; 
}

.beating-heart {
    display: inline-block;
    font-size: 1.2rem; 
    animation: beatheart 1.5s infinite; 
    transform-origin: center;
}

@keyframes beatheart {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* =========================================
   Responsive Rules
========================================= */
@media (max-width: 800px) {
    .app-header {
        padding: 5px 12px; 
    }
    
    .about-banner {
        flex-direction: column-reverse; 
        padding: 20px;
        text-align: center;
    }
    
    .about-content {
        align-items: center;
    }

    .about-text {
        text-align: right; 
    }
}

@media (max-width: 480px) {
    .site-footer p {
        font-size: 0.85rem; 
        line-height: 1.6;
        flex-wrap: wrap; 
    }
}