html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(#f0910e, #d2035b);
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
    overflow:auto;
}

.hide {
    display: none !important;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    width: 100vw;
    max-width: 420px;
    height: 45px;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3067d;
    color: #fff;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.logo-small {
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 18px;
    color: #fff;
    width: 80vw;
    display: flex;
    align-items: baseline;
    justify-content: left;
    margin: 0 0 0 10px;
}
.hello {
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 20px;
    color: #fff;
    width: 20vw;
    display: flex;
    align-items: center;
    justify-content: right;
    margin: 0 10px 0 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 98vw;
    max-width: 380px;
}

.card-header {
    position: relative;
    height: 25px;
}

.card-body {
    position: relative;
    text-align: center;
}
.card-bar {
    display: flex;
    align-items: flex-start;
    margin: 0 auto;
    justify-content: flex-start;
    overflow: auto hidden;
    white-space: normal;
    width: 100%;
}

.card-element {
    max-height: 700px;
    width: 380px;
    min-width: 380px;
}

.img-head {
    width: 380px;
    height: 700px;
    border-bottom: 1px solid #ddd;
    object-fit: cover; 
    /*object-position: 100% 0*/
}

.card-title {
    padding: 10px;
    text-align: left;
    position: relative;
    top: -250px;
    left: 0%;
    color: #ededed;
}

.card-title h2 span.light {
    background-color: #ffffffcc;
    margin: 2px 0;
    padding: 2px 0;
    line-height: 35px;
    color: #222222;
}

.card-title h2 span.dark {
    background-color: #000000cc;
    margin: 2px 0;
    padding: 2px 0;
    line-height: 35px;
    color: #ffffff;
}

.card-title h2 {
    margin: 0;
    font-size: 26px;
}

.card-desc {
    padding: 5px 10px;
    text-align: left;
    position: relative;
    left: 0%;
    color: #0e0e0e;
    font-size: 12px;
    overflow: auto;
    max-height: 680px;
}
.card-desc h3 {
    font-size: 20px;
}
.card-desc p {
    font-size: 15px;
}
.img-sec {
    width: 380px;
    height: 200px;
    object-fit: cover;
}
.next-page {
    margin-top: 20px;
    text-align: right;
    color: #0ae3e5;
}
.start-page {
    margin-top: 20px;
    text-align: left;
    color: #0ae3e5;
}

.card-footer {
    padding: 10px;
    display: flex;
    align-items: center;
}

.card-mini-element {
    max-height: 206px;
    width: 180px;
    padding: 0 5px;
}

.card-mini-title {
    padding: 10px;
    text-align: left;
    position: relative;
    top: -60px;
    left: 0%;
    color: #fff;
}

.mini-title {
    text-align: left;
    color: #6b6969;
    padding: 0 10px;
}

.img-mini {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d2045a;
}

.actions {
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin-bottom: 10px;
    font-size: 20px;
}

.actions i {
    color: #0ae3e5;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.actions i:hover {
    color: #0056b3;
}

.horizontal-nav {
    display: flex;
    justify-content: space-around;
    width: 30%;
    margin-bottom: 10px;
}

.horizontal-nav i {
    color: #0ae3e5;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.horizontal-nav i:hover {
    color: #454545;
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
    height: 5px;
}
::-webkit-scrollbar-thumb {
    background: transparent;
}
::-webkit-scrollbar-track {
    background: transparent;
}

.footer {
    width: 100%;
    max-width: 420px;
    height: 60px;
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    z-index: 1;
}

.footer-menu {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0ae3e5;
    border-radius: 30px 30px 0;
}

