/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #e3f2fd 50%, #bbdefb 65%, #90caf9 75%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #4a90e2;
    color: white;
    text-align: center;
    position: relative;
}


h1 {
    margin: 0;
    font-size: 2.5em;
}

#date {
    font-weight: normal;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
    margin: 30px auto;
    position: relative;
}

.progress-section {
    display: flex;
    align-items: center;
    /*margin-bottom: 20px;*/
}

#progress {
    flex: 0 0 auto;
    font-weight: bold;
    padding: 5px;
}

.progress-container {
    flex: 1;
    height: 15px;
    background-color: #e6f3ff;
    border-radius: 7.5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4a90e2;
    width: 0;
    transition: width 0.5s ease-in-out;
}

.question-section {
    margin-bottom: 20px;
}

.question-container {
    min-height: 7em; /* Adjust to ensure space for at least 3 lines of text */
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    text-align: center; /* Center align the question text */
}


#question {
    color: #2c3e50;
    /*margin-bottom: 10px;*/
}

#answers {
    display: flex;
    flex-direction: column;
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    text-align: center; /* Center align the question text */
}

.answer {
    background-color: #e6f3ff;
    border: 1px solid #4a90e2;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1.1em;
    width: 100%; /* Makes all answer boxes the same width */
    max-width: 400px; /* Limits the maximum width for better appearance */
    box-sizing: border-box; /* Includes padding and border in the width */
}

.answer:hover {
    background-color: #c2e0ff;
    transform: translateY(-2px);
}

.answer.selected {
    background-color: #4a90e2;
    color: white;
}

#nextButton {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

#nextButton.visible {
    visibility: visible;
    opacity: 1;
}

#nextButton:disabled {
    background-color: #a0c4e2;
    cursor: not-allowed;
}

#nextButton:hover:not(:disabled) {
    background-color: #357abd;
}

footer {
    background-color: #4a90e2;
    color: white;
    text-align: center;
}

.correct {
    color: #2ecc71;
    font-weight: bold;
}

.incorrect {
    color: #e74c3c;
    font-weight: bold;
}

.result-item {
    background-color: #f0f4f7;
    border-left: 5px solid #4a90e2;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.result-item p {
    margin: 5px 0;
}

.flying-teapot {
    position: fixed;
    width: 30px;
    height: 30px;
    animation: fly 4s linear infinite;
    z-index: 1000;
}


@keyframes fly {
    0% {
        transform: translate(-50vw, 100vh) rotate(0deg);
    }
    100% {
        transform: translate(50vw, -100vh) rotate(360deg);
    }
}

/* Reserve space for the button to prevent content shifting */
.container {
    padding-bottom: 70px; /* Adjust based on button size */
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .answer {
        padding: 12px;
        margin-bottom: 12px;
        font-size: 1em;
    }

    #nextButton {
        padding: 12px 24px;
        font-size: 0.9em;
    }
}


.teapot-logo {
    text-align: center;
  
}

.teapot-logo img {
    width: 42px; /* Makes the teapot smaller */
    height: auto; /* Maintains the aspect ratio */
}

/* Share Section Styles */
.share-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f4f7 0%, #e6f3ff 100%);
    border-radius: 10px;
    border: 2px solid #4a90e2;
    text-align: center;
}

.share-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.share-message {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.share-message strong {
    color: #4a90e2;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-btn:hover::before {
    width: 300px;
    height: 300px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: translateY(-1px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.share-btn span {
    position: relative;
    z-index: 1;
}

/* Platform-specific colors */
.share-btn.copy {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C5A9E 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.share-btn.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.share-btn.generic {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    width: 100%; /* Make it full width on mobile/where shown */
    justify-content: center;
}

.share-btn.copied {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design for share buttons */
@media (max-width: 600px) {
    .share-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .share-section h3 {
        font-size: 1.3em;
    }
    
    .share-message {
        font-size: 1em;
        padding: 12px;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 10px 16px;
        font-size: 0.85em;
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Share notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Beehiiv subscription form section */
.beehiiv-section {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beehiiv-embed {
    display: block;
    margin: 0 auto;
}

/* Responsive design for Beehiiv form */
@media (max-width: 600px) {
    .beehiiv-section {
        padding: 20px 10px;
    }
    
    .beehiiv-embed {
        width: 100% !important;
        max-width: 100%;
    }
}

