/* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ /* PANTALLAS PC */ 

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;600;700&family=Poppins:ital,wght@0,100;0,300;0,400;0,600;0,800;0,900;1,300;1,800&display=swap');

@keyframes showCartel {
    from {        
        right: -100px;        
        opacity: 0%;
    }
    to {
        right: 0;        
        opacity: 100%;        
    }
}

@keyframes toBlack {
    from {        
        opacity: 100%;
    }
    to {        
        opacity: 0%;
    }
}

:root {
    --bg-color: #4187f6;
    --bg-color-transparent: rgba(65, 135, 246, .5);
    --bg-text-color: white;
    --text-color: black;
    --min-height: 6em;
}

* {
    margin:0;
    padding:0;   
    box-sizing: border-box;
}

body {

    font-family: 'Poppins', sans-serif;

    max-width: 100vw;
    min-height: 100vh;
    
    display: grid;
    grid-template-areas: "header header header header"
                         "nav main main main"
                         "nav main main main"
                         "footer footer footer footer";
    
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr 1fr auto;
}



header  { grid-area: header; }
footer  { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    grid-area: footer;     
}

footer > span {
    margin-left: 80px;
}
header, footer {
    min-height: var(--min-height);
    color: var(--bg-text-color);
    background: var(--bg-color);
}

nav     { 
    grid-area: nav; 
    background: #2b343b;
    width: 250px;
}

main {     
    grid-area: main; 
    display: flex;
    justify-content: center;
    align-items: center;
}

main, nav {
    background: #2b343b; 
}

header {    
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-grow: 0;

    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
}

h1 {
    font-size: 2em;
    font-weight: bold;    
}

h2 {
    color: white;
    text-shadow: #4187f6;
    
    font-size: 1.7em;
    font-weight: bold;    
}

a {
    color: white;
    text-decoration: none;
}

#avisos {
    position: absolute;
    top: 0;
    right:0;

}
#contadorcarrito {
    position:absolute;
    font-size: .7em;
    text-align: center;
    align-items: center;
    height: 15px;
    width: 15px;
    left:0;
    top: 0px;
    background:red;
    border-radius: 50%;
}
#cerrado {
    position:absolute;
    top:20%;
    left: 20%;
    padding: 2em;
    border-radius: 1em;
    background: rgba(255,0,0,.5);

    text-align: center;
    font-size: 4em;
}

#cartelera {    
    position: absolute;
    top: 17%;
    right: 10%;
    height: 400px;
    width: 300px;
}

#thumbs {
    position: absolute;
    bottom: 2em;
    left:250px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;    
}

.pelicula {
    position: relative;
    box-sizing: border-box;
    margin: 0 1em;

    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    
    align-items: center;
    align-self: center;
    justify-content: center;
}

.sinapsis {    
    font-size: .8em;    
    text-align: right;
}

.pelicula img {    
    position: relative;
    bottom: 20px;
    left: 50%;
    
    align-self: center;
    justify-self: center;
    width: 75px;
    height: 100px;  

    cursor:pointer;
    
    transition: .5s;
  
}

.pelicula img:hover {
    transform: translateY(-20px);
    transition: .5s;   
}


.pelicula > span {
    text-align: center;
    color: white;
}

#cartelera div #linkPelicula {    
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:white;
}

#cartelera .cartel img {
    height: 400px;
    width: 300px;
}

.circle {
    position: absolute;
    opacity: 85%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    clip-path: circle(600px at right 1000px);
 }

.cartel {
    position: absolute;    
    top: 40%;
    opacity: 0%;
    animation: showCartel;

    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-fill-mode: forwards;
}



table[id="carrito"]{   
    width: 100%;
    color:white;
    text-align: center; 
    border-collapse: collapse;   
}

td, th {
    border:none;
}

#carrito tr td .thumb {
    height: 75px;
    width: 50px;
}

#carrito tr td .trash {
    height: 30px;
    width: 30px;
}

#horarios {
    color: white;
    position: absolute;
    box-sizing: border-box;
    padding: 1em;
    border: none;
    top:8em;
    left:300px;    
    width: 400px;
    height: 60vh;
}

#alert {
    position:absolute;    
    top: 0;
    right: 0;
    
    height: 30px;    
    text-align: center;
    color:white;
    font-size: 400; 
    
    animation: toBlack;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;    
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

#alert span.alert-ok {
    background-color: rgba(0,255,0, .5);  
    padding: .5em;  
}

#alert span.alert-ko {
    background-color: rgba(255,0,0, .5);
    padding: .5em;
}




/* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ /* PORTATILES */ 

@media only screen and (max-height: 1030px) {
    :root {
        --min-height: 2em;
    }
    body {
        max-width: 100vw;
        min-height: 100vh;
        overflow-x:hidden;
        overflow-y: scroll;              
    }

    .pelicula img {    
        bottom: 10px;
        left: 10px;        
        width: 35px;
        height: 60px;        
    }

    #cartelera .cartel img {
        height: 200px;
        width: 150px;
    }
    
    .cartel {
        position: absolute;    
        top: 20%;
        opacity: 100%;
        animation: none;
    }

    .circle {
        position: absolute;
        opacity: 65%;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        clip-path: circle(800px at right 900px);
     }

}


@media (max-width: 768px) {

    :root {
        --bg-color: #4187f6;
        --bg-color-transparent: rgba(65, 135, 246, .5);
        --bg-text-color: white;
        --text-color: black;
        --min-height: 1em;

    }
    body {
        max-width: 100vw;        
    }
    #thumbs {
        position: absolute;
        bottom: 0px;
        left: 0px;
        
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-gap:2px;
    }

    .pelicula img {
        width: 50px;
        height: 66px;
    }
    #cartelera {
        position:absolute;
        top:15px;
        left: 170px;
        max-width: 100px;
        max-height: 175px;
    }

    #cartelera .cartel img {
        width: 125px;
        height: 175px;
        
    }

    .tituloPelicula, .sinapsis {
        visibility: hidden;
    }

    .circle{
        visibility:hidden;
    }
    h1 {
        font-size: .8em;
    }

    h2 {
        font-size: .5em;
    }
    header, footer {
        max-height: 1em;
    }

}
    
