/* ===== RESET ===== */

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

html,body{

    width:100%;
    height:100%;

    overflow:hidden;

    position:fixed;

    inset:0;

    background:#111;
    color:white;

    font-family:Arial, Helvetica, sans-serif;
}


/* ===== LAYOUT ===== */

body{
    display:flex;
    flex-direction:column;
}


/* ===== TOP BAR ===== */

#topbar{

    height:60px;

    background:#1b1b1b;

    border-bottom:1px solid #333;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 15px;
}

#topbar h1{

    font-size:15px;

    color:#ffffff;
}

#forecast-time{

    font-size:14px;

    color:#dddddd;
}


/* ===== MAIN ===== */

main{

    flex:1;

    position:relative;

    overflow:hidden;
}


/* ===== CANVAS ===== */

#weatherCanvas{

    width:100%;

    height:100%;

    display:block;

    background:#000;
}

/* ===== WP independent CANVAS ===== */

/*#wp2MapCanvas{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    display:block;

    z-index:3;

    touch-action:none;

    pointer-events:none;

}*/


/* ===== TOOLBAR ===== */

#toolbar{

    height:70px;

    background:#1b1b1b;

    border-top:1px solid #333;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    padding:10px;
}


/* ===== BUTTONS ===== */

.control-panel button,
.weather-layers button,
#RegionBtn{

    padding:10px 16px;

    border:none;

    border-radius:8px;

    background:#2c2c2c;

    color:white;

    font-size:14px;

    cursor:pointer;

    transition:0.2s;
}

button:hover{

    background:#444;
}

button:active{

    transform:scale(0.95);
}

#playBtn{
    background:blue;
}

#pauseBtn{
    background:red;
}

/* ===================================== */
/* Base Layout */
/* ===================================== */



/* ===================================== */
/* Desktop Layout */
/* ===================================== */

@media (min-width: 769px){

}



/* ===================================== */
/* Mobile Layout */
/* ===================================== */

@media (max-width: 768px){

 

    #toolbar{
    
        display:flex;
    
        flex-wrap:wrap;
    
        justify-content:center;
    
        gap:8px;
    
        padding:10px;
    
    }
    
    #toolbar button{
    
        flex:0 1 auto;
    
        min-width:80px;
    
        height:20px;
    
        max-width:160px;
   
        line-height:03px;

        font-size:5px;
    
    }
    
    
    #topbar{

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:4px;

        padding:5px;

        height:auto;

    }

    #layerToolbar{
    
        flex:0 1 auto;
    
        flex-wrap:wrap;
    
        justify-content:center;
    
        align-items:center;
    
        gap:6px;
    
        max-width:100%;

        padding:1px;

        margin:;
    
        min-height:1px;
        
    }
    
    #layerToolbar button{
    
        flex:0 1 auto;
    
        min-width:1%;
        max-width:20%;
    
    }
    
    #weatherCanvas{
    
        width:100%;
    
        height:100%;
    
        display:block;

        touch-action:none;
    
    }

    main{
        flex:1;
        position:relative;
        overflow:hidden;
    }

    html,
    body{
        overscroll-behavior:none;
        overflow:hidden;
        height:100%;
    }
    
    
    body{
        position:fixed;
        width:100%;
    }
    
    
    main{
        overflow:hidden;
        touch-action:none;
    }
    
    
    #toolbar{
        touch-action:none;
    }

    }

/* ============================= */
/* Dropup Control Panel */
/* ============================= */

.control-panel{

    position:relative;

}


.weather-layers{

    display:none;

    position:absolute;

    bottom:70px;

    left:-10px;

    background:#1b1b1b;

    border:1px solid #333;

    border-radius:8px;

    padding:4px;

    z-index:9999;

}


.weather-layers button{

    display:block;

    width:100px;

    margin:5px 0;

}

.weather-layers.show{

    display:block;

}

/* =================*/
/* WP buttons 
/* =================*/


.west-pacific-weather-layers{

    display:none;

    position:absolute;

    bottom:70px;

    left:95px;

    background:#1b1b1b;

    border:1px solid #333;

    border-radius:8px;

    padding:4px;

    z-index:9999;

}


