/*==================================================
 GIFU KOSEN QUEST
 style.css
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#dfe9cf;
    font-family:"DotGothic16",sans-serif;
    text-align:center;
    color:#222;
}


/*==========================
 タイトル
==========================*/

header{
    padding:18px 10px 10px;
}

h1{
    font-size:2rem;
    color:#1f2d16;
}

.subtitle{
    margin-top:8px;
    font-size:0.95rem;
}


/*==========================
 MAP
==========================*/

#map{
    position:relative;
    width:min(95vw,430px);
    aspect-ratio:9 / 16;
    margin:20px auto;
    background:url("assets/map.png");
    background-size:contain;
    background-repeat:no-repeat;
}


/*==========================
 スタンプ
==========================*/

.stamp{
    position:absolute;
    width:75px;
    height:75px;
    transform:translate(-50%,-50%);
    display:flex;
    justify-content:center;
    align-items:center;
}

.stamp img{
    width:75px;
    height:75px;
    object-fit:contain;
    animation:pop .25s;
}


/*==========================
 スタンプ位置
==========================*/

/* 電子制御 */

#control{
    left:22%;
    top:10%;
}

/* 機械 */

#machine{
    left:28%;
    top:41.5%;
}

/* 建築 */

#architecture{
    left:70.5%;
    top:41.5%;
}

/* 電気情報 */

#electrical{
    left:28.5%;
    top:69%;
}

/* 環境都市 */

#civil{
    left:70.5%;
    top:69.5%;
}


/*==========================
 探索率
==========================*/

#progress{
    margin:18px auto;
}

progress{
    width:min(70vw,260px);
}

#count{
    margin-top:6px;
}


/*==========================
 QR
==========================*/

#scan{
    margin:20px;
}

#scan-button{
    font-family:"DotGothic16";
    font-size:16px;
    padding:14px 28px;
    border:none;
    border-radius:12px;
    background:#2979ff;
    color:white;
    cursor:pointer;
}

#scan-button:hover{
    background:#125fd6;
}

#reader{
    display:none;
    width:320px;
    margin:20px auto;
}

#close-camera{
    display:none;
    margin:10px auto;
    padding:10px 20px;
    font-family:"DotGothic16";
    background:#888;
    color:#fff;
    border:none;
    border-radius:10px;
}

/*==========================
 開発モード
==========================*/

#debug-panel{
    margin:30px auto;
    padding:15px;
    width:min(90%,380px);
    border:2px dashed #888;
    border-radius:12px;
    background:#fff;
}

.debug-buttons{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:10px;
}

.debug-buttons button{
    width:42px;
    height:42px;
}


/*==========================
 GET!!
==========================*/

#get-effect{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.get-box{
    background:white;
    padding:28px;
    border-radius:18px;
    animation:pop .3s;
}

.get-box h2{
    margin-bottom:15px;
}

.get-box img{
    width:110px;
}

/*==========================
 COMPLETE BOX
==========================*/

.complete-box{
    background:#fdf4c7;
    border:6px solid #9c7a00;
    padding:32px;
    border-radius:18px;
    animation:pop .3s;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    max-width:320px;
}

.complete-box h1{
    font-size:3rem;
    margin-bottom:10px;
}

.complete-box h2{
    color:#8b5a00;
    margin-bottom:15px;
}

.complete-box p{
    line-height:1.8;
}

/*==========================
 アニメーション
==========================*/

@keyframes pop{
    0%{
        transform:scale(.3);
        opacity:0;
    }
    70%{
        transform:scale(1.15);
    }
    100%{
        transform:scale(1);
        opacity:1;
    }
}

/*==========================
 COMPLETE
==========================*/

#complete-effect{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:10000;
}

#close-complete{
    margin-top:20px;
    padding:12px 24px;
    font-family:"DotGothic16";
    font-size:16px;
    border:none;
    border-radius:10px;
    background:#2979ff;
    color:white;
    cursor:pointer;
}

#close-complete:hover{
    background:#125fd6;
}