:root{
    --nfpav-bgcolor: white;
    --nfpav-color: rgb(186, 73, 73);
    --nfpav-color2: rgb(97, 107, 186);
    --nfpav-color3: rgb(130, 185, 98);
}

body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgba(255, 255, 255, 0.8);
}
h1, h2, h3, h4, h5, h6{
    text-transform: uppercase;
    margin: 0;
}
h1{

    margin-bottom: 10px;
    color:var(--nfpav-color);
}
input, select{
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    border: 1px solid var(--nfpav-color);
    margin-bottom: 5px;
}
button{
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--nfpav-color);
    background-color: var(--nfpav-color);
    color: white;
    padding: 8px;
    font-size: 11px;
    border-radius: 4px;
    transition: 0.3s ease-in-out;
    margin-bottom: 5px;
    cursor: pointer;
}
button:hover{
    opacity: 0.7;
}
a{
    color: var(--nfpav-color);
    text-decoration: none;
}

.nfpav_page{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto 24px;
    background-color: var(--nfpav-bgcolor);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1500px;
    margin: auto;
    border: 1px solid #ccc;
}
.nfpaappv_canvas{
    height: 300px;
    right: 55px;
    top: -31px;
    position: relative;
    z-index: -1;
}


.nfpav_footer{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border-top: 1px solid #ccc;
    background-color: var(--nfpav-bgcolor);
}
.nfpav_content{
    display: grid;
    grid-template-columns: 200px auto;
    grid-template-rows: 1fr;
}
.nfpav_content_left{
    border-right: 1px solid #ccc;
    overflow: auto;
    padding: 16px;
    position: absolute;
    bottom: 24px;
    top: 250px;
    width: 200px;
    display: block;
}
.nfpav_content_right{
    overflow: auto;
    padding: 16px;
    position: absolute;
    bottom: 24px;
    top: 250px;
    left: 233px;
    right: 0;
    display: block;
}
.nfpav_content_right table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.nfpav_content_right table th{
    text-align: left;
    background-color: var(--nfpav-color2);
    padding: 8px;
    color: white;
    font-size: 12px;    
}
.nfpav_content_right table td{
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 12px;
    text-align: left;
}
.tablerow_grey{
    background-color: rgba(0, 0, 0, 0.05);
}

/* HEADER */
.nfpav_header{
    display: grid;
    grid-template-columns: auto 300px;
    border-bottom: 1px solid #ccc;
    gap: 10px;
    height: 250px;
    transition: 0.3s ease-in-out;
}
.header_structure{
    display: grid;
    grid-template-columns: 130px minmax(200px, 800px);
    gap: 10px;
    height: 250px;
    box-sizing: border-box;
}
.info_actions{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 16px;
}
.info_details{
    height: 250px;
    overflow: auto;
}
.info_details div{
    padding: 16px;
    font-size: 12px;;
}
.session_input{
    display: grid;
    grid-template-columns: auto 100px;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

/* SESSION DOM */
.levelist{
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 4px;
}
.addnewprod{
    background-color: var(--nfpav-color2);
    color: white;
    display: inline-block;
    text-align: center;
    padding: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.2;
    transition: 0.3s ease-in-out;
}
.zonehead{
    display: grid;
    grid-template-columns: auto 30px;
    align-items: center;
    cursor: pointer;
}
.zonehead:hover{
    background-color: rgba(0,0,0,0.05);
}
.zonehead:hover .addnewprod{
    opacity: 1;
}
.zonelist{
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 7px;
}
.productitem{
    display: grid;
    grid-template-columns: auto 20px;
    grid-template-rows: 20px;
    align-items: center;
    font-size: 12px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 6px;
}
.productitem button{
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
}


/* NEW PROD POPUP */
.newproduct{
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}
.imgcaracell{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.imgcaracell img{
    height: 150px;
    width: auto;
}


.modcolgrid{
    position: relative;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(1, minmax(60px, 1fr));
    grid-template-rows: repeat(1, auto);
    justify-items: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.modcolgrid div{
    text-align: center;
    display: block;
    min-width: 20px;
    max-width: 40px;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    cursor: pointer;
}
.lightmodule{
    background-color: black;;
}
.lightmodule:hover{
    opacity: 0.7;
}
.options_block{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.corner_mod_front, .corner_mod_back, .corner_mod_fleft, .corner_mod_fright, .corner_mod_bleft, .corner_mod_bright, .corner_mod_lsides, .corner_mod_rsides{
    border:1px solid black;
}
.corner_mod_lsides, .corner_mod_rsides{
    width: 60px;
    height: 60px;
    border-radius: 30px;
}


.corner_mod_fleft{
    transform: rotate(-30deg);
}
.corner_mod_fright{
    transform: rotate(30deg);
}
.corner_mod_bleft{
    transform: rotate(30deg);
}
.corner_mod_bright{
    transform: rotate(-30deg);
}
.corner_mod_lsides{

}
.corner_mod_rsides{

}
.module_options{
    margin: auto;
    bottom: -34px;
    width: 200px !important;
}
.editprod_actions{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.editprod_savebutton{
    width: 200px;
}

/* CELL AREAS */
.cell_actions{
    display: none;
}

@media screen and (min-width: 1400px){
    .nfpav_header{
        grid-template-columns: auto 400px;
    }
}
@media screen and (min-width: 1300px){
    .nfpav_header{
        grid-template-columns: auto 350px;
    }
}
@media screen and (max-width: 650px){
    .nfpav_header{
        grid-template-columns: auto 0px;
    }

    .nfpav_content_left{
        background-color: white;
        z-index: 3;
        width: 100%;
        box-sizing: border-box;
        display: none;
    }
    .nfpav_content_right {
        background-color: white;
        display: none;
        left: 0;
        z-index: 3;
    }
    .nfpaappv_canvas{
        position: fixed;
        z-index: -1;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 500px;
    }
    .act_button1, .info_restart, .act_button6{
        display: none !important;
    }
    .info_viewonly{
        display: block !important;
    }

    .nfpav_header{
        grid-template-columns: auto;
        height: 249px;
        border-bottom: 1px solid #ccc;
    }
    .header_structure{
        grid-template-rows: 50px auto;
        grid-template-columns: 1fr;
        height: 250px;
        padding: 2%;
    }
    .info_details{
        height: 135px;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    .cell_actions{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    .info_details div{
        height: 130px;
        overflow: auto;
        margin: 0;
        padding: 0;
    }
    .info_actions{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        gap: 8px;
    }
}