.west-pacific-weather-layers button{

    display:block;

    width:100px;

    margin:5px 0;

    font-size:10px;
}

.west-pacific-weather-layers.show{

    display:block;

}

/* =================*/
/* WP2 buttons 
/* =================*/


.West-Pacific-Weather-Layers2{

    display:none;

    position:absolute;

    bottom:70px;

    left:-10px;

    background:#1b1b1b;

    border:1px solid #333;

    border-radius:8px;

    padding:4px;

    z-index:9999;

}


.West-Pacific-Weather-Layers2 button{

    display:block;

    width:100px;

    margin:5px 0;

    font-size:10px;
}

.West-Pacific-Weather-Layers2.show{

    display:block;

}

/* =================*/
/* WP2 buttons 
/* =================*/


.RF-Layers{

    display:none;

    position:absolute;

    bottom:70px;

    left:-10px;

    background:#1b1b1b;

    border:1px solid #333;

    border-radius:8px;

    padding:4px;

    z-index:9999;

}


.RF-Layers button{

    display:block;

    width:100px;

    margin:5px 0;

    font-size:10px;
}

.RF-Layers.show{

    display:block;

}

/* =================*/
/* PH H09 buttons 
/* =================*/


.PH-H09BAND {

    display:none;

    position:absolute;

    bottom:70px;

    left:95px;

    background:#1b1b1b;

    border:1px solid #333;

    border-radius:8px;

    padding:4px;

    z-index:9999;

}


.PH-H09BAND button{

    display:block;

    width:100px;

    margin:5px 0;

    font-size:10px;
}

.PH-H09BAND.show{

    display:block;

}


/* ===============*/
/* SLIDER POSITION
/* ===============*/

.slider-interactive-deck {
    position:relative;
    bottom: 95px;
    left: 100px; /* determines the Left or right position */
    z-index:3;
}

#weather-slider {
  width: 50%; /* Or change to a specific width like 80% if you want padding on the sides */
  max-width: 600px; /* Optional: Prevents the slider from getting too wide on large screens */
}


/* ======================================/*
/* SLIDER FORECAST DISPLAY TEXT POSITION /*
/* ======================================*/

#grib-active-date {
    position:relative;
    bottom: 100px;
    left: 100px;
    font-size: 15px;
    z-index:10;
}

/* ==================================== */
/* Title position                       */ 
/* ==================================== */

h1 {
    font-size: 200px;
    margin: 0 0 5px 0; /* Removes extra spacing, leaves a small gap below */
}

h2 {
    font-size: 10px;
    margin: 0 0 5px 0; /* Removes extra spacing, leaves a small gap below */
}

/* ==================================== */
/* Layer Titles                         */
/* ==================================== */

.wnpNMP-time {
    display: block;
    text-align: left;
}

.wnpNMP-layer-title {
    display: block;
    font-size: 8px;
    text-align: left;
    position: relative;
    left: -10px;
}

/* ===================================== */
/* Control Panel Button Layout           */
/* ===================================== */

.control-panel{
    display:grid;
    grid-template-columns:max-content max-content;
    grid-template-rows:max-content max-content max-content;
    column-gap:8px;
    row-gap:4px;
    align-items:center;
}

/* Row 1 */
#PhilippineBtn{
    grid-column:1;
    grid-row:1;
}

#H09WNP1Btn{
    grid-column:2;
    grid-row:1;
}

/* Row 2 */
#WPLayers2{
    grid-column:2;
    grid-row:3;
    
}

#H09PHBtn{
    grid-column:2;
    grid-row:2;
    position:static;
    transform:none;
    margin:0;
    white-space:nowrap;
}

#H09WNP2Btn{
    grid-column:2;
    grid-row:3;
    position:static;
    transform:none;
    margin:0;
    white-space:nowrap;
}

#RFLAYERBtn{
    grid-column:1;
    grid-row:2;
    position:static;
    transform:none;
    margin:0;
    white-space:nowrap;
}

/* ============================= */
/* PH Radar iframe               */
/* ============================= */

#PHRadarPanel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: hidden;

    font-family: "Carmen Sans", sans-serif;
    font-size: 14px;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#PANaHONRadarFrame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}