﻿@font-face {
    font-family: 'stunning';
    font-weight: 400;
    src: url(fonts/STUNNING.woff2) format('woff2');
}

@font-face {
    font-family: 'Ttwimteul';
    font-weight: 400;
    src: url(fonts/HakgyoansimTtwimteulR.woff2) format('woff2');
}

@font-face {
    font-family: 'Hahmlet';
    font-weight: 400;
    src: url(fonts/Hahmlet-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Hahmlet';
    font-weight: 500;
    src: url(fonts/Hahmlet-Medium.woff2) format('woff2');
}

@font-face {
    font-family: 'Hahmlet';
    font-weight: 600;
    src: url(fonts/Hahmlet-SemiBold.woff2) format('woff2');
}

@font-face {
    font-family: 'Hahmlet';
    font-weight: 700;
    src: url(fonts/Hahmlet-Bold.woff2) format('woff2');
}

@font-face {
    font-family: 'Noto';
    font-weight: 400;
    src: url(fonts/NotoSansKR-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Noto';
    font-weight: 500;
    src: url(fonts/NotoSansKR-Medium.woff2) format('woff2');
}

@font-face {
    font-family: 'Noto';
    font-weight: 700;
    src: url(fonts/NotoSansKR-Bold.woff2) format('woff2');
}



* {
    font-family: 'Noto';
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    /* smooth 처리 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}


.main_cont {
    /*    height: 90vh;*/
    /*    aspect-ratio: 1 / 1;*/

    background: linear-gradient(0deg, #93C5FD, #60A5FA, #3B82F6);
    /* 밝은 블루 → 스카이 블루 → 선명한 블루 */


    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    position: relative;
}
.main_cont.bg_mode{
    background: #666666;
}

.swal2-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.main_page {
    position: relative;
    /* 내부 요소들이 정상적으로 배치되도록 설정 */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.title_zone {
    color: #FFFFFF;
    font-size: 3.5vh;
}

.main_zone {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.main_area {
    border-radius: 21px;
    border: 3px solid #FFFFFF66;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.desc_zone {
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.input_zone {
    width: 75%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.text_input {
    font-size: 2vh;
    height: 40%;
    display: flex;
    align-items: center;
    margin: 0 2vh;
}


.text_number {
    font-size: 2vh;
    height: 40%;
    width: 12.5%;
    text-align: center;
}

label {
    /*    margin: 10px;*/
}

.top_area {
    width: 90%;
    height: 55%;
}

.bot_area {
    width: 90%;
    height: 35%;
}

.line {
    width: 80%;
    border: 1px solid #FFFFFF33;
}

.btn_zone {
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.btn_default {
    display: inline-block;
    color: white;
    margin: 1%;
    border-radius: 12px;
    cursor: pointer;
    font-size: 2vh;
    text-align: center;
    width: 75%;
    height: 95%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366F1, #818CF8);

    /* 인디고 그라데이션 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;

    text-shadow:
    -0.05em -0.05em 0.025em rgba(0,0,0,0.7),
     0.05em -0.05em 0.025em rgba(0,0,0,0.7),
    -0.05em  0.05em 0.025em rgba(0,0,0,0.7),
     0.05em  0.05em 0.025em rgba(0,0,0,0.7);
}

.btn_default:hover {
    transform: translateY(-5%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.full {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_select {
    background: linear-gradient(135deg, #F87171, #FB7185);
    /* 레드 그라데이션 */
}


.btn_clear {
    background: linear-gradient(135deg, #34D399, #6EE7B7);

    /* 그린 그라데이션 */
}

.title {
    color: #FFFFFF;
    /*    font-size: 3vh;*/
    /*    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);*/
}

.text_stroke {

    text-shadow:
    -0.05em -0.05em 0.025em rgba(0,0,0,0.7),
     0.05em -0.05em 0.025em rgba(0,0,0,0.7),
    -0.05em  0.05em 0.025em rgba(0,0,0,0.7),
     0.05em  0.05em 0.025em rgba(0,0,0,0.7);
}

.line {}


.bg_img_zone {
    /*    height: 90vh;*/
    /*    aspect-ratio: 1 / 1;*/
    position: absolute;
    opacity: 0.5;
    width: 100%;
    height: 100%;
}

.bg_img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.btn_start {
    background-color: #e74c3c;
    height: 30%;

}

.sub_page {
    position: relative;
    /* 내부 요소들이 정상적으로 배치되도록 설정 */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.box_zone {
    height: 100%;
    /*    height: 65vh;*/
    aspect-ratio: 1 / 1;
    display: grid;
    justify-content: center;
    align-content: center;
    gap: 5px;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    /* 네온 그린 테두리 */
    color: #00E676;
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 0 2.5px #ffffff, 0 0 5px #ffffff;
    /* 네온 효과 */
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 10px;
    color: #FFFFFF;
    position: relative;
}


.box_result {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;


    text-shadow:
    -0.05em -0.05em 0.025em rgba(0,0,0,0.7),
     0.05em -0.05em 0.025em rgba(0,0,0,0.7),
    -0.05em  0.05em 0.025em rgba(0,0,0,0.7),
     0.05em  0.05em 0.025em rgba(0,0,0,0.7);
}

.box_txt {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'stunning';
    font-size: 0px;


    text-shadow:
    -0.05em -0.05em 0.025em rgba(0,0,0,0.7),
     0.05em -0.05em 0.025em rgba(0,0,0,0.7),
    -0.05em  0.05em 0.025em rgba(0,0,0,0.7),
     0.05em  0.05em 0.025em rgba(0,0,0,0.7);
}

.btn_restart {
    height: 7%;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    /* 옐로우 오렌지 */
}

.btn_showall {
    height: 7%;
    background: linear-gradient(135deg, #34D399, #6EE7B7);
    /* 진한 블루 → 기본 블루 */
}

.btn_home {
    height: 7%;
    background: linear-gradient(135deg, #F87171, #FB7185);
    /* 강조 레드 */
}

.box_cover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "stunning";
    border-radius: 10px;
    color: #FFFFFF;
    pointer-events: none;
    
    text-shadow:
    -0.05em -0.05em 0.025em rgba(0,0,0,0.7),
     0.05em -0.05em 0.025em rgba(0,0,0,0.7),
    -0.05em  0.05em 0.025em rgba(0,0,0,0.7),
     0.05em  0.05em 0.025em rgba(0,0,0,0.7);
}

.box_cover.win {
    background-color: #6EE7B7;
}

.box_cover.nowin {
    background-color: #FF3D00;
}


@media (orientation: landscape) {

    /* 가로형 (landscape) */
    .main_cont {
        height: 100vh;
        /* 기존 설정 유지 */
    }

    .box_zone {
        height: 70vh;
    }

    .title_zone {
        font-size: 4vw;
        /* 가로형일 때는 vw 기준 */
    }

    .title {
        font-size: 3vh;
        /* 세로형일 때는 vh 기준 */
    }

    .btn_default {
        font-size: 2vw;
    }
}

@media (orientation: portrait) {

    /* 세로형 (portrait) */
    .main_cont {
        /*        height: auto;  자동 높이 */
        height: 100vh;
        /* 최소 높이 보장 */
    }

    .box_zone {
        height: auto;
        /* 자동 높이 */
        width: 85vw;
        min-height: 70vh;
        /* 최소 높이 보장 */
    }

    .title_zone {
        font-size: 4vh;
        /* 세로형일 때는 vh 기준 */
    }

    .title {
        font-size: 3vh;
        /* 세로형일 때는 vh 기준 */
    }

    .btn_default {
        font-size: 2vh;
    }
}
