@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), url('./../fonts/Lato-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: local('Lato Italic'), url('./../fonts/Lato-Italic.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 100;
    src: local('Lato Hairline'), url('./../fonts/Lato-Hairline.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 100;
    src: local('Lato Hairline Italic'), url('./../fonts/Lato-HairlineItalic.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: local('Lato Light'), url('./../fonts/Lato-Light.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 300;
    src: local('Lato Light Italic'), url('./../fonts/Lato-LightItalic.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local('Lato Bold'), url('./../fonts/Lato-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    src: local('Lato Bold Italic'), url('./../fonts/Lato-BoldItalic.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: local('Lato Black'), url('./../fonts/Lato-Black.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 900;
    src: local('Lato Black Italic'), url('./../fonts/Lato-BlackItalic.woff') format('woff');
}

:root {
    --bs-body-line-height: 1.65;
}

body {
    background: #fbf9f5;
    font-family: 'Lato', sans-serif;
    color: #2b2e3a;
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

#game-container canvas {
    max-width: 100%;
    margin: 0 auto;
}

.bg-gray {
    background: #fbf9f5;
}

.play-btn {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-border-radius: 2rem;
    --bs-btn-border-color: #2b2e3a;
    --bs-btn-bg: #ffffff;
    --bs-btn-color: #2b2e3a;
    --bs-btn-hover-border-color: #2b2e3a;
    --bs-btn-hover-bg: #2b2e3a;
    --bs-btn-hover-color: #ffffff;
}

#body {
    min-height: calc(100vh - 180px);
}

.footer p {
    color: #9599ae;
    font-size: 0.875rem;
}

.footer .nav-item {
    font-size: 0.875rem;
}

.footer .nav em {
    color: #9599ae;
}

.footer .nav a {
    color: #2b2e3a;
    font-size: 0.875rem;
    text-decoration: none;
}

.footer .nav a:hover {
    text-decoration: underline;
}

/* Toast Styles */
.toast-container .toast {
    background-color: #ffffff;
    border: 1px solid #2b2e3a;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(43, 46, 58, 0.15);
    font-family: 'Lato', sans-serif;
}

.toast-container .toast-header {
    background-color: #2b2e3a;
    color: #ffffff;
    border-bottom: 1px solid #2b2e3a;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.75rem 1rem;
}

.toast-container .toast-header strong {
    font-weight: 700;
    font-size: 0.875rem;
}

.toast-container .toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.toast-container .toast-header .btn-close:hover {
    opacity: 1;
}

.toast-container .toast-body {
    background-color: #fbf9f5;
    color: #2b2e3a;
    padding: 1rem;
    font-size: 0.875rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Feedback Modal Styles */
.feedback-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(43, 46, 58, 0.15);
    background: #ffffff;
}

.feedback-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
    background: #fbf9f5;
    border-radius: 1rem 1rem 0 0;
}

.feedback-modal .modal-title {
    color: #2b2e3a;
    font-weight: 700;
    font-size: 1.25rem;
}

.feedback-modal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.feedback-modal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem;
    background: #fbf9f5;
    border-radius: 0 0 1rem 1rem;
}

.feedback-modal .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.feedback-modal .form-control:focus {
    border-color: #2b2e3a;
    box-shadow: 0 0 0 0.2rem rgba(43, 46, 58, 0.1);
}

.feedback-modal .form-label {
    color: #2b2e3a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-modal .btn-primary {
    --bs-btn-bg: #2b2e3a;
    --bs-btn-border-color: #2b2e3a;
    --bs-btn-hover-bg: #1a1d26;
    --bs-btn-hover-border-color: #1a1d26;
    --bs-btn-active-bg: #1a1d26;
    --bs-btn-active-border-color: #1a1d26;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.feedback-modal .btn-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #dee2e6;
    --bs-btn-color: #6c757d;
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-border-color: #dee2e6;
    --bs-btn-hover-color: #495057;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Paused Modal Styles */
.paused-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(43, 46, 58, 0.15);
    background: #ffffff;
}

.paused-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
    background: #fbf9f5;
    border-radius: 1rem 1rem 0 0;
}

.paused-modal .modal-title {
    color: #2b2e3a;
    font-weight: 700;
    font-size: 1.25rem;
}

.paused-modal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.paused-modal .btn-primary {
    --bs-btn-bg: #2b2e3a;
    --bs-btn-border-color: #2b2e3a;
    --bs-btn-hover-bg: #1a1d26;
    --bs-btn-hover-border-color: #1a1d26;
    --bs-btn-active-bg: #1a1d26;
    --bs-btn-active-border-color: #1a1d26;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.paused-modal .btn-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #dee2e6;
    --bs-btn-color: #6c757d;
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-border-color: #dee2e6;
    --bs-btn-hover-color: #495057;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Navigation Styles */
.nav-pills {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    padding: 0.25rem;
    box-shadow: 0 0.125rem 0.5rem rgba(43, 46, 58, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(43, 46, 58, 0.1);
}

.nav-pills .nav-link {
    color: #2b2e3a;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link:hover {
    color: #2b2e3a;
    background: rgba(43, 46, 58, 0.05);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background: #2b2e3a;
    color: #ffffff;
    box-shadow: 0 0.25rem 0.75rem rgba(43, 46, 58, 0.2);
}

.nav-pills .nav-link.active:hover {
    background: #1a1d26;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Header Enhancement */
header .d-flex {
    position: relative;
}

header .fs-4 {
    background: linear-gradient(135deg, #2b2e3a 0%, #4a4f63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Timeline Styles */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #e9ecef;
    border-radius: 2px;
}

.timeline-item:last-child {
    margin-bottom: 0 !important;
}

.timeline-marker {
    left: 11px;
    top: 0.25rem;
    width: 20px;
    height: 20px;
    border: 4px solid #2b2e3a;
    z-index: 1;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: #4a4f63;
}

.game-faq .avatar {
    background-color: #f0f2f5;
    border-radius: 50%;
    padding:0.5rem;
}

.game-faq .avatar img {
    width: 1.75rem;
    height: 1.75rem;
    vertical-align: top;
}

.bg-faq {
    background: #fbf9f5;
}