.footer-menu-button {
    width: 50px;
    height: 50px;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.footer-menu-bar {
    border-radius: 12px;
    width: 80%;
    height: 45px;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: auto;
    border: 1px solid #FFFFFF55;
}

.footer-menu-cat {
    width: 200px;
    height: 50px;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 5px 5px 0;
}

.footer-menu-cat span {
    height: 5px;
}

.i-eye-close {
    background: url(../imgs/eye-closed.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 36px;
    height: 36px;
}

.i-eye-open {
    background: url(../imgs/eye.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 36px;
    height: 36px;
}

.splash {
    background: linear-gradient(#d5b30b, #f3067d);
    width: 100%;
    height: 100%;
    margin: auto;
    display: grid;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 12;
}
.logo-splash {
    text-align: center;
    height: 70vh;
    display: flex;
    align-items: end;
    justify-content: center;
}
.sp-sun {
    position: fixed;
    top: 35px;
    padding-right: 80px;
    background-image: url(../assets/sp_sun.png);
    background-size: 60px;
    background-repeat: no-repeat;
    width: 70px;
    height: 70px;
}
.sp-clouds1 {
    position: fixed;
    top: 70px;
    padding-right: 180px;
    background-image: url(../assets/sp_cloud_1.png);
    background-repeat: no-repeat;
    background-size: 70px;
    width: 70px;
    height: 30px;
    animation: linear sp-clouds-animation 3s;
}
.sp-clouds2 {
    position: fixed;
    top: 35px;
    padding-left: 15px;
    background-image: url(../assets/sp_cloud_1.png);
    background-repeat: no-repeat;
    background-size: 70px;
    width: 70px;
    height: 30px;
    -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
    animation: linear sp-clouds2-animation 3s;
}
.sp-clouds3 {
    position: fixed;
    top: 65px;
    padding-left: 270px;
    background-image: url(../assets/sp_cloud_1.png);
    background-repeat: no-repeat;
    background-size: 70px;
    width: 70px;
    height: 30px;
    -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
    animation: linear sp-clouds3-animation 3s;
}
.sp-church {
    position: fixed;
    top: 85px;
    margin-right: -50px;
    background-image: url(../assets/sp_church.png);
    background-repeat: no-repeat;
    background-size: 600px;
    width: 600px;
    height: 600px;
    animation: linear sp-church-animation 3s;
}
@keyframes sp-clouds-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(0);  
    }
}
@keyframes sp-clouds2-animation {
    0% {
        padding-left: 15px;
    }
    50% {
        padding-left: 30px;
    }
    100% {
        padding-left: 15px;
    }
}
@keyframes sp-clouds3-animation {
    0% {
        padding-left: 270px;
    }
    50% {
        padding-left: 320px;
    }
    100% {
        padding-left: 270px;
    }
}
@keyframes sp-church-animation {
    0% {
        top: 85px;
        transform: translateX(0);
        background-size: 600px;
    }
    50% {
        top: 100px;
        transform: translateX(120px);
        background-size: 400px;
        filter: blur(1px);
    }
    100% {
        top: 85px;
        transform: translateX(0); 
        background-size: 600px;  
    }
}
@keyframes sp-couple-animation {
    0% {
        top: 250px;
        transform: translateX(0);
        background-size: 350px;
    }
    50% {
        top: 300px;
        transform: translateX(-20px);
        background-size: 300px;
    }
    100% {
        top: 250px;
        transform: translateX(0); 
        background-size: 350px;  
    }
}

@keyframes kit {
    from {
        background-position:0vw;
    }
    50% {
        background-position:100vw;
    }
    to {
        background-position:0vw;
    }
}
.sp-couple {
    position: fixed;
    top: 250px;
    margin-right: 30px;
    background-image: url(../assets/sp_couple.png);
    background-repeat: no-repeat;
    background-size: 350px;
    width: 350px;
    height: 450px;
    animation: linear sp-couple-animation 3s;
}
.sp-cam {
    padding-right: 5px;
}
.logo-splash-text {
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 26px;
    color: #ffffff;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    z-index: 1;
}
.logo-splash-legend {
    font-family: "Poppins", Roboto, sans-serif;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    height: 30px;
    display: flex;
    align-items: end;
    justify-content: center;
    z-index: 1;
}
.logo-text {
    margin-left: 6px;
}

.screen-home-int {
    margin-bottom: 30px;
    border-radius: 15px;
}

.screen-home-generic-top {
    color: #949494;
    width: 100vw;
    overflow: hidden;
    margin-top: 20px;
    max-width: 380px;
}

.screen-home-generic-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin: 10px 15px;
    font-size: 22px;
}

.btn-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3067d;
    border-radius: 9px;
    border: 1px solid #fff;
    padding: 6px 20px 6px;
    color: #fff;
    margin: 5px;
    font-size: 22px;
    line-height: 36px;
}
.screen-home-generic {
    padding: 15px 0 0;
}
.generic-text-description {
    border-radius: 12px;
    padding: 10px;
    margin: 5px 10px;
    font-size: 16px;
    line-height: 22px;
    min-height: 30px;
    color: #000;
    max-width: 380px;
}
.generic-box-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #f3067d;
    padding: 5px 15px;
    color: #f3067d;
    margin: 3px 20px 9px;
    font-size: 18px;
    line-height: 32px;
    min-height: 80px;
}
.init-box {
    background-image: url(../assets/sp.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
}
.input-speak {
    width: 290px;
    height: 12px;
    justify-content: center;
    display: flex;
    margin: 8px auto;
    padding: 5px;
    border: none;
    outline: none;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
}

.screen-home-speak {
    margin-bottom: 20px;
    border-radius: 15px;
}

.medicine-box-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #0ae3e5;
    padding: 5px 15px;
    color: #444;
    margin: 3px 20px 9px;
    font-size: 18px;
    line-height: 32px;
    min-height: 30px;
}

