@charset "UTF-8";


/* ========================================================
           반응형 디자인 (태블릿 & 모바일 환경: 화면 너비 850px 이하)
           ======================================================== */
@media (max-width: 850px) {
    header {
        padding: 10px 20px;
    }

    .hamburger-btn {
        display: flex;
    }

    /* 햄버거 메뉴 보이기 */

    /* 메뉴 컨테이너를 우측에서 슬라이드되는 오버레이로 변경 */
    .controls-container {
        position: fixed;
        top: 60px;
        /* 헤더 바로 아래부터 시작 */
        right: -100%;
        /* 기본적으로 화면 우측 밖으로 숨김 */
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #e0e0e0;
        /* 기획안의 회색 배경 */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 1s ease;
        /* 1초 동안 부드럽게 이동하는 애니메이션 */
        z-index: 999;
        padding: 20px;
    }

    /* 햄버거 메뉴 클릭 시 .active 클래스가 붙어 화면 안으로 들어옴 */
    .controls-container.active {
        right: 0;
    }

    /* 슬라이드 메뉴 내부 요소 스타일 조정 */
    .search-title-mobile {
        display: block;
        font-size: 2rem;
        font-weight: bold;
        color: #000;
        margin-bottom: 30px;
    }

    .music-btn {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    /* 음악 버튼은 우측 상단 배치 */

    .search-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 15px;
    }

    .search-container input {
        width: 100%;
        padding: 12px 15px;
    }

    /* 검색 버튼들을 한 줄에 나란히 배치 */
    .btn-group {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    /* 카드 크기 및 여백 모바일화 */
    main {
        padding: 20px 15px;
    }

    .card-outer {
        padding: 10px;
        border-radius: 20px;
    }

    .card-inner {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .quiz-question {
        font-size: 1rem;
    }

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

    /* 보기 항목 세로 배치 */
    #resultContainer h1 {
        font-size: 1.8rem;
    }

    #resultContainer p {
        font-size: 1rem;
    }
}