/*******************************/
/* SPLASH                      */
/*******************************/
#page-inicio {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #000000;
}

.splash {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

/*******************************/
/* SEND MAIL                        */
/*******************************/
#page-login {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
}

#msjError {
    margin-bottom: 5px;
}

/*******************************/
/* MAIN                        */
/*******************************/
#page-main {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
}

.header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    background-color: #141414;
    z-index: 1000;
}

.header button {
    font-size: 26px;
}

.body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 500px; */
    width: 100%;
    padding: 0px;
    margin: 0px;
}

.background-body {
    z-index: 0;
    width: 100%;
    position: fixed;
    top: 0px;
    bottom: 0px;
    background: #242632;
    /*
	background-image: -webkit-gradient(linear, 50.00% 0.00%, 50.00% 100.00%, color-stop( 0% , rgba(64,151,230,1.00)),color-stop( 100% , rgba(27,61,109,1.00)));
	background-image: -webkit-linear-gradient(270deg,rgba(64,151,230,1.00) 0%,rgba(27,61,109,1.00) 100%);
	background-image: linear-gradient(180deg,rgba(64,151,230,1.00) 0%,rgba(27,61,109,1.00) 100%);
	*/
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#242632+0,dadbe0+100 */
    background: -moz-linear-gradient(-45deg, #242632 0%, #dadbe0 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #242632 0%, #dadbe0 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #242632 0%, #dadbe0 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#242632', endColorstr='#dadbe0', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */

    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 50px;
    background-color: #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    z-index: 1000;
}

/*******************************/
/* HISTO                        */
/*******************************/
#page-history {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
}

/*******************************/
/* MAPA                        */
/*******************************/
#page-mapa {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
}

#map {
    width: 100%;
    height: 100vh;
    /*calc(100vh - 100px);*/
    /* top: 0px;
    left: 0px; */
    /*bottom: 0px;*/
    /*position:relative;
    background-color: cornflowerblue;*/
    /* border: 1px solid red; */
}

/*******************************/
/* HISTO                       */
/*******************************/
.form-histo {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 0px 10px;
}




.buttons {
    display: grid;
    grid-template-areas:
        "fire medic"
        "sos sos";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
    padding: 20px;
}

.btn-alert {
    border: 3px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #333;
    cursor: pointer;
}

.btn-alert img {
    width: 100px;
    object-fit: cover;
    /* Ajusta la imagen al contenedor */
    object-position: center;
}

#btnFire {
    grid-area: fire;
}

#btnMedic {
    grid-area: medic;
}

#btnSos {
    grid-area: sos;
}

/*******************************/
/* CONFIG BTN                  */
/*******************************/
#page-config-btn {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #f08887;
    padding: 10px;
}

.body-panel {
    position: relative;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    /* height: 500px; */
    width: 100%;
}

.panel-contact-sos,
.panel-contact-fire,
.panel-contact-medic {
    background-color: #fff;
    margin-bottom: 10px;
}

.title-button {
    background-color: #333;
    padding: 10px 0px 10px 10%;
    width: 100%;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-ajust {
    display: flex;
    justify-content: center;
    align-items: start;
}

.content-contact-selected {
    display: block;
    position: relative;
    padding: 10px;
}

/* MODAL */
.modal-panel-contacts {
    background-color: #ccc;
    padding: 10px;
}

.modal-header-contacts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-body-contacts {
    display: block;
}

.panel-search-contact {
    position: relative;
    display: block;
    padding: 10px;
}

#listContacts {
    display: block;
    padding: 10px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

#listContacts ul {
    width: 100%;
}

#listContacts ul li {
    border: 1px solid #ccc;
    background-color: #ccc;
    color: #333;
    padding: 5px;
    cursor: pointer;
    margin-bottom: 2px;
}

#listContacts ul li:hover {
    background-color: #333;
    color: #ccc;
}

.contacts-selected li {
    background-color: #ccc;
    margin-bottom: 10px;
    padding: 5px;
    color: black;
}

/*******************************/
/* CONFIG ALARM                */
/*******************************/
#page-config-alarm {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #f08887;
    padding: 10px;
}

.panel-recordar {
    margin: 50px 0px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    background-color: #ccc;
    border: 1px solid #333;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.card-alarm {
    background-color: #333;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.card-active {
    color: #fff;
}

.alarm-header {
    display: flex;
    justify-content: space-between;
}

.alarm-header span {
    color: #fff;
    font-size: 14px;
    background-color: #555;
    border-radius: 50%;
    padding: 0px 1px;
}

.alarm-body {
    padding: 10px;
}

.alarm-hour {
    font-size: 36px;
    display: block;
    margin: 10px 0px;
}

.alarm-footer {
    display: flex;
    justify-content: space-between;
}

.panel-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.alarm-fijar,
.alarm-vibrar,
.alarm-borrar {
    display: flex;
    justify-content: space-between;
    color: #fff;
    cursor: pointer;
    margin-bottom: 20px;
}


/* Modal clock */
.modal-panel-clock,
.modal-panel-Date {
    background-color: #555;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    width: 90%;
}

.modal-header-clock,
.modal-header-Date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-body-clock {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.panel-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
}

.modal-footer-clock,
.modal-footer-Date {
    display: flex;
    justify-content: center;
    gap: 30px;
}