/* css file */

* {
    box-sizing: border-box;
}



body {
    background-color: #323232;
    margin: 0;
    padding: 16px; /* page padding  */
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

#application {
    max-width: 360px;
    margin: 0 auto;
    min-width: 320px;
}

#app-title {
    width: 100%;
    text-align: center;
    padding: 16px;
}

#app-title h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}

#display-area {
    float: left;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('../assets/images/apple.png');
    background-size: contain;
    background-repeat: repeat;
    background-position: center;
}

#section-start {
    display: block;
}

#section-1, #section-2, #section-3, #section-4, #section-5 {
    display: none;
}

.content-area {
    display: none;
    float: left;
    width: 100%;
    min-height: 200px;

    padding: 16px;
    background-color: rgba(50,50,50,0.75);
    color: white;
    backdrop-filter: none;
}

#section-start.content-area {
    display: block;
}

.home-welcome {
    padding: 16px;
    text-align: center;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.btn-primary {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #c82333;
}

.section-content {
    padding: 16px;
    color: white;
}

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
}

.hero-text {
    font-size: 18px;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.section-note {
    font-size: 16px;
    text-align: center;
    margin: 15px 0;
}

.section-subtitle {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.section-paragraph {
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
}

.food-group {
    margin: 20px 0;
    padding: 0;
}

.section-divider {
    border: none;
    border-top: 1px solid #ffffff;
    margin: 20px 0;
}

.food-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.food-title.fruits {
    color: #dc3545;
}

.food-title.vegetables {
    color: #ff8c00;
}

.food-title.grains {
    color: #8b4513;
}

.food-title.protein {
    color: #8b4513;
}

.food-title.dairy {
    color: #87ceeb;
}

.food-title.balanced {
    color: #808080;
}

.food-group p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.activity-list li {
    font-size: 16px;
    padding: 10px 0;
    line-height: 1.6;
}

.badge-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.badge-list li {
    font-size: 16px;
    padding: 12px 0;
    line-height: 1.8;
}

.achievements-title {
    font-size: 22px;
    text-align: center;
    margin: 20px 0;
    color: white;
}

.welcome-text {
    font-size: 16px;
    text-align: center;
    margin: 15px 0;
}

.achievement-info {
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
}

.media-block {
    text-align: center;
    margin: 12px 0;
}

.btn-back, .back-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    font-weight: bold;
}

.btn-back:hover, .back-button:hover {
    background-color: #c82333;
}

.btn-back:focus, .back-button:focus {
    outline: 3px solid rgba(220,53,69,0.25);
}

.quiz-section {
    margin: 25px 0;
    padding: 0;
}

/*  quiz styles */
.quiz-mc{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.quiz-choice{
    background-color: #ffffff;
    color: #222;
    border: none;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.quiz-choice:hover{
    background-color: #f2f2f2;
}

.quiz-choice.correct{
    background-color: #d4edda;
    color: #155724;
}

.quiz-choice.incorrect{
    background-color: #f8d7da;
    color: #721c24;
}

.quiz-choice[disabled]{
    opacity: 0.8;
    cursor: default;
}

#quiz-feedback{
    color: #fff;
}

.quiz-info {
    font-size: 15px;
    margin: 15px 0;
}

.quiz-topics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.quiz-topic-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.quiz-topic-btn:hover {
    background-color: #218838;
}

/* Quiz styles */
#quiz-wrapper input[type="text"]{
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#quiz-wrapper .btn-quiz{
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#quiz-wrapper .btn-quiz:hover{
    background-color: #138496;
}

@media only screen and (min-width: 768px) {
    #application {
        display: none;
    }
    body::before {
        content: "This app is designed for mobile devices only. Please view on a phone.";
        display: block;
        padding: 20px;
        text-align: center;
        font-size: 18px;
        background-color: #f0f0f0;
    }
}