*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


:root{

    --radius:16px;

    --nav-height:72px;

    --max-width:900px;

}


html{
    height:100%;
    scroll-behavior:smooth;
}


body{

  

    min-height:100dvh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    overflow:hidden;

}


.app{

    display:flex;

    flex-direction:column;

    height:100dvh;

    max-width:900px;

    margin:auto;

}


header{
    /* border: 1px solid green; */
     background: black !important;
        color: white !important;
    flex:0 0 auto;

    padding:
        calc(env(safe-area-inset-top) + 20px)
        20px
        20px
        20px;

}


header h1{

    font-size:2rem;

    font-weight:600;

}


main {

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    padding:20px;

    padding-bottom:0px;

}


.hero{

    display:flex;

    flex-direction:column;

    gap:18px;

}


.hero h2{

    font-size:1.8rem;

}


.hero p{

    line-height:1.6;

}


.card{
    background: none;
    border-radius:16px;

    padding:20px;

    margin-bottom:20px;

}


button{

    cursor:pointer;

    border:none;

    border-radius:12px;

    padding:14px 20px;

    font-size:1rem;

}


a{

    color:inherit;

    text-decoration:none;

}


nav{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    height:
        calc(
            72px
            +
            env(safe-area-inset-bottom)
        );

    padding-bottom:
        env(safe-area-inset-bottom);

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index:999;

}


nav a{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:4px;

    height:100%;

    font-size:1.3rem;

    transition:.25s;

}


nav span{

    font-size:.75rem;

}


img{

    display:block;

    width:100%;

    height:auto;

}


.hidden{

    display:none;

}


.center{

    text-align:center;

}


.view {

    display:none;

}






/* ==========================================================
   WANDER HOME GRID
========================================================== */


.view.active {

    display:block;


}



#home-grid {

    display:grid;

    width:100%;

    min-height:calc(100dvh - 220px);

    grid-template-columns:repeat(2, 1fr);

    grid-template-rows:
        1fr
        1fr
        1fr;

    gap:10px;

    box-sizing:border-box;

    padding: 10px 10px 0px 10px;

}



#overall {
    border: 1px solid aqua;
    grid-column:1 / 3;
    margin-bottom: 30px;

}



.region {

    border:1px solid aqua;

    border-radius:12px;

    background:#111;

    overflow:hidden;

    padding:10px;

    color:white;

}



.region h2 {

    font-size:1.2rem;

    margin-bottom:10px;

}



/*==============================================================
    FLIGHTS
==============================================================*/


.flight-card {

    margin-top:10px;

    padding:10px;

    border:1px solid #333;

    border-radius:8px;

    background:#1d1d1d;

}


.flight-card h3 {

    margin:0 0 8px 0;

}


.flight-card p {

    margin:3px 0;

}





/* ==========================================================
        modal
========================================================== */





#region-modal {

    display:none;

    position:fixed;

    top:0;
    left:0;
    right:0;
    bottom:0;

    background:rgba(0,0,0,.85);

    z-index:5000;

    padding:20px;

}



#modal-content {

    background:#111;

    color:white;

    height:90vh;

    margin-top:5vh;

    border-radius:20px;

    padding:20px;

    overflow:auto;

    border:1px solid #333;

}



#modal-close {

    position:absolute;

    top:25px;

    right:30px;

    font-size:25px;

    background:none;

    color:white;

    border:none;

}



#modal-details h2 {

    margin-top:40px;

}



