/* Modal opening object (link, button, or pretend button) */
/* 
button,
[aria-role="button"] {
  cursor: pointer;
}
button[data-modal][aria-controls],
[aria-role="button"][data-modal][aria-controls] {
  transition: all .3s ease-out;
}





button[data-modal][aria-controls]:hover,
button[data-modal][aria-controls]:focus,
[aria-role="button"][data-modal][aria-controls]:hover,
[aria-role="button"][data-modal][aria-controls]:focus {
  -webkit-filter: contrast(120%);
  filter: contrast(120%);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, .6); /* Red so you can tell 
  outline: 0 solid;
}
 */ 

/* Modal opening link cosmetics */

.hidden{
  display: none;
}


.lnk_modal-open {
  font-size: larger;
  background-color: #000;
  padding:.25rem .5rem;
  display: inline-block;
  text-decoration: none;
  border: 0 solid;
  margin: 0 auto;
}

.lnk_modal-img {
  padding: 0;
}

.lnk_modal-open:active {
  -webkit-filter: brightness(85%);
  filter: brightness(85%);
}

.img_modal-open {
  display: block;
  border: 0 solid;
}


/* The modal section is added via JS */

.modal {
  max-width: 80vw;
  max-height: 90vh;
  background-color: #F7F0E8;
  margin: 0 auto;
  position: absolute;
  left: 15%;
  right: 15%;
  top: 5%;
  bottom: 5%;
  z-index: 10;
  /*border: 1px solid #fff;*/
  /*box-shadow: 0 .25em .5em #000;*/
  transition: opacity .5s ease-out, visibility 0s ease-out 1s, transform .5s ease-out .5s;
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(.8) translate3d(0,0,0);
  pointer-events: none;
  border-radius: 12px;
}

.modal[aria-hidden="false"] {
  position: fixed;
  transition-delay: 0s,0s, 0s;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translate3d(0,0,0);
  pointer-events: auto;
}




/* Light box properties */

.modal_lightbox {
  text-indent: -200em;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* places the modal overlay between the main page (0) and the modal dialog (10) */
  z-index: 5;
  cursor: pointer;
  transition: opacity .5s ease-out, visibility 0s ease-out .5s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: inset 0 0 300px 0px white;
}

.modal_lightbox-on {
  transition-delay: 0s, 0s;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal_lightbox-on:hover {
  /* Stolen from trickle.js. Under consideration. SVGs will not work here */
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANpJREFUOBGNkz0KAjEQhYPYWXgCKws7LcXWyt7WG4i9jegBvIJ4AvEyXsRCsBDiN0sGkiE/O/A2O9n3viS7rPPeb9ETrVzPwrtHDzR1XF5I6oPWLQaeq5hDXQRw0I6xCuF5HH7Tz7oFuTkhrSyEhza8THaLoQhphpWUg/QOFyA/AFpy5nTbGrIjxvg4AiiGBzYc+rGZH9KPzFy+ZbX4bX9l+VDZr5NQMMbhbtvMxccpQ3JhpTchtXATQviItIpvW0CY7HHm8c9UDRd2chbABt3RQk2tEe8O3dDkD4JQ4iOR7BMpAAAAAElFTkSuQmCC"), pointer;
}

.blur{
   -webkit-filter: blur(8px);
  filter: blur(8px);
}




/* Modal title and description */

.modal_title,
.modal_desc {
  position: absolute;
  top: 5px;
  left: -200em;
  background-color: #fff;
  color: #000;
  text-shadow: 0 0 0 #fff;
  font-size: 0px;
  padding: 0.125em .25em;
 /*  Tesco requirement
  font-family: Tesco_W_Rg, sans-serif; */
}
  margin:0;

.modal_title:focus,
.modal_desc:focus {
  left: 5px;
}

[aria-hidden="false"] .modal_title {
  transition: opacity .5s ease-out 3s;
  opacity: 0;
}

.modal_title,
.modal_title:focus {
  opacity: 1;
  transition: opacity .5s ease-out;
}


/* The iframe */

.modal_iframe {
  transition: opacity .5s ease-out, visibility 0s ease-out 1s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal_iframe-on {
  transition: opacity .8s ease-out, visibility 0s ease-out 0s;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  right: 0px;
  overflow-x: none !important;
  /*border: 1px solid #B1B0B0;*/
}

[aria-hidden="true"] .modal_iframe {
  display: none;
}

[aria-hidden="false"] .modal_iframe {
  display: block;
}


/* The modal pop-ups close button, appears last in the modal, but is moved visually to the top right of the pop-up */

.modal_lnk-close {
  cursor: pointer;
  position: absolute;
  top: -20px;
  right: -20px;
  border: 0 solid;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: #000;
  box-shadow: 0 .25em .5em rgba(0, 0, 0, .25);
  overflow: hidden;
  transition: background-color .3s ease-out;
}

.modal_lnk-close:hover,
.modal_lnk-close:active,
.modal_lnk-close:focus {
  background-color: #c00;
  outline: 0 solid;
}

.svg-close {
  pointer-events: none;
  width: 40px;
  height: 40px;
  stroke: #fff;
  stroke-width: 2;
}




/* Modal SVG (Tesco) loading animation version 2 (overlaid on itself and out of phase) */

[class*="svg-loading"] {
  position: absolute;
  width: 80px;
  height: 80px;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  z-index: -1;
  transition: opacity .3s ease-out;
  backface-visibility: hidden;
}

.svg-loading {
  fill: #00539f;
  -webkit-animation: rotate 4s linear 0s infinite;
  animation: rotate 4s linear 0s infinite;
}

.svg-loading2 {
  /* Match to .modal background colour for full effect */
  fill: #F7F0E8;
  -webkit-animation: rotate 5s linear 1s infinite;
  animation: rotate 5s linear 1s infinite;
}

@-webkit-keyframes rotate {
  to {
    -webkit-transform: rotate(360deg) translate3d(0,0,0);
    transform: rotate(360deg) translate3d(0,0,0);
  }
}

@keyframes rotate {
  to {
    -webkit-transform: rotate(360deg) translate3d(0,0,0);
    transform: rotate(360deg) translate3d(0,0,0);
  }
}



/* While modal is open */

/* Class added to body tag to prevent scroll
   Note the body does not require class "-modal" */
body.-modal-open {
  overflow: hidden;
}


/* Any tags classed with "-modal", when open, get "-modal-open" added */
/* Both of these are equivalent, best practice to use the attribute version which enforces accessibility */

.-modal[aria-hidden="true"] {
  -webkit-filter: blur(4px);
  filter: blur(4px);
}
.-modal.-modal-open {
  -webkit-filter: blur(4px);
  filter: blur(4px);
}


/* Generic helper style */
.u-margin2 {
  margin: 2rem 0;
}

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

  .modal {
  max-width: 98vw;
  max-height: 98vh;
  background-color: #F7F0E8;
  margin: 0 auto;
  position: absolute;
  left: 1%;
  right: 1%;
  top: 1%;
  bottom: 1%;
  padding-top: 0px !important;
}
  .modal_lnk-close {
  top: 20px;
  right: 20px;
}

  }







#Bolivar{
  background-image: url(../img/Bolivar.gif);
  /*position: relative;
  bottom: 50%;*/
  left:20%;
  position: relative;
  transform: translateY(-100%);
  width: 80px;
  height: 80px;
}

