/*

    *   Nombre: base.php
    *	Página creada exclusivamente para Cofradía de Pescadores San Ginés
    *	Todos los derechos reservados
    *
    *       Versión : 1
    *       Fecha : 17/02/2022
    *       Autor : Miguel Angel San Román Ramos
    *       email : miguelmasr@hotmail.com

 */
html{
    margin: 0;
    padding:0;
    border: 0;
}
body{
    margin: 0;
}
.imagenFondo{
    filter: grayscale(100%);
}
.imagenFondo:hover{
    filter: grayscale(0%);
}
.imagenFondo{
    object-fit: cover;
}

.sombra{
    text-shadow:
        1px 1px 20px rgba(1,1,1,1),
        3px 3px 20px rgba(30,30,30,1),
        -1px -1px 20px rgba(1,1,1,1),
        -3px -3px 20px rgba(30,30,30,1),
        1px 1px 20px rgba(1,1,1,1),
        3px 3px 20px rgba(30,30,30,1),
        -1px -1px 20px rgba(1,1,1,1),
        -3px -3px 20px rgba(30,30,30,1)
        ;
}
.sombraB{
    text-shadow:
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 20px rgba(255,255,255,1),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(255,255,255,1),
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 20px rgba(255,255,255,1),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(255,255,255,1)
        ;
}
.sombraA{
    text-shadow:
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 20px rgba(255,255,255,1),
        1px 1px 20px rgba(0,0,200,.5),
        3px 3px 20px rgba(0,0,200,.5),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(0,0,200,.5),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(255,255,255,1)
    ;
}
.sombraAzul{
    text-shadow:
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 20px rgba(0,0,200,1),
        1px 1px 20px rgba(0,0,200,.5),
        3px 3px 20px rgba(0,0,200,.5),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(0,0,200,.5),
        -1px -1px 20px rgba(255,255,255,1),
        -3px -3px 20px rgba(255,255,255,1)
    ;
}
.sombraT{
    text-shadow:
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 40px rgba(1,1,1,1),
        3px 3px 10px rgba(1,1,1,1)
    ;
}
.sombraVerde{
    text-shadow:
        1px 1px 3px rgba(1,1,1,1),
        3px 3px 20px rgba(200,200,200,1),
        -1px -1px 20px rgba(1,255,1,1),
        -3px -3px 20px rgba(1,255,1,1),
        1px 1px 20px rgba(255,255,255,1),
        3px 3px 20px rgba(200,200,200,1),
        -1px -1px 20px rgba(1,255,1,1),
        -3px -3px 20px rgba(1,255,1,1),
        -6px -6px 20px rgba(1,255,1,1),
        6px 6px 20px rgba(1,255,1,1)
        ;
}
.rompePalabra *{
    word-wrap: break-word;
    hyphens: auto;
}
.rPalabra{
    word-break: normal;
    overflow-wrap: break-word;
}
.textoC{
    text-rendering: optimizeLegibility;
    background-color: rgba(255,255,255,.7);
    border-radius: .4rem;
    font:
    Georgia,
    "Bitstream Charter",
    "URW Bookman L",
    "Century Schoolbook L",
    serif;
    text-shadow:
        0 0 1px black,
        0 0 1px black,
        0 0 1em white,
        0 0 0.2em white,
        0 0 .5em white,
        3px 3px 3px white,
        -3px -3px 3px white,
        0 0 1em white
        ;
    ;
}

/* ******************** Historia ********************************************************** */

#fondoHist{
    z-index: -1;

    background-image: url('../img/fondos/fondoHist.png');

    background-size: 70% auto;
    background-position: center center;
}
.secHist{
    background-color: rgba(255,255,255,0);
    border: rgba(0,0,200,.5) solid .7rem;
    border-radius: .6rem;
    margin: 6rem 1rem;
}
.secHist div{
    display: flex;
    flex-direction: column;
    background-color: rgba(255,255,255,0.8);
}
.secHist div p{
    padding: 1rem;
    text-align: justify;
    font-size: 1.3rem;
    font-family:
    Georgia,
    "Bitstream Charter",
    "URW Bookman L",
    "Century Schoolbook L",
    serif;
}

