@font-face {
    font-family: 'bold';
    src: url(/src/public/font/MADE\ TOMMY\ Bold_PERSONAL\ USE.otf);
}

@font-face {
    font-family: 'medium';
    src: url(/src/public/font/MADE\ TOMMY\ Regular_PERSONAL\ USE.otf);
}

:root{
    --background-color: #ececec;
    --second-color: #ffffff;
    --primary-color: #0c4b2c;
    --fonr-color: #ffffff;
}

body{
    background-color: var(--background-color);
    height: 150dvh;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 0;
    margin: 0;
    position: relative;
}

body::-webkit-scrollbar{
    background-color: transparent;
    width: 0;
}

nav{
    background-color: var(--primary-color);
    height: 17%;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    color: var(--fonr-color);
    padding: 20px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: 80% 20%;
    grid-template-rows: repeat(2, 1fr);
    gap: 0px;
}

.nav-container{
    display: flex;
    flex-direction: column;
    grid-column: span 1.5 / span 2;
    grid-row-start: 1;
}

.hell{
    font-family: 'medium', sans-serif;
}

nav span{
    font-family: 'bold', sans-serif;
    font-size: x-large;
}

nav i{
    font-family: 'medium', sans-serif;
    font-style: normal;
}

.img-icon-nav{
    display: flex;
    flex-direction: row-reverse;
}

nav img{
    width: 80px;
}

.info{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-columns: 32% 32% 32%;
    width: 100%;
    grid-column: span 2;
    grid-row-start: 2;
    margin-top: -5%;
}

.info span{
    font-size: large;
}

.infodb{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18%;
    gap: 7%;
}

.datadb{
    font-family: 'medium', sans-serif;
}

.main-container{
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data{
    background-color: var(--second-color);
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    height: 27%;
    margin: 20px 15px 20px 15px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    padding-left: 8%;
    padding-right: 8%;
}

.progres{
    height: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative  ;
}

.out{
    border-radius: 50%;
    height: 160px;
    width: 160px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    background-color: var(--second-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.in{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    -webkit-box-shadow: inset 5px 5px 10px 0px #000000; 
    box-shadow: inset 5px 5px 10px 0px #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-data-kelm{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-data-ph{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-data-kelm span{
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    margin-left: 8px;
    margin-bottom: 2px;
    font-family: 'medium', sans-serif;
}

.value-data-ph span{
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-left: 4px;
    margin-bottom: 2px;
    font-family: 'medium', sans-serif;
}

.img-kelm{
    height: 60%;
    width: 55%;
    margin-left: 10px;
    margin-top: -15px;
}



.img-ph{
    height: 35%;
    width: 30%;
    margin-top: 4px;
}

#circle-kelm{
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20px;
    stroke-dasharray: 440;
    stroke-dashoffset: 0;
    transition:0.5s linear;
}

#circle-ph{
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20px;
    stroke-dasharray: 440;
    stroke-dashoffset: 0;
    transition: 0.5s linear;
}

svg{
    position: absolute;
}

.judul{
    margin: 10px 20px 15px 25px;
}

.judul span{
    color: black;
    font-family: 'bold', sans-serif;
    font-size: larger;
}

.setting{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 0px 20px 90px 20px;
    height: 15.5%;
    gap: 10px;
}

.set{
    background-color: var(--second-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    height: 100%;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
}

.set img{
    width: 50%;
}

.set span{
    margin-bottom: 10px;
    font-family: 'bold',sans-serif;
    font-size: small;
}

.set:hover{
    transform: scale(102%);
}

.set:active{
    transform: scale(98%);
}

.btn-perintah{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin: 0px 20px 0px 20px;
    height: 15%;
}

.btn-perintah button{
    border: 1px solid var(--second-color);
    background-color: var(--second-color);
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.btn-perintah button:hover{
    transform: scale(102%);
}

.btn-perintah button:active{
    transform: scale(98%);
}

.btn-perintah button span{
    font-family: 'bold', sans-serif;
    font-size: larger;
}

.img-siram{
    width: 60%;
    margin-top: -15%;
    pointer-events: none;
    user-select: none;
}

.img-pupuk{
    width: 30%;
}

.siram{
    margin-top: -15%;
}

.pupuk{
    margin-top: 3%;
}

#overlayPupuk{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-pupuk{
    position: fixed;
    background-color: var(--second-color);
    height: 200px;
    width: 50%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-pupuk span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}

.popup-pupuk input{
    margin-top: 6%;
    height: 5px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-family: 'medium', sans-serif;
    color: var(--fonr-color);
    padding: 15px;
}

.popup-pupuk input::placeholder{
    color: var(--fonr-color);
}

.popup-pupuk button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

#overlayBuah{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-buah{
    position: fixed;
    background-color: var(--second-color);
    height: 200px;
    width: 50%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-buah span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}


.main-buah select{
    margin-top: 10%;
    margin-bottom: 0;
    height: 30px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'medium', sans-serif;
}

.popup-buah option{
    border-radius: 10px;
}

.popup-buah button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

.main-buah{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-buah{
    margin-top: 5%;
}

#overlaySiram{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-siram{
    position: fixed;
    background-color: var(--second-color);
    height: 200px;
    width: 50%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-siram span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}

.popup-siram input{
    margin-top: 6%;
    height: 5px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-family: 'medium', sans-serif;
    color: var(--fonr-color);
    padding: 15px;
}

.popup-siram input::placeholder{
    color: var(--fonr-color);
}

.popup-siram button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

.notif{
    position: fixed;
    background-color: var(--second-color);
    top: 20%;
    left: 50%;
    height: 100px;
    width: 30%;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: 30% 70%;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    transform: translate(-50%, -50%) translateY(-300%);
    transition: 0.3s linear;
    pointer-events: none;
    user-select: none;
}

.notif.show{
    transform: translate(-50%, -50%) translateY(0%);
    transition: 0.3s linear;
}

.img-notif-pupuk{
    width: 40%;
    margin-left: 70%;
}

.span-notif-pupuk{
    margin-left: 10%;
    font-family: 'bold';
}

.span-notif-siram{
    margin-left: 20%;
    font-family: 'bold';
}

.img-notif-siram{
    width: 90%;
    margin-top: 3%;
    margin-left: 40%;
}

@media screen and (max-width: 750px){
    body{
    background-color: var(--background-color);
    height: 100dvh;
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
}

nav{
    background-color: var(--primary-color);
    height: 17%;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    color: var(--fonr-color);
    padding: 10px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: 80% 20%;
    grid-template-rows: repeat(2, 1fr);
    gap: 0px;
}

.nav-container{
    display: flex;
    flex-direction: column;
    grid-column: span 1.5 / span 2;
    grid-row-start: 1;
}

.hell{
    font-family: 'medium', sans-serif;
}

nav span{
    font-family: 'bold', sans-serif;
    font-size: x-large;
}

nav i{
    font-family: 'medium', sans-serif;
    font-style: normal;
}

.img-icon-nav{
    display: flex;
    flex-direction: row-reverse;
}

nav img{
    width: 60px;
    height: 60px;
}

.info{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-columns: 32% 32% 32%;
    width: 100%;
    grid-column: span 2;
    grid-row-start: 2;
    margin-top: -5%;
}

.info span{
    font-size: large;
}

.infodb{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18%;
    gap: 7%;
}

.datadb{
    font-family: 'medium', sans-serif;
}

.main-container{
    margin: 0;
    height: calc(100dvh - 17%);
    display: flex;
    flex-direction: column;
}

.data{
    background-color: var(--second-color);
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    height: 27%;
    margin: 20px 15px 20px 15px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    padding-left: 8%;
    padding-right: 8%;
}

.progres{
    height: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative  ;
}

.out{
    border-radius: 50%;
    height: 160px;
    width: 160px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    background-color: var(--second-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.in{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    -webkit-box-shadow: inset 5px 5px 10px 0px #000000; 
    box-shadow: inset 5px 5px 10px 0px #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-data-kelm{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-data-ph{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-data-kelm span{
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    margin-left: 8px;
    margin-bottom: 2px;
    font-family: 'medium', sans-serif;
}

.value-data-ph span{
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-left: 4px;
    margin-bottom: 2px;
    font-family: 'medium', sans-serif;
}

.img-kelm{
    height: 60%;
    width: 55%;
    margin-left: 10px;
    margin-top: -15px;
}



.img-ph{
    height: 35%;
    width: 30%;
    margin-top: 4px;
}

#circle-kelm{
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20px;
    stroke-dasharray: 440;
    stroke-dashoffset: 0;
    transition:0.5s linear;
}

#circle-ph{
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20px;
    stroke-dasharray: 440;
    stroke-dashoffset: 0;
    transition: 0.5s linear;
}

svg{
    position: absolute;
}

.judul{
    margin: 20px 20px 15px 25px;
}

.judul span{
    color: black;
    font-family: 'bold', sans-serif;
    font-size: larger;
}

.setting{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 0px 20px 0px 20px;
    height: 15.5%;
    gap: 10px;
}

.set{
    background-color: var(--second-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    height: 100%;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
}

.set img{
    width: 50%;
}

.set span{
    margin-bottom: 10px;
    font-family: 'bold',sans-serif;
    font-size: small;
}

.set:hover{
    transform: scale(98%);
}

.btn-perintah{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin: 0px 20px 0px 20px;
    height: 15%;
}

.btn-perintah button{
    border: 1px solid var(--second-color);
    background-color: var(--second-color);
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.btn-perintah button:hover{
    transform: scale(98%);
}

.btn-perintah button span{
    font-family: 'bold', sans-serif;
    font-size: larger;
}

.img-siram{
    width: 60%;
    margin-top: -15%;
}

.img-pupuk{
    width: 30%;
}

.siram{
    margin-top: -15%;
}

.pupuk{
    margin-top: 3%;
}

#overlayPupuk{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-pupuk{
    position: absolute;
    background-color: var(--second-color);
    height: 200px;
    width: 80%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-pupuk span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}

.popup-pupuk input{
    margin-top: 6%;
    height: 5px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-family: 'medium', sans-serif;
    color: var(--fonr-color);
    padding: 15px;
}

.popup-pupuk input::placeholder{
    color: var(--fonr-color);
}

.popup-pupuk button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

#overlayBuah{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-buah{
    position: absolute;
    background-color: var(--second-color);
    height: 200px;
    width: 80%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-buah span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}


.main-buah select{
    margin-top: 10%;
    margin-bottom: 0;
    height: 30px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'medium', sans-serif;
}

.popup-buah option{
    border-radius: 10px;
}

.popup-buah button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

.main-buah{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-buah{
    margin-top: 5%;
}

#overlaySiram{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
    opacity: 0;
}

.popup-siram{
    position: absolute;
    background-color: var(--second-color);
    height: 200px;
    width: 80%;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 25px;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    fill: none;
    user-select: none;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}

.popup-siram span{
    font-family: 'bold', sans-serif;
    margin-top: 0;
}

.popup-siram input{
    margin-top: 6%;
    height: 5px;
    width: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-family: 'medium', sans-serif;
    color: var(--fonr-color);
    padding: 15px;
}

.popup-siram input::placeholder{
    color: var(--fonr-color);
}

.popup-siram button{
    background-color: var(--primary-color);
    width:100px;
    height: 25px;
    border-radius: 10px;
    color: var(--fonr-color);
    font-family: 'bold',sans-serif;
    margin-top: 5%;
}

.notif{
    position: absolute;
    background-color: var(--second-color);
    top: 8%;
    left: 50%;
    height: 10%;
    width: 70%;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-columns: 30% 70%;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87); 
    box-shadow: 5px 5px 20px 1px rgba(0,0,0,0.87);
    transform: translate(-50%, -50%) translateY(-200%);
    transition: 0.3s linear;
    pointer-events: none;
    user-select: none;
}

.notif.show{
    transform: translate(-50%, -50%) translateY(0%);
    transition: 0.3s linear;
}

.img-notif-pupuk{
    width: 65%;
    margin-left: 40%;
}

.span-notif-pupuk{
    margin-left: 7%;
    font-family: 'bold';
}

.span-notif-siram{
    margin-left: 20%;
    font-family: 'bold';
}

.img-notif-siram{
    width: 100%;
    margin-top: 5%;
    margin-left: 40%;
}

}
