/* ========================================
   MODAL
======================================== */

#libm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(255,255,255,.98);
    display: none;
    overflow-y: auto;
}

#libm-modal.active {
    display: block;
}

#libm-close {
    position: fixed;
    top: 24px;
    right: 24px;
    border: none;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    color: #888;
    transition: color .15s;
}

#libm-close:hover {
    background: transparent !important;
    color: #111;
}

#libm-quiz {
    max-width: 500px;
    margin: 0 auto;
    padding: 80px 0 60px;
}


/* ========================================
   NAME SCREEN
======================================== */

#libm-first-name, #libm-email {
    width: 100%;
    max-width: 400px;
    padding: 13px 16px;
    margin: 20px auto;
    display: block;
    box-sizing: border-box;

    border: 1.5px solid #d0d0d0;
    border-radius: 8px;

    font-size: 1rem;
    text-align: center;
    outline: none;

    transition: border-color .15s;
}

#libm-first-name:focus, #libm-email:focus {
    border-color: #111;
}


/* ========================================
   QUESTIONS
======================================== */

#libm-question-container {
    text-align: center;
}

#libm-question-container h2 {
    font-size:25px;
    margin-top: 120px;
    margin-bottom: 28px;
    
}

.libm-answer {
    display: block;
    width: 100%;

    padding: 15px;
    margin-bottom: 10px;

    cursor: pointer;

    background: transparent;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;

    font-size: 15px;
    font-family: EB Garamond !important;
    text-align: left;
    color: #222;

    transition: .15s;
}

.libm-answer:hover {
    border-color: #888;
    background: #f7f7f7;
}

.libm-answer.selected {
    border-color: #111;
    background: #f0f0f0;
    font-weight: 500;
}


/* ========================================
   BUTTONS
======================================== */

#libm-start-quiz,
#libm-next-question,
#libm-submit-email {
    display: block;
    margin: 15px auto;

    padding: 11px 32px;

    background: transparent;
    border: 1.5px solid #111;
    border-radius: 999px;

    font-size: .9rem;
    font-weight: 500;
    color: #111;

    cursor: pointer;
    transition: .15s;
}

#libm-start-quiz:hover,
#libm-next-question:hover,
#libm-submit-email:hover {
    background: #111;
    color: #fff;
}


/* ========================================
   RESULTS HERO
======================================== */

.libm-results-hero {
    max-width: 600px;
    margin: 0 auto 80px;
    text-align: center;
}

.libm-results-headline {
    font-size: 30px!important;
    margin-top: 30px !important;
    margin-bottom: 30px;
}

.libm-results-gift {
    max-width: 500px;
    margin: 0 auto 30px;

    font-size: 1.1rem;
    color: #666;
    opacity: .8;
}

.libm-featured-cover {
    width: 280px;
    max-width: 100%;
    height: auto;

    display: block;
    margin: 0 auto 30px;

    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.libm-featured-title {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.libm-featured-description {
    margin: 20px 0;
    color: #555;
}

.libm-featured-button {
    display: inline-block;

    padding: 16px 32px;

    background: #111;
    color: white;
    text-decoration: none;

    border-radius: 999px;
    font-weight: 600;

    transition: .5s;
}

.libm-featured-button:hover {
    color: #fff;
    opacity: .75;
}


/* ========================================
   RECOMMENDATIONS
======================================== */

.libm-recommendations {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.libm-recommendations h3 {
    text-align: center;
    margin-bottom: 40px;
}

.libm-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.libm-recommendation {
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: .2s;
}

.libm-recommendation:hover {
    transform: translateY(-5px);
}

.libm-recommendation img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.libm-recommendation h4 {
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
}