/* ******************** Embarcaciones ********************************************************** */
#infoBarcos table thead{
    background-color: darkblue;
}
#infoBarcos table thead th{
    color: white;
    font-size: small;
}


#fondoEmb{
    z-index: -1;

    background-image: url('../img/fondos/fondoEmb.png');

    background-size: 100% auto;
    background-position: center center;
}

#fondoAnimadoEmb{
    z-index: -1;

    background-image: url('../video/fondo.gif');
    background-attachment: fixed;
    background-size: 100% 120%;
    background-position: center center;
    background-repeat: no-repeat;
}
.conEmbarcaciones{
    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name:show;
    animation-range: entry 15% cover 40%;
    animation-fill-mode: both;
}

/* ******************** Instalaciones ********************************************************** */
#fondoInst{
    z-index: -1;

    background-image: url('../img/fondos/fondoInst.png');

    background-size: 100% auto;
    background-position: center center;
}
.fRojo,.fVerde,.fAmarillo,.fAzulC,.fAzulO,.fMorado,.fNaranja,.fRosa,.fGris,.fNegro{
    z-index: 1;
    top:0;
    bottom: 0;
    background-size: 100% auto;
    background-position: center center;
    margin-left: 1rem;
    margin-right: 1rem;

    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name:show;
    animation-range: entry 15% cover 40%;
    animation-fill-mode: both;
}
/*crear clase para parrafos y titulo de instalaciones*/
.fRojo{background-image: url('../img/fondos/fRojo.png');}
.fVerde{background-image: url('../img/fondos/fVerde.png');}
.fAmarillo{background-image: url('../img/fondos/fAmarillo.png');}
.fAzulC{background-image: url('../img/fondos/fAzulC.png');}
.fAzulO{background-image: url('../img/fondos/fAzulO.png');}
.fMorado{background-image: url('../img/fondos/fMorado.png');}
.fNaranja{background-image: url('../img/fondos/fNaranja.png');}
.fRosa{background-image: url('../img/fondos/fRosa.png');}
.fGris{background-image: url('../img/fondos/fGris.png');}
.fNegro{background-image: url('../img/fondos/fNegro.png');}


/* ******************** Servicios ********************************************************** */
#fondoServ{
    z-index: -1;

    background-image: url('../img/fondos/fondoInst.png');

    background-size: 100% auto;
    background-position: center center;
}
.conten{
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 2rem;
    flex: unset !important;

    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name:show;
    animation-range: entry 15% cover 40%;
    animation-fill-mode: both;
}
@media only screen and (min-width: 760px) and (max-width: 1023px) {
    .conten {
        width: 100% !important;
    }
}

/* ******************** Costeras ********************************************************** */
#fondoCost{
    z-index: -1;

    background-image: url('../img/fondos/fondoCostB.png');

    background-size: 50% auto;
    background-position: center center;
}
.conCosteras{
    border: rgba(0, 0, 200, .5) .7rem solid;
    border-radius: .5rem;
    padding: 3rem;

    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name:show;
    animation-range: entry 15% cover 40%;
    animation-fill-mode: both;
}
.conCosteras div{
    overflow: hidden;
}
.conCosteras h2{
    font-size: 2rem;
    font-weight: bold;
    font-family:
    Georgia,
    "Bitstream Charter",
    "URW Bookman L",
    "Century Schoolbook L",
    serif;
}
.conCosteras div p{
    padding: 1rem;
    text-align: justify;
    font-size: 1.5rem;
    font-family:
    Georgia,
    "Bitstream Charter",
    "URW Bookman L",
    "Century Schoolbook L",
    serif;
}
.conCosteras div img{
/* Para que no deforme la imagen*/
/* object-fit: cover;
    object-position: bottom;
*/
    max-height: 15rem;
}

