/* Base Styles */

:root {
    --primary-color: #8c1414;
    --secondary-color: #a21f1f;
    --accent-color: #e91e1e;
    --light-color: #f3e5f5;
    --dark-color: #5e0000;
    --win-color: #d7a80d;
    --loss-color: #f43636;
    --text-color: #333;
    --light-text: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */

header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 60px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Game Container */

.game-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    gap: 1.5rem;
}

.player-info div {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.btn {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Betting Area */

.betting-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bet-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bet-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bet-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    width: max-content;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.bet-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

#betValue {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-weight: 600;
}

.total-bet {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.symbol-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.symbol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.symbol-img {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.bet-chip {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: var(--light-text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bet-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chip-btn:hover {
    background-color: var(--primary-color);
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.bet-btn {
    background-color: var(--primary-color);
}

.roll-btn {
    background-color: var(--win-color);
}

/* Dice Area */

.dice-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dice-area h3,
.results-area h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.dice-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dice {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    border: 2px solid var(--secondary-color);
}

/* Results Area */

.results-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.results-container {
    min-height: 100px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.win-loss {
    display: flex;
    justify-content: space-around;
    font-weight: 600;
    font-size: 1.1rem;
}

.win-loss div:first-child {
    color: var(--win-color);
}

.win-loss div:last-child {
    color: var(--loss-color);
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-color);
}

.rules-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.rules-container ol,
.rules-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.rules-container li {
    margin-bottom: 0.5rem;
}

.symbols-explanation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.symbols-explanation div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symbols-explanation span {
    font-size: 1.5rem;
}

/* Toast Message */

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    border-radius: 5px;
    padding: 1rem;
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Download Popup */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: popupFadeIn 0.3s;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: var(--accent-color);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.download-btn {
    padding: 0.8rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.android {
    background-color: #3ddc84;
}

.ios {
    background-color: #007aff;
}

.play-online-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

.play-online-btn:hover {
    background-color: var(--dark-color);
}

/* Responsive Styles */

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }
    .menu-toggle {
        display: block;
    }
    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dice-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .player-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    .game-header {
        flex-direction: column;
        align-items: stretch;
    }
    .game-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .symbols-grid {
        grid-template-columns: 1fr;
    }
    .dice-container {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 1.5rem 1rem;
    }
}

/*Other pages*/

/* About Page Styles */

.about-container,
.faqs-container,
.privacy-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-section,
.faqs-section,
.privacy-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-content h3,
.privacy-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.about-content p,
.privacy-content p {
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list i {
    color: var(--accent-color);
    width: 1.5rem;
    text-align: center;
}

.team-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* FAQs Page Styles */

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
    background-color: #fff;
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
    margin: 1rem 0;
}

.contact-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Privacy Page Styles */

.effective-date {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

/* Active link in navigation */

nav ul li a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/*** New Code***/

/* Section Header */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */

.features-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */

.stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* How to Play Section */

.how-to-play {
    padding: 4rem 2rem;
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    background-color: var(--light-color);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-top: 1rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */

.testimonials {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--light-color);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
}

.testimonial-author {
    position: relative;
    z-index: 1;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
}

.author-location {
    font-size: 0.9rem;
    color: #777;
}

/* Download CTA */

.download-cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c2185b 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-badges img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    transition: all 0.3s;
}

.app-badges img:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom p:first-child {
    margin-bottom: 0.5rem;
}

/* Hero Banner */

.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

@media (max-width:600px) {
    .hero-banner {
        display: block;
    }
    .banner-buttons {
        margin-bottom: 20px;
    }
}

.banner-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-content h2 span {
    display: block;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s;
}

.banner-image img:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.play-now-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-now-btn:hover {
    background-color: var(--light-text);
    color: var(--accent-color);
    transform: translateY(-3px);
}