/* VARIABLES */
:root {
    --main-color: #48A8FF;
    --bg: #F4F4F4;
    --text-color: #0A0A0A;

    --red: #D41A2E;

    --card-bg-color: #FFFFFF;
    --input-bg-color: #D9D9D9;
}

.background-svg-debug{
    background-color: #cc5577;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 60'%3E%3Cg %3E%3Crect fill='%23cc5577' width='11' height='11'/%3E%3Crect fill='%23ce5776' x='10' width='11' height='11'/%3E%3Crect fill='%23d05a76' y='10' width='11' height='11'/%3E%3Crect fill='%23d15c75' x='20' width='11' height='11'/%3E%3Crect fill='%23d35f74' x='10' y='10' width='11' height='11'/%3E%3Crect fill='%23d46174' y='20' width='11' height='11'/%3E%3Crect fill='%23d66473' x='30' width='11' height='11'/%3E%3Crect fill='%23d76673' x='20' y='10' width='11' height='11'/%3E%3Crect fill='%23d96972' x='10' y='20' width='11' height='11'/%3E%3Crect fill='%23da6c72' y='30' width='11' height='11'/%3E%3Crect fill='%23db6e71' x='40' width='11' height='11'/%3E%3Crect fill='%23dc7171' x='30' y='10' width='11' height='11'/%3E%3Crect fill='%23dd7471' x='20' y='20' width='11' height='11'/%3E%3Crect fill='%23de7671' x='10' y='30' width='11' height='11'/%3E%3Crect fill='%23df7971' y='40' width='11' height='11'/%3E%3Crect fill='%23e07c71' x='50' width='11' height='11'/%3E%3Crect fill='%23e17e71' x='40' y='10' width='11' height='11'/%3E%3Crect fill='%23e28171' x='30' y='20' width='11' height='11'/%3E%3Crect fill='%23e38471' x='20' y='30' width='11' height='11'/%3E%3Crect fill='%23e38771' x='10' y='40' width='11' height='11'/%3E%3Crect fill='%23e48972' y='50' width='11' height='11'/%3E%3Crect fill='%23e58c72' x='60' width='11' height='11'/%3E%3Crect fill='%23e58f73' x='50' y='10' width='11' height='11'/%3E%3Crect fill='%23e69173' x='40' y='20' width='11' height='11'/%3E%3Crect fill='%23e69474' x='30' y='30' width='11' height='11'/%3E%3Crect fill='%23e79775' x='20' y='40' width='11' height='11'/%3E%3Crect fill='%23e79a75' x='10' y='50' width='11' height='11'/%3E%3Crect fill='%23e89c76' x='70' width='11' height='11'/%3E%3Crect fill='%23e89f77' x='60' y='10' width='11' height='11'/%3E%3Crect fill='%23e8a278' x='50' y='20' width='11' height='11'/%3E%3Crect fill='%23e9a47a' x='40' y='30' width='11' height='11'/%3E%3Crect fill='%23e9a77b' x='30' y='40' width='11' height='11'/%3E%3Crect fill='%23e9aa7c' x='20' y='50' width='11' height='11'/%3E%3Crect fill='%23e9ac7e' x='80' width='11' height='11'/%3E%3Crect fill='%23eaaf7f' x='70' y='10' width='11' height='11'/%3E%3Crect fill='%23eab281' x='60' y='20' width='11' height='11'/%3E%3Crect fill='%23eab482' x='50' y='30' width='11' height='11'/%3E%3Crect fill='%23eab784' x='40' y='40' width='11' height='11'/%3E%3Crect fill='%23eaba86' x='30' y='50' width='11' height='11'/%3E%3Crect fill='%23ebbc88' x='90' width='11' height='11'/%3E%3Crect fill='%23ebbf8a' x='80' y='10' width='11' height='11'/%3E%3Crect fill='%23ebc18c' x='70' y='20' width='11' height='11'/%3E%3Crect fill='%23ebc48e' x='60' y='30' width='11' height='11'/%3E%3Crect fill='%23ebc790' x='50' y='40' width='11' height='11'/%3E%3Crect fill='%23ebc992' x='40' y='50' width='11' height='11'/%3E%3Crect fill='%23ebcc94' x='90' y='10' width='11' height='11'/%3E%3Crect fill='%23ebce97' x='80' y='20' width='11' height='11'/%3E%3Crect fill='%23ebd199' x='70' y='30' width='11' height='11'/%3E%3Crect fill='%23ecd39c' x='60' y='40' width='11' height='11'/%3E%3Crect fill='%23ecd69e' x='50' y='50' width='11' height='11'/%3E%3Crect fill='%23ecd8a1' x='90' y='20' width='11' height='11'/%3E%3Crect fill='%23ecdba4' x='80' y='30' width='11' height='11'/%3E%3Crect fill='%23ecdda6' x='70' y='40' width='11' height='11'/%3E%3Crect fill='%23ece0a9' x='60' y='50' width='11' height='11'/%3E%3Crect fill='%23ede2ac' x='90' y='30' width='11' height='11'/%3E%3Crect fill='%23ede4af' x='80' y='40' width='11' height='11'/%3E%3Crect fill='%23ede7b2' x='70' y='50' width='11' height='11'/%3E%3Crect fill='%23ede9b5' x='90' y='40' width='11' height='11'/%3E%3Crect fill='%23eeecb8' x='80' y='50' width='11' height='11'/%3E%3Crect fill='%23EEB' x='90' y='50' width='11' height='11'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}


/* FONT */

@font-face {
  font-family: 'Poppins';
  src: url('Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

/* LIB */

/* <SWITCH> */

.switch {
    position: relative;
    display: inline-block;
    width: 55px;   /* 60 - 5 */
    height: 29px;  /* 34 - 5 */
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch .switch-slider:before {
    position: absolute;
    content: "";
    height: 21px;   /* 26 - 5 */
    width: 21px;    /* 26 - 5 */
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked + .switch-slider {
    background-color: #2196F3;
}

.switch input:focus + .switch-slider {
    box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .switch-slider:before {
    -webkit-transform: translateX(22px); /* 26 - 4 */
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.switch .switch-slider.round {
    border-radius: 29px; /* 34 - 5 */
}

.switch .switch-slider.round:before {
    border-radius: 50%;
}

/* </SWITCH> */


/* <SLIDER> */

.slider {
  width: 100px;
  aspect-ratio: 3 / 8;
  position: relative;
  
  border-radius: calc(100px / 3.5);
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
}


.slider::before,
.slider::after {
  content: "";
  
  width: 100%;
  
  position: absolute;
  left: 0;
}

.slider::before {
  height: calc((1 - var(--val)) * 100%);
  top: 0;
  
  background: #D9D9D9;
}
.slider::after {
  height: calc(var(--val) * 100%);
  bottom: 0;
  
  background: #48A8FF;
}

/* </SLIDER> */




/* - - - - - - - - - - - - - - - - - */



/* MAIN */
*{
    font-family: 'Poppins';
    font-weight: 400;
}

body {
    margin: 0;
    padding: 0;
    
    width: 100%;
    height: auto;
    min-height: 100dvh;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--bg);
}

.navbar{
    width: 100%;
    height: 70px;
    background-color: var(--main-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: var(--bg);
}

.navbar .start{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.navbar .start span{
    font-weight: 600;
    font-size: 22px;
    margin-left: 30px;
}

.navbar .end {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 30px;
}

.navbar .end a {
    font-size: 16px;
    text-decoration: none;
    color: var(--bg);
}

.navbar .end a.sel{
    font-weight: 600;
    text-decoration: underline;
} 
.navbar .mobile-button-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bg);
    background-color: transparent;
    border-radius: 5px;

    display: none;
}
.navbar .mobile-button-menu .icon{
    width: 23px;
}

main{
    width: 94%;
    max-width: 1100px;
    height: fit-content;
    /* background-color: rgba(0, 0, 0, 0.062); */
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
main .line{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    margin-top: 50px;
    row-gap: 50px;
}

main .sec{
    display: flex;
    flex-direction: column;
    /* background-color: red; */
    max-width: 500px;
    gap: 10px;
}

main .sec .title{
    font-weight: 600;
    font-size: 30px;
}

main .sec .content{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
}

.conf-card {
    width: 300px;
    min-height: 254px;
    height: fit-content;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 1px rgba(128, 128, 128, 0.048);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    position: relative;
}

.conf-card .switch-on-card{
    position: absolute;
    right: 0;
    top: 13px;
    right: 20px;
}

.conf-card label{
    font-size: 17px;
}

.conf-card .input-line{
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}






.conf-card .input-line input {
    border: none;
    border-radius: 5px;
    background-color: var(--input-bg-color);
    height: 28px;
    text-indent: 8px;
    width: 100%;
    padding: 0;
}


.conf-card.custom{
    min-height: fit-content;
    padding-block: 20px;
}

.conf-card.custom .subsection-title{
    font-size: 18px;
    width: 260px;
    font-weight: 600;
    height: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


.conf-card.custom .switch-on-card{
    position: relative;
    right: unset;
    top: unset;
    right: unset;
}



.input-password {
    position: relative;
}
.input-password input{
    width: 220px !important;
    
}
.input-password .show-pw{
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: var(--input-bg-color);
    right: 0px;
    top: 29px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
}

.input-password .show-pw .icon{
    width: 15px;
}

.slider-card{
    width: fit-content;
    height: 254px;
    box-shadow: 0px 0px 10px 1px rgba(128, 128, 128, 0.048);
    border-radius: 20px;
    background-color: var(--card-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 20px;
}
.slider-card .top{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 60px;
}

.slider-card .bottom{
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.slider-card .bottom .slider{
    width: 60px;
    border-radius: 10px;
}

.slider-card .bottom .value{
    text-align: center;
}

.slider-card .top .title {
    font-size: 17px;
    font-weight: 400;
}

.slider-card .icon{
    width: 35px;
    transform: translateY(-6px);
}
.switch-card{
    width: calc(300px - 20px * 2);
    height: 60px;
    box-shadow: 0px 0px 10px 1px rgba(128, 128, 128, 0.048);
    border-radius: 20px;
    background-color: var(--card-bg-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
}


.switch-card .title {
    font-size: 17px !important;
    font-weight: 600;
}

.switch-card .bottom{
    width: 100%;
}


.remote-control-card {
    width: 400px;
    min-height: 335px;
    height: fit-content;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 1px rgba(128, 128, 128, 0.048);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.remote-control-card .left-part{
    flex: 1;
    /* background-color: red; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.remote-control-card .left-part .top{
    width: 100%;
    height: 50px;
    /* background-color: yellow; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remote-control-card .remote-control-icon{
    width: 30px;
    padding-inline: 10px;
}

.remote-control-card .remote-control-icon.power-icon{
    filter: brightness(0) saturate(100%) invert(19%) sepia(85%) saturate(3511%) hue-rotate(343deg) brightness(84%) contrast(98%);
}



.navigation-container {
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0px;
}
    
.navigation-container .navigation-btn{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-container .navigation-btn svg{width: 25px;}

.navigation-container .line2 {grid-row-start: 2;}
.navigation-container .line3 {grid-row-start: 3;}

.remote-control-card .main-buttons{
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.remote-control-card .main-buttons svg{width: 35px;}

.remote-control-card .secondary-buttons{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 5px;
}

.remote-control-card #keypad{
    width: 140px;
    height: 40px;
    border-radius: 10px;
}

.remote-control-card .secondary-buttons button{
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid var(--input-bg-color);
    border-radius: 10px;
    padding: 3px 10px;
}
.remote-control-card .secondary-buttons svg  {width: 20px;}

.remote-control-card .secondary-buttons .channel-changer{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.remote-control-card .right-part{
    width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.048);
}

.remote-control-card .right-part .icon {
    width: 40px;
}

.remote-control-card .right-part #volume-slider {
    width: 35px;
    height: 200px;
    aspect-ratio: unset;
}
.input-card .top{
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.input-card .top .title {
    font-size: 16px;
    font-weight: 400;
}

.input-card .top svg{
    width: 22px;
}

.input-card{
    width: calc(250px - 20px * 2);
    padding-inline: 20px;
    height: fit-content;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 1px rgba(128, 128, 128, 0.048);
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

.input-card .value-data{
    border: none;
    font-size: 17px;
    padding-block: 5px;
    border-radius: 10px;
    background-color: var(--main-color);
    color: #134d83;
    font-weight: 600;
}

.input-card .desc{
    text-align: center;
    margin-top: 15px;
}



.line.first{
    flex-wrap: unset;
}

.input-card.camera{
    width: 320px;
    height: fit-content;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-card.camera .preview{
    width: 100%;
    flex:1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
}

.input-card.camera .menus{
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 4px;
}

.input-card.camera .menu{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: fit-content;
    gap: 13px;
}

.input-card.camera .menu-title{
    font-size: 16px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.input-card.camera .menu-icon{
    width: 22px;
}

.input-card.camera .menu .value-data{
    font-size: 14px;
    width: 100%;
}

@media screen and (max-width: 640px) {
   

    .line.first{
        flex-wrap: wrap;
    }

    .slider-card{
        padding-inline: 0;
        width: 300px;
    }

    

    main .sec{
        align-items: center;
    }

    main .sec .content{
        justify-content: center;
        margin-top: 30px;
    }

    main .line{
        justify-content: center;
    }


    .input-card{
        width: 100%;
    }



    .remote-control-card{
        flex-direction: column;
    }

    .remote-control-card .right-part {
        width: 100%;
        height: 100px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        border-left: 1px solid rgba(0, 0, 0, 0.048);
        position: relative;
    }
    .remote-control-card .left-part {
    flex: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .remote-control-card {
        width: 350px;
        
    }

    .remote-control-card .right-part #volume-slider {
        width: 35px;
        height: 200px;
        position: absolute;
        top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
    }

    #remote-control-sec{
        width: 100%;
    }

    .remote-control-card .right-part .icon{
        padding-left: 20px;
        width: 30px;
    }

    .remote-control-card .right-part .value{
        padding-right: 20px;
    }


    main {
        padding-bottom: 80px;
    }

    .navbar{
        display: flex;
        flex-direction: column;
        height: fit-content;
    }

    .navbar .start{
        width: 100%;
        justify-content: space-between;
        min-height: 70px;
    }
    .navbar .mobile-button-menu{
        display: flex;
        margin-right: 20px;
        cursor: pointer;
    }

    .navbar .end {
        display: none;
        flex-direction: column;
        text-align: center;
        margin: 0;
        width: 100%;
        border-top: 1px solid rgba(0, 0, 0, 0.048);
        padding-top: 20px;
    }

    .navbar .end a{
        width: 100%;
        padding-block: 15px;
    }

    .sec.wifi{
        width: 100%;
        max-width: 1100px;
    }

    .sec.wifi .content{
        width: 100%;
    }
    .sec.wifi .conf-card,
    .conf-card{
        width: 100%;
        min-height: 300px;
    }

    .sec.wifi .input-line,
    .conf-card .input-line{
        width: calc(100% - 40px);
    }
    .sec.wifi .input-line input,
    .conf-card .input-line input {
        height: 40px;
        font-size: 14px;
    }
    .input-password .show-pw {
        height: 40px;
        width: 40px;
    }

    .conf-card.custom{
        padding-block: 20px 30px;
    }
    .conf-card.custom .subsection-title{
        width: calc(100% - 40px);
    }
}