
@font-face {
    font-family: "Kage";
    src: url("./assets/Kage Normal.otf");
}
@font-face {
    font-family: "Segoe";
    src: url("./assets/segoepr.ttf");
}

html {
    height: 100vh;
}

body {
    margin: 0;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#box {
    width: min(100vw, 200vh);
    height: min(50vw, 100vh);
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

#wrap {
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.map-extra {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.6s;
}

.map-extra.hided {
    opacity: 0;
}

/* ############################################################################ */
/* ############################################################################ */

#places {
}

#places > div {

}

#places img {
    position: absolute;
    width: 2%;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 0;
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
    transform: translateY(0px);
}

#places img:hover,
#places img:focus {
    transform: scale(1.3);
}

#places div.hided img {
    opacity: 0;
    transform: translateY(-20px);
}

#barrios img {
    width: 3.8%;
}

#patrimonio img,
#servicios img {
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.7));
}

#patrimonio img:hover,
#patrimonio img:focus,
#servicios img:hover,
#servicios img:focus {
    transform: scale(1.3) translateY(-10%);
}

/*
.download {
    background-color: #7CA881;
    border-radius: 10px;
    border: 1px solid #329357;
    color: white;
    padding: 5px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    outline: 0;
    transition: 0.3s;
}
*/

button a {
    color: white;
    text-decoration: none;
}

button:hover,
button:focus {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px white) drop-shadow(0 0 10px white) drop-shadow(0 0 10px white);
}

/* ############################################################################ */
/* ############################################################################ */

.lang {
    bottom: 5%;
    left: 5%;
    display: flex;
    align-items: flex-start;
    flex-flow: column nowrap;
    position: absolute;
    width: 3%;
}

.lang button {
    background: none;
    border: 0;
    padding: 0;
    outline: 0;
    height: auto;
    line-height: 0;
}

.lang button img{
    width: 100%;
}

.esp, .eng {
    margin-bottom: 30%;
}

.download {
    bottom: 7%;
    right: 5%;
    font-size: 1rem;
}

/* ############################################################################ */
/* ############################################################################ */

.controls {
    bottom: 7%;
    right: 1.7%;
    width: 14%;
    font-size: min(3vw, 6vh);
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    position: absolute;
}

.controls .ctrl {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: row nowrap;
    margin-bottom: 2%;
}

.controls .ctrl img {
    width: 22%;
    margin: 0 7% 0 0;
    transition: 0.3s;
    border-radius: 100%;
    padding: 0%;
    box-sizing: content-box;
    border: 2px solid transparent;
    flex: 0 0 auto;
}

.controls .ctrl h3 {
    color: #2979d4;
    font-size: 40%;
    text-align: left;
    font-family: "Segoe";
    font-weight: bold;
    line-height: 0;
    height: 20%;
    margin: 0;
    line-height: 100%;
}

.controls img:hover {
    transform: scale(1.2);
}

.controls img.active {
    border-color: #14a74c;
}

/* ############################################################################ */
/* ############################################################################ */

#tooltip {
    position: absolute;
    background-color: white;
    border-radius: 15px;
    border: 1px solid #bbb;
    padding: 10px;
    color: #333;
    z-index: 5;
    transition: 0.3s;
    display: flex;
    align-items: flex-start;
}

#tooltip.hided {
    opacity: 0;
    top: -50%;
}

#tooltip h4,
#tolltip h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 30px 5px 0;
    width: 90%;
}

#tooltip p,
#tooltip a {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #333;
    display: block;
}

#tooltip a {
    text-decoration: underline;
    
}

#tooltip img {
    width: 20px;
    margin-right: 8px;
}

#tooltip .arrow {
    width: 16px;
    height: 16px;
    position: absolute;
    top: -9px;
    left: calc(50% - 8px);
    border-top: 1px solid #bbb;
    border-right: 1px solid #bbb;
    background-color: white;
    transform: rotate(-45deg);
}

#tooltip.top .arrow {
    top: unset;
    bottom: -9px;
    transform: rotate(-225deg);
}

#tooltip .close {
    position: absolute;
    top: 8px;
    right: 10px;
    color: black;
    font-size: 20px;
    font-family: sans-serif;
    
}

/* ############################################################################ */
/* ############################################################################ */

#minitooltip {
    position: absolute;
    background-color: white;
    border-radius: 15px;
    border: 1px solid #bbb;
    padding: 10px;
    color: #333;
    z-index: 5;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-start;
    opacity: 1;
}

#minitooltip.hided {
    opacity: 0;
    top: -50%;
}

#minitooltip h4 {
    font-size: 1rem;
    margin: 0 0 0 0;
    width: 100%;
}

#minitooltip .arrow {
    width: 16px;
    height: 16px;
    position: absolute;
    left: calc(50% - 8px);
    border-top: 1px solid #bbb;
    border-right: 1px solid #bbb;
    background-color: white;
    bottom: -9px;
    transform: rotate(-225deg);
}

/* ############################################################################ */
/* ############################################################################ */

#modal {
    position: absolute;
    background-color: white;
    box-shadow: 0 0 20px 0 black;
    color: #333;
    z-index: 5;
    transition: 0.3s;
    display: flex;
    align-items: flex-start;
    height: 80%;
    width: 60%;
    left: 20%;
    top: 10%;
}

#modal.extra-size {
    width: 70%;
    left: 15%;
}

#modal.extra-size .html > img  {
    width: 57%;
}

#modal.extra-size .html .text  {
    width: 43%;
}

#modal.hided {
    opacity: 0;
    top: -100%;
}

#modal .html {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
}

#modal .html > img {
    width: 67%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

#modal .html .text {
    width: 33%;
    height: 100%;
    background: rgba(41, 112, 66, 0.8);
    position: absolute;
    top: 0;
    right: 0%;
    color: white;
    padding: 35px 20px 20px 20px;
    text-shadow: 0 0 2px black;
    overflow: auto;
}

#modal .html .text h4 {
    margin: 20px 0 30px 0;
    font-family: "Kage";
    font-size: 3rem;
    line-height: 3rem;
}

#modal .html .text p {
    margin: 0;
    line-height: normal;
    text-align: justify;
    font-family: 'Segoe';
    font-size: 1.1rem;
    line-height: 1.7rem;
}

#modal .html .text p.txt {
    margin: 0 0 15px 0;
}

#modal .html .text .line {
    line-height: 30px;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

#modal .html .line img {
    width: 25px;
    margin-right: 10px;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.8));
}

#modal .html a.line {
    text-decoration: underline;
    color: white;
    display: block;
    font-family: 'Segoe';
}

#modal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: white;
    text-shadow: 0 0 3px black;
    font-size: 30px;
    font-family: sans-serif;
    opacity: 1;
    
}

.shadow {
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.shadow.hided {
    width: 0%;
    height: 0%;
}