@media only screen and (min-width: 320px) and (max-width: 760px) {
    .conCosteras div img {
        width: 100% !important;
        object-fit: cover;
        object-position: bottom;
    }
}


/* ******************** Marisco ********************************************************** */
.secMarisco{
    background-color: rgba(255,255,255,0);
    border: rgba(0,0,200,.5) solid .7rem;
    border-radius: .6rem;
    margin: 6rem 1rem;
}
.secMarisco div{
    display: flex;
    flex-direction: column;
    background-color: rgba(255,255,255,0.8);
}
.secMarisco p{
    padding: 1rem;
    text-align: justify;
    font-size: 1.5rem;
    font-family:
    Georgia,
    "Bitstream Charter",
    "URW Bookman L",
    "Century Schoolbook L",
    serif;
}

/* ******************** Contacto ********************************************************** */
.datosContacto{
    border-left: 1px black solid;
}

#error{
    position: absolute;

    width: 80%;
    height: 3rem;

    top: 3.4rem;
    margin: auto 10%;
    padding: 0 2rem 0 2rem;
    z-index: 50;
}

.escondeError{
    animation-name: ocEr;
    animation-duration: 4s;
    animation-fill-mode: forwards;
}
@keyframes ocEr {
    from{
        top:3.4rem;
    }
    to{
        top: -16rem;
    }
}



/* ******************** Cookies ********************************************************** */
#cookies{
    position: fixed;
    
    top: 20%;
    padding: 0 2rem 0 2rem;
    z-index: 50;
    width: 20rem;
    height: 30rem;
    border: darkslategray .5rem solid;
    border-radius: 2rem;
    background-color: lightpink;

    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 18px;
}
#cookies img{
    transform: translateY(-6rem);
}
#cookies div{
    transform: translateY(-5rem);
}
#cookies button{
    border: yellow 1px solid;
    background-color: darkslategray;
    border-radius: .5rem;

    color: deeppink;
    font-size: 18px;
    font-weight: bold;
}
#cookies button:hover{
    cursor: pointer;
    box-shadow: 
        0 0 1px black,
        0 0 1px black,
        0 0 1px yellow,
        0 0 3px yellow,
        0 0 5px yellow
    ;
}
#miniCookies:hover{
    cursor: pointer;
}
.escondeCookies{
    animation-name: coo;
    animation-duration: 4s;
    animation-fill-mode: forwards;
}
@keyframes coo {
    to{
        left: -22rem;
    }
}
.visibleCookies{
    animation-name: vCoo;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}
@keyframes vCoo {
    from{
        left: -22rem;
    }
    to{
        right: 2rem;
    }
}
#miniCookies{
    width: 50px;
    position: fixed;
    left: 0;
    top: 49%;
    transform: translateX(-25px);
}

/* ******************** Botones ********************************************************** */
.vuelveArriba img{
    border: 1rem blue solid;
    border-radius: .5rem;
}
.vuelveArriba:hover{
    cursor: pointer;
}


/* ------------------------------------------- Efectos---------------------------------------------*/
/* --------- Carrusel de fotos ---------------- */
/* external css: flickity.css */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  body { font-family: sans-serif; }
  
  .gallery {
    background: black;
  }
  
  .gallery-cell {
    width: auto;
    height: 200px;
    margin-right: 10px;
    background: black;
    counter-increment: gallery-cell;
  }
  
  /* cell number */
  .gallery-cell:before {
    display: block;
    text-align: center;
    content: counter(gallery-cell);
    line-height: 200px;
    font-size: 80px;
    color: white;
  }

@keyframes show {
    from{
        opacity: 0;
        scale: 25%;
    }to{
        opacity: 1;
        scale: 100%;
    }
}