body, html {
    direction: rtl;
    background: url("/assets/celebrity_quiz/images/bg.png")  center center fixed;
    background-size: contain;
    justify-content: center;
    align-items: center;
    font-family: IRANYekanX, sans-serif;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.phone-screen {
    margin: auto;
    /*background: #FF0000;*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    height: auto;
    min-height: 60vh;
}

@media (max-width: 500px) {
    .phone-screen {
        height: auto;
        min-height: 60vh;
        border-radius: 0;
        max-width: 100%;
    }
}



.tagline {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 30px;
    text-align: center;
}


#start-screen {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    /*background: #FF0000;*/
    overflow: hidden;
    color: white;
    background: url("/assets/celebrity_quiz/images/bg.png")  center center fixed;;
    background-size: contain;
}

.start-header {
    /*background: #FF0000;*/
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
}

.start-content {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.start-content h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.start-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

.start-btn {
    background: #ff9eb9;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 30px;
    border-radius: 10px;
    border: none;
    margin: 0px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.start-btn:hover {
    transform: scale(1.05);
}

.question-screen {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    /*background: #FF0000;*/
    color: white;
    position: relative;
    background: url("/assets/celebrity_quiz/images/bg.png")  center center fixed;;
    background-size: contain;
}

.question-header {
    /*background: #FF0000;*/
    color: #ffecec;
    padding: 15px 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.question-card {
    background: rgba(255, 77, 129, 0.05);
    padding: 25px;
    width: 100%;
    color: white;
    max-width: 90%;
    text-align: center;
}

#question {
    font-size: 1rem;
    line-height: 35px;
    font-weight: bold;
    margin-bottom: 60px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-footer {
    margin-top: auto;
    text-align: center;
    padding: 15px 0;
}


.option-btn {
    border-radius: 10px;
    font-size: 0.8rem !important;
    text-align: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border: none;
}

.option-btn:hover {
    background: #fff5f8;
    transform: scale(1.02);
    border-color: #FF0000;
}

.result-screen {
    background: url("/assets/celebrity_quiz/images/bg.png")  center center fixed;;
    background-size: contain;
    height: auto;
    min-height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

.hidden {
    display: none !important;
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 90%;
}

.result-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 12px;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.result-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.result-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    padding: 10px;
    box-sizing: border-box;
    overflow: visible;
}



.result-content h4,
.result-content p {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible;
}


.brand-logos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}





.brands-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.brand-item {
    display: flex;
    align-items: center;
}

.brand-item.column {
    flex-direction: column;
    justify-content: end;
}

.brand-item.side-by-side {
    flex-direction: row;
    gap: 8px;
}

.brand-item img {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
}

.brand-text {
    color: black;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.brand-item.side-by-side {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.brand-item.side-by-side img {
    display: block;
}










.big-btn {
    font-size: 0.9rem;
    padding: 14px;
    font-weight: bold;
}

.two-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.two-btns .result-btn {
    flex: 1;
}

.lottery-content {
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    line-height: 1.8;
}

.lottery-content h3 {
    font-size: 18px;
    line-height: 40px;
    margin-bottom: 20px;
}

.lottery-content ol {
    margin: 15px 0;
    padding: 0;
    list-style-position: inside;
}

.lottery-content p {
    margin-top: 5px;
    margin-bottom: 25px;
}

.lottery-content ol.start-2 {
    margin-top: 25px;
}



#result-name {
    font-size: 22px !important;
}


.return-btm{
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 12px;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}




@media (min-width: 768px) {
    .result-img-wrapper img {
        height: auto;
        max-width: 300px;
        object-fit: cover;
        transform: translate(0%, 0%);
    }

}
@media (max-width: 768px) {
    .result-content {
        margin: 0px;
    }

    .result-img-wrapper img,
    .result-img {
        width: 180px !important;
        height: auto !important;
        max-width: 100% !important;
        display: block;
        margin: 0 auto;
        padding: 10px 0px;
    }

    .result-content h4,
    .result-content p {
        font-size: 13px;
        font-weight: 700;
        line-height: 2;
        width: 100%;
        max-width: 100%;
    }


    #result-name {
        font-size: 18px !important;
    }



    .result-buttons {
        margin-top: 10px;
    }
}
