html{
    scroll-behavior: smooth;
}

body{
    background-color: rgb(223, 223, 223);
    font-family: 'helsinki',Verdana, Geneva, Tahoma, sans-serif;
}
@font-face {
	font-family: 'helsinki';
	src: url('helsinki.eot'); /* IE9 Compat Modes */
	src: url('helsinki.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	     url('helsinki.woff') format('woff'), /* Modern Browsers */
	     url('helsinki.ttf')  format('truetype'), /* Safari, Android, iOS */
	     url('helsinki.svg#svgFontName') format('svg'); /* Legacy iOS */
	}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 4;
    background-color:  rgb(223, 223, 223);
    width: 100%;
}

main{
    position: absolute;
}

/*
#packs{
    padding-top: 200px;
}

#movies,#upcoming-movies,#faq,#get_lucky{
    padding-top: 100px;
}
*/

.packs,.movies,.calendar,.faq{
    margin-top: 80px;
}

.logo{
    width: 110px;
}

.nav-links{
    display: flex;
    flex-direction: row;
    list-style-type: none;
    gap: 60px;
    margin-right: 40px;
}
.nav-link{
    text-decoration: none;
    color: rgb(207, 49, 49);
    font-size: x-large;
}

.home{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    
}
.screen1{
    max-width: 100%;
    height: auto;
    z-index: 1;
    right: 0;
}
.logoX{
    width: 100%; /* Adjust logo to 100% width of its container */
    max-width: 560px; /* Limit max width to 560px */
    margin-top: 60px;
    z-index: 2;
    align-self: flex-start;
}
.screen2{
    max-width: 100%;
    height: auto;
    z-index: 1;
    left: 0;
}

.home-text{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slogan{
    color: rgb(207, 49, 49);
    text-align: center;
}

.description{
    text-align: center;
}

.packs{
    display: grid;
    grid-template-columns: 300px 300px 300px;
    grid-template-rows: 90px 700px 90px;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.packages{
    order: 1;
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 1;
}

.pack1,.pack2,.pack3{
    display: grid;
    grid-template-columns: 300px;
    grid-template-rows: 80px 40px 140px 340px;
    justify-content: space-evenly;
    align-items: center;
    margin: 0px 20px 40px 20px;
    background-color: rgb(207, 49, 49);
    box-shadow:  0px 4px 10px 0 rgba(167, 49, 49, 0.6), 0px 6px 20px 0 rgba(167, 49, 49, 0.6);
}

.pack1 h2, .pack2 h2, .pack3 h2{
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 1;
    grid-column-end: 1;
    padding: 20px 0px;
    width: 80%;
    justify-self: center;
    order: 1;
}

.pack1 p, .pack2 p, .pack3 p{
    font-size: larger;
    grid-row-start: 2;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 1;
    width: 80%;
    justify-self: center;
    margin-top: 40px;
    order: 2;
}

.list{
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 3;
    grid-row-end: 3;
    font-size: large;
    text-align: start;
    width: 70%;
    overflow-wrap: break-word;
    justify-self: center;
    align-self: flex-start;
    order: 3;
}

.ticket-price{
    grid-row-start: 4;
    grid-row-end: 4;
    margin-top: 20px;
    align-items: last baseline;
    width: 80%;
    justify-self: center;
}

.pack1{
    order: 2;
}

.pack2{
    order: 3;
}

.pack3{
    order: 4;
    /*item doesnt need to center*/
}

.specifications{
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 3;
    order: 5;
    align-self: center;
}

.popcornXL,.popcorn{
    width: 220px;
}

.ticket{
    width: 210px;
    padding-bottom: 10px;
}

.price{
    align-self: flex-end;
}

.pack1:hover,.pack2:hover,.pack3:hover{
    transform: scale(1.09);
    transition-duration: 2s;
}

.movies{
    text-align: center;
    justify-content: center;
}

.upcoming{
    margin: 40px 0px;
}

.movies-cards{
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    grid-template-rows: auto;
    gap: 40px;
    justify-content: space-evenly;
}

.card{
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.card:hover{
    .poster{
        opacity: 30%;
        filter: blur(4px);
    }
    .pitch{
        visibility: visible;
    }
}

.poster{
    width: 100%;
    object-fit: cover;
    justify-self: center;
    align-self: flex-start;
    position: relative;
    flex: 1;
}

.movie-title{
    justify-self: center;
    align-self: start;
    margin: 8px 0;
    padding: 0px;
    width:100%;
    height: 100%;
    flex: 2;
}

.pitch{
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    word-wrap: break-word;
    width: 95%;
    max-width: 280px;
    height: 100%;
    max-height: 300px;
    white-space: pre-wrap;
    text-align: justify;
    position: absolute;
    top: 0;
    align-self: center;
    visibility: hidden;

}

.credits{
    white-space: pre-line;
    margin: 0px 4px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    flex: 3;
}

.license{
    display: flex;
    flex-direction: row;
    justify-self: center;
    align-self: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    max-height: 30px;
    max-width: 90%;
    margin-bottom: 4px;
    margin-top: 4px;
    align-items: center;
}

.license img{
    width: 22px;
    object-fit: contain;
}

.upcoming{
    text-align: center;
    justify-content: center;
}

.movies-cards-trailer{
    display: grid;
    grid-template-columns: 300px 300px minmax(600px,650px);
    grid-template-rows: auto;
    gap: 40px;
    justify-content: space-evenly;
}

.trailer{
    width: 100%;
    height: auto;
}

iframe{
    width: 95%;
    height: 60%;
}

.backup-text{
    border: 1px solid rgb(200, 200, 200);
    padding: 10px;
    display: none;
}

iframe:empty + .backup-text{
    display: block;
}

.calendar{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.calendar caption{
    font-size: larger;
}

.empty{
    background-color: rgb(223, 223, 223);
}

th{
    background-color: rgb(207, 49, 49);
}

th,td{
    padding: 20px;
}

tr:nth-child(even){
    background-color: rgba(207, 49, 49, 0.3);
}

/*faq, .movies*/

.faq{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.faq-list{
    text-align: left;
}

.faq-list li{
    margin: 20px;
}

u{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: rgb(207, 49, 49);
}

.get_lucky{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 300px;
    bottom: 30px;
}

.get_lucky h2{
    letter-spacing: 3px;
}

.form{
    padding: 10px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#email{
    border-style: hidden hidden solid hidden;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: large;
    max-height: 30px;
    border-radius: 4px;
    margin: 2px 0;
    text-align: center;
    padding: 10px 12px;
}

#submit{
    margin: 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 0;
    background-color: rgb(207, 49, 49);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#email:focus{
    transform: scaleX(1.05);
}

#submit:hover{
    transform: scale(1.09);
    transition-duration: 1s;
}


@media screen and (max-width:1400px) {
    .home{
        display: block;
    }

    .logoX{
        align-self: center;
    }

    .logo{
        justify-self: center;
    }

    .screen1,.screen2{
        display: none;
    }
}