.btn-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0ac7c9;
    border-radius: 9px;
    border: 1px solid #fff;
    padding: 3px 20px 9px;
    color: #fff;
    margin: 5px 20px;
    font-size: 22px;
    line-height: 36px;
}

.camera {
    background-color: #fdfdfd;
    width: 100%;
    height: 100%;
    margin: auto;
    display: grid;
    align-items: stretch;
    justify-content: center;
    position: fixed;
    top: 0px;
    z-index: 11;
    overflow: auto;
    padding: 10px 0;
}

.camera-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    font-size: 25px;
    color: #000;
}

.camera-desc {
    display: grid;
    align-items: center;
    justify-content: space-evenly;
    padding: 5px 10px;
    font-size: 18px;
    color: #000;
    height: 200px;
}

.docs-canvas {
    overflow: hidden;
    width: 80%;
    min-width: 370px;
    height: auto;
    border-radius: 15px;
    border: 1px solid #f3067d;
    box-sizing: border-box;
    position: relative;
    margin: 5px;
}

#docs-canvas {
    border-radius: 2vw;
    position: absolute;
    width: 100%;
}

.camera-btn {
    background: #f3067d;
    border-radius: 15px;
    padding: 15px 10px;
    color: #fff;
    font-size: 25px;
    text-align: center;
    line-height: 22px;
    margin: 20px 15px;
}

.loading {
    background-image: linear-gradient(to right, #f3067dff, #f3067daa, #f3067d33, #f3067daa, #f3067dff);
    animation: kit 3s linear infinite;
    animation-direction: normal;
}

.loading-request {
    align-items: center;
    height: 3px;
    color: #fff;
    width: 96%;
    margin: auto;
}

.med-found-btns {
    display: grid;
    align-items: center;
    justify-content: center;
}
.camera-limits {
    text-align: center;
    color: #f3067d;
    padding: 20px;
}

.btn-med-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0ac7c9;
    border-radius: 9px;
    border: 1px solid #fff;
    padding: 3px 20px 9px;
    color: #fff;
    margin: 5px;
    font-size: 22px;
    line-height: 36px;
}

.point-desc {
    padding: 5px 10px;
}
.p-link {
    color: #d2035b;
    text-decoration: none;
}

.pSel {
    filter: drop-shadow(2px 4px 6px black);
}
.point-title {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.sel-cam {
    width: 96%;
    margin: 0 2%;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    padding: 1px 15px;
}

.cam-switch {
    display: flex;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}

.cam-side-front {
    width: 30%;
    text-align: right;
    color: #454545;
}
.cam-side-back {
    width: 30%;
    text-align: left;
    color: #454545;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 17px;
  }
  
  .switch input {
    display: none;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d2035b;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #f0910e;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #d2035b;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
  }
  
  
  /*------ ADDED CSS ---------*/
  
  .on {
    display: none;
  }
  
  .on,
  .off {
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 25%;
    left: 25%;
    font-size: 10px;
    font-family: Verdana, sans-serif;
  }
  
  .on {
    top: 8px;
  }
  
  .off {
    left: auto;
    right: -5px;
    top: 8px;
  }
  
  input:checked+ .slider .on {
    display: block;
  }
  
  input:checked + .slider .off {
    display: none;
  }
  
  
  /*--------- END --------*/
  
  
  /* Rounded sliders */
  
  .slider.round {
    border-radius: 17px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }