:root{
    --primary-color: white;
    --phlay-color: black;
    --accent-color: #002731;
}

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/MILANO_WEBPAGE_BKG.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.container{
    display: grid;
    grid-template-columns: 33% 34% 33%;
    grid-template-rows: 100%;
    padding-top: 3%;
}

.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, .content-left{
    background-size: cover;
    display: grid;
    align-items: start;
    justify-items: center;
}
.content-left img{
    margin-top: 27%;
    width: 40%;
}
.side-img{
    width: 85%;
}
.content-right img{
    margin-top: 23%;
}
.side-img.demo{
    width: 80%;
    justify-self: start;
}

.pack-header{
    width: 100%;
    display: grid;
    text-align: center;
    align-items: start;
    max-width: 640px;
    cursor: pointer;
}
.pack-header img{
    width: 100%;
}

.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: start;
    justify-self: center;
    margin: auto;
    max-width: 640px;
    width: 100%;
    height: 100%;
    margin-top: 20%;
    display: grid;
}

.frame{
    align-self: center;
    justify-self: center;
    margin: auto;
    border: none;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    box-sizing: border-box;
    transition: opacity .25s;
}

.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: 16%;
    align-items: flex-start;
}
.pack-footer{
    display: flex;
    justify-content: center;
    margin-top: 20%;
}

.footer{
    width: 100%;
    display: none;
    align-items: center;
    justify-items: center;
}


/* MOBILE PORTRAIT */
@media only screen and (max-width: 480px){
	body{
		background: var(--accent-color);
	}
	
    .content-right, .content-left, .header, .pack-header, .pack-footer, .countdown, #info-container{
        display: none;
    }
    
    .phlay-container{
        height: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .frame{
        width: 100%;
        height: 100%;
        border: none;
    }
    
    .footer{
		display: none;
	}
    .banner-mobile{
        display: block;
        width: 30%;
        margin-top: 8%;
    }
    
    .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: scroll;
        padding-top: 0;
    }

    @media only screen and (min-height: 699px){
        .footer{
            position: absolute;
            bottom: 3.5%;
            z-index: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .banner-mobile{
            width: 20%;
            z-index: 100;
            margin: 0;
        }
		
	}

}


/* 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-footer, .pack-header, #info-container{
        display: none;
    }
    
    .center-cell{
    	vertical-align: center;
    }
    
    .frame{
        width: 100%;
        height: 100%;
    }
    
    .phlay-container{
        width: 100%;
    	height: 100% !important;
    	margin: auto;
    }
}


/* TABLET */
@media only screen and (min-width: 481px) and (max-width: 1366px){
    .content-right, .content-left, .header, .pack-header, .countdown, #info-container{
        display: none;
    }
  
    .main{
        grid-template-rows: 100%;
        overflow-y: auto;
        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;
    }

}