#Capital{
  background-image: url(../img/Capital.gif);
  position: relative;
  transform: translateY(-20%);
  left:45%;
  width: 200px;
  height: 70px;
}

#Marval{
  background-image: url(../img/logo-Marval200.png);
  background-repeat: no-repeat;
  background-size: 120px 70px;
  position: relative;
  transform: translateY(-20%);
  left:40%;
  width: 120px;
  height: 70px;
}

#Ospinas{
  background-image: url(../img/Ospinas2.png);
 background-repeat: no-repeat;
  background-size: 188px 70px;
  position: relative;
  transform: translateY(-20%);
  left:30%;
  width: 188px;
  height: 70px;
}



#Urbansa{
  background-image: url(../img/logo-urbansa2.png);
 background-repeat: no-repeat;
  background-size: 200px 79px;
  position: relative;
  transform: translateY(-20%);
  left:30%;
  width: 200px;
  height: 79px;
}


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

.inner{
    -webkit-transform: translateY(0%) translateZ(60px) scale(0.94);
            transform: translateY(0%) translateZ(60px) scale(0.94);
    top: 50%;
/*    background: rgb(84,123,2);
background: linear-gradient(0deg, rgba(84,123,2,1) 0%, rgba(154,205,50,1) 48%, rgba(253,253,253,0) 69%); 
  */
   background: rgb(84,123,2);
background: linear-gradient(0deg, rgba(84,123,2,1) 0%, rgba(154,205,50,0.7811858019575018) 48%, rgba(253,253,253,0) 69%);  
    width: 100%;
    height: 190px;
    border-radius: 0px 0px 10px 10px;
}
h2{
font-size: 2rem;
}
.front .inner .copy{

  font-size: 1rem;
  color: white;

}

#Bolivar{
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover;
  left:20%;
  transform: translateY(-60px);
  width: 45px;
  height: 45px;
}

 #Capital{
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover;
  transform: translateY(-20px);
  left:45%;
  width: 100px;
  height: 35px;
}

#Marval{
  position: relative;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 100px 60px;;
  transform: translateY(-35px);
  left:30%;

}

#Ospinas{
  position: relative;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 150px 60px;;
  transform: translateY(-35px);
  left:20%;
}

#Urbansa{
  position: relative;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 150px 60px;;
  transform: translateY(-35px);
  left:20%;
}




}

