:root{
    --primary-color: white;
    --phlay-color: black;
    --accent-color: black;
}

*{
    box-sizing: border-box;
}

html, body, .main{
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    background-color: var(--accent-color);
    font-family: 'Arial', sans-serif;
}

.main{
    display: grid;
    grid-template-rows: 100%;
    background: url(img/BRUEGEL_PROVERBS_WEBPAGE_BKG_02.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.container{
    display: grid;
    grid-template-columns: 33% 34% 33%;
    grid-template-rows: 100%;
}

.content-center{
    display: table;
    width: 100%;
    height: 100%;
    align-self: center;
}
.center-cell{
    display: table-cell;
    margin: auto;
    vertical-align: top;
    height:100%;
}


.content-right {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
}
.qrcode{
    width: 40%;
}
.content-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.content-left img{
    width: 95%;
}


.pack-header-desktop{
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 7% 0;
}
.pack-header-desktop img{
    width: 65%;
}

.pack-header{
    width: 100%;
    display: none;
    text-align: center;
    align-items: start;
}
.pack-header img{
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.banner-container{
    width: auto;
    display: grid;
    align-items: start;
    justify-items: center;
}

.banner-mobile{
    width: 3%;
    margin: 0 auto 0 auto;
}

.phlay-container{
    align-self: center;
    justify-self: center;
    max-width: 640px;
    width: 100%;
    height: 100%;
    display: grid;
    margin: auto;
}

.frame{
    align-self: center;
    justify-self: center;
    margin: auto;
    border: none;
    width: 100%;
    height: 100%;
}

.header{
    display: flex;
    width: 100%;
    background-color: var(--phlay-color);
    color: var(--primary-color);
    font-family: 'Arial', sans-serif;
    text-align: center;
    font-weight: 400;
    align-items: center;
    justify-content: center;
}
.title{
    margin-top: 1%;
    margin-block-end: 0;
    margin-block-start: 0;
    height: 80%;
    justify-self: center;
}
.subtitle{
    margin: 0;
    font-size: 1.1em;
    margin-block-end: 0;
    margin-block-start: 0;
    letter-spacing: 3px;
}

.header-img{
    width: 80%;
    margin: 0 auto;
}

.content-img{
    height: 100%;
}

.separator{
    width: 102%;
    align-self: end;
}
.cta{
    width: 100%;
    display: none;
    align-self: end;
}

.logo{
    width: 12%;
    align-items: flex-start;
}

.footer{
    width: 100%;
    display: none;
    align-items: center;
    justify-items: center;
}


.external-page-container{
	background: rgba(0,0,0,.8);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
    display: none;
	flex-direction: column;
	align-items: center;
    justify-content: center;
	padding: 5% 3%;
	transition: opacity .25s;
	opacity: 0;
	row-gap: 10px;
}
.external-page{
	justify-self: center;
	width: 100%;
	border: 5px solid white;
	border-radius: 10px;
	background: white;
}
.close-page{
	margin-left: auto;
	height: 5%;
}


/* MOBILE PORTRAIT */
@media only screen and (max-width: 480px){
	body{
		background: var(--accent-color);
	}
	
    .content-right, .content-left, .header, .countdown, #info-container, .pack-header-desktop{
        display: none;
    }
    .pack-header{
        display: grid;
    }
    .center-cell{
        vertical-align: top;
    }
    
    .phlay-container{
        height: 90%;
        width: 100%;
        margin: 0 auto;
    }

    .frame{
        width: 100%;
        height: 100%;
    }
    
    .footer{
		display: none;
	}
    
    .main{
        display: grid;
        grid-template-rows: 100%;
        overflow-y: auto;
        background: var(--accent-color);
    }
    .container{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        overflow-y: hidden;
        padding-top: 0;
    }

    .external-page{
        width: 90%;
        margin-bottom: 5%;
    }
    
    @media only screen and (min-height: 670px){
        .main{
            grid-template-rows: 82% 18%;
            overflow-y: auto;
        }       
        .footer{
            display: grid;
            align-items: start;
        }
        .banner-mobile{
            width: 20%;
            z-index: 100;
            align-self: start;
        }
        #museum-logo{
            width: 55%;
        }
        .external-page{
            width: 100%;
            margin-bottom: 15%;
        }
		
	}

}


/* MOBILE LANDSCAPE */
@media only screen and (max-width: 900px) and (orientation: landscape){

    .main, .container{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        padding-top: 0;
        background: var(--accent-color);
    }
    
    .content-right, .content-left, .footer, .header, .pack-header, #info-container, .pack-header-desktop{
        display: none;
    }
    
    .center-cell{
    	vertical-align: center;
    }
    
    .frame{
        width: 100%;
        height: 100%;
    }
    
    .phlay-container{
        width: 100%;
    	height: 100% !important;
    	margin: auto;
    }

    .external-page-container{
		padding: 2%;
		transition: opacity .25s;
		opacity: 0;
	}
	.external-page{
		justify-self: center;
		width: auto;
        margin: 0 auto;
		height: 90%;
		border: 5px solid white;
		border-radius: 10px;
		background: white;
		align-self: start;
	}
	.close-page{
		height: 10%;
	}

}


/* TABLET PORTRAIT */
@media only screen and (min-width: 481px) and (max-width: 1024px) and (orientation: portrait){
    .content-right, .content-left, .header, .countdown, #info-container, .pack-header-desktop{
        display: none;
    }
    
    .pack-header{
        display: grid;
    }
    
    .center-cell{
        vertical-align: top;
    }
  
    .main{
        grid-template-rows: 100%;
        background: var(--accent-color);
    }

    .phlay-container{
        width: 100%;
    	height: 100%;
    	margin: auto;
    }
    
    .frame{
        width: 100%;
        height: 100%;
    }
    
    .container{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100%;
    }

    .footer{
        display: none;
    }
    .footer a{
        width: 100%;
    }
    .banner-mobile{
        max-width: 640px;
        width: 15%;
        display: block;
    }

    
    .external-page{
        width: 70%;
    }

}


/* TABLET LANDSCAPE */
@media only screen and (min-width: 910px) and (max-width: 1366px) and (orientation: landscape){
    
    .header, .pack-header, .countdown, #info-container, .pack-header-desktop{
        display: none;
    }
  
    .main{
        grid-template-rows: 100%;
        overflow-y: auto;
        justify-content: center;
    }

    .container{
        display: grid;
        grid-template-rows: 100%;
    }

    .phlay-container{
        width: 100%;
    	height: 100%;
        margin: auto;
    }
    
    .frame{
        width: 100%;
        height: 100%;
    }

    .footer{
        display: grid !important;
    }
    .banner-mobile{
        display: block;
        width: 10%;
        margin-top: 10%;
    }
    
}