html, body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* Noto Sans Font Classes */
.noto-sans-light {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-regular {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-medium {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-semibold {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-bold {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-extrabold {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-black {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczL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IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Join Page Styles */
.join-container {
    /*max-width: 768px;*/
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.03) 0%, rgba(255, 107, 107, 0.05) 50%, rgba(255, 107, 107, 0.08) 100%);
    font-family: "Noto Sans", sans-serif;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    color: #333;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 107, 0.3);
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section with Wedding Image */
.hero-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px 20px;
}

.wedding-image-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.wedding-hero-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 
                0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wedding-hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2), 
                0 6px 24px rgba(0, 0, 0, 0.15);
}

.wedding-info {
    color: #333;
}

.wedding-name {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wedding-date {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.table-section {
    margin-bottom: 32px;
    padding: 0 20px;
}

.table-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-image-container {
    margin-bottom: 20px;
}

.table-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ff6b6b;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.table-info {
    color: #333;
}

.table-name {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0 0 8px 0;
}

.welcome-message {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.quizzes-section {
    margin-bottom: 32px;
    padding: 0 20px;
}

.section-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: none;
}

.quizzes-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                0 4px 16px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: #333;
    text-decoration: none;
}

.quiz-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quiz-icon-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

.quiz-icon-direct {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.quiz-arrow {
    font-size: 20px;
    color: #ff6b6b;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.quiz-card:hover .quiz-arrow {
    transform: translateX(4px);
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
    color: #333;
}

.error-icon {
    margin-bottom: 20px;
    opacity: 0.8;
    color: #ff6b6b;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ff6b6b;
}

.error-message {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #666;
}

.error-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
    font-weight: 300;
    color: #666;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .join-container {
        padding: 0;
    }
    
    .hero-section {
        padding: 24px 16px;
        margin-bottom: 20px;
    }
    
    .wedding-hero-image {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }
    
    .wedding-name {
        font-size: 26px;
    }
    
    .wedding-date {
        font-size: 16px;
    }
    
    .table-section {
        padding: 0 16px;
    }
    
    .table-card {
        padding: 20px;
    }
    
    .table-image {
        width: 100px;
        height: 100px;
    }
    
    .table-name {
        font-size: 20px;
    }
    
    .quizzes-section {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .quiz-card {
        padding: 16px;
    }
    
    .quiz-icon {
        width: 40px;
        height: 40px;
    }
    
    .quiz-name {
        font-size: 16px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .join-container {
        padding: 0;
    }
    
    .hero-section {
        padding: 32px 20px;
    }
    
    .table-section {
        padding: 0 20px;
    }
    
    .quizzes-section {
        padding: 0 20px;
    }
    
    .quizzes-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .quiz-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    
    .quiz-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .quiz-arrow {
        transform: none;
    }
    
    .quiz-card:hover .quiz-arrow {
        transform: translateX(4px);
    }
}

/* Desktop Responsive Styles */
@media (min-width: 769px) {
    .join-container {
        padding: 0;
        /*max-width: 800px;*/
    }
    
    .hero-section {
        padding: 48px 32px;
        margin-bottom: 48px;
    }
    
    .wedding-hero-image {
        width: 220px;
        height: 220px;
        border-width: 8px;
    }
    
    .wedding-name {
        font-size: 38px;
    }
    
    .wedding-date {
        font-size: 20px;
    }
    
    .table-section {
        padding: 0 32px;
    }
    
    .table-card {
        display: flex;
        align-items: center;
        gap: 32px;
        text-align: left;
        padding: 32px;
    }
    
    .table-image-container {
        margin-bottom: 0;
    }
    
    .quizzes-section {
        padding: 0 32px;
    }
    
    .quizzes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Additional animations and improvements */
@media (prefers-reduced-motion: no-preference) {
    .header-section,
    .table-card,
    .quiz-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .header-section {
        animation-delay: 0.1s;
    }
    
    .table-card {
        animation-delay: 0.2s;
    }
    
    .quiz-card:nth-child(1) {
        animation-delay: 0.3s;
    }
    
    .quiz-card:nth-child(2) {
        animation-delay: 0.4s;
    }
    
    .quiz-card:nth-child(3) {
        animation-delay: 0.5s;
    }
}

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

/* Quiz Page Styles */
.quiz-container {
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.03) 0%, rgba(255, 107, 107, 0.05) 50%, rgba(255, 107, 107, 0.08) 100%);
    font-family: "Noto Sans", sans-serif;
}

/* Quiz Introduction Styles */
.quiz-intro {
    padding: 32px 20px;
    text-align: center;
}

.quiz-header {
    margin-bottom: 40px;
}

.quiz-hero-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.quiz-title {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 32px 0;
}

.quiz-ready-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto;
}

.quiz-ready-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
}

.quiz-ready-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.quiz-ready-card p {
    color: #7f8c8d;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Question Styles */
.question-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.question-header {
    margin-bottom: 32px;
}

.question-progress {
    text-align: center;
}

.progress-text {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    transition: width 0.3s ease;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.question-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 32px 0;
    line-height: 1.3;
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.answer-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.1);
}

.answer-text {
    flex: 1;
}

.answer-arrow {
    color: #ff6b6b;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.answer-btn:hover .answer-arrow {
    transform: translateX(4px);
}

/* Confirm Answer Styles */
.confirm-container, .result-container, .results-container {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.confirm-card, .result-card, .results-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: center;
}

.confirm-icon, .result-icon, .results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: white;
}

.confirm-icon {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.result-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.result-card.incorrect .result-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.results-icon {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
}

.confirm-card h2, .result-card h2, .results-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.selected-answer {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    margin: 16px 0;
}

.confirm-warning, .result-message, .results-message {
    color: #7f8c8d;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Button Styles */
.start-quiz-btn, .confirm-btn, .next-btn, .back-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.start-quiz-btn:hover, .confirm-btn:hover, .next-btn:hover, .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.cancel-btn {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: #7f8c8d;
    background: rgba(127, 140, 141, 0.05);
}

.confirm-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.start-quiz-btn:hover .btn-arrow,
.confirm-btn:hover .btn-arrow,
.next-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Final Results Styles */
.score-display {
    margin: 32px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border: 6px solid #ff6b6b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    background: rgba(255, 107, 107, 0.05);
}

.score-number {
    font-size: 36px;
    font-weight: 800;
    color: #ff6b6b;
    line-height: 1;
}

.score-total {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 600;
}

.score-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.results-actions {
    margin-top: 32px;
}

/* Responsive Styles for Quiz */
@media (max-width: 480px) {
    .quiz-intro, .question-container, .confirm-container, .result-container, .results-container {
        padding: 20px 16px;
    }
    
    .quiz-hero-image {
        width: 100px;
        height: 100px;
    }
    
    .quiz-title {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .answer-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 28px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .answers-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (min-width: 769px) {    
    .quiz-hero-image {
        width: 140px;
        height: 140px;
    }
    
    .quiz-title {
        font-size: 32px;
    }
    
    .question-text {
        font-size: 26px;
    }
}