:root{
    --primary-color: white;
    --phlay-color: black;
    --accent-color: black;
}

html, body, .main{
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    background-color: var(--accent-color);
    font-family: 'Arial', sans-serif;
}

.mobile{
    display: none;
}

.main{
    display: grid;
    grid-template-rows: 100%;
}

.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: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height:100%;
}


.content-right {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-items: center;
    background: url(img/WEBPAGE_RICCIARDI_RIGHT.png);
}
.content-left{
    display: flex;
    flex-direction: column;
}
.content-left, .content-right{
    margin: 0;
    width: 100%;
}
.qrcode{
    width: 40%;
    margin-top: 16%;
    margin-left: 8%;
}


.pack-header, .pack-footer{
    width: 100%;
    display: flex;
    text-align: center;
    align-items: start;
    justify-content: center;
    margin: 0;
}
.pack-header img{
    width: 100%;
    max-width: 640px;
    margin: 0;
}
.pack-footer{
    margin-top: auto;
    padding-bottom: 3%;
}
.pack-footer img{
    width: 15%;
    margin: 0;
    margin-top: 2%;
}
.pack-footer img:last-of-type{
    margin-top: 4%;
}
.fcrc-logo{
    margin-right: 3% !important;
}

.banner-container{
    width: auto;
    display: grid;
    align-items: start;
    justify-items: center;
}

.phlay-container{
    align-self: center;
    justify-self: center;
    max-width: 640px;
    width: 100%;
    height: 100%;
    display: grid;
    margin: 0 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;
}

.fcrc-logo, .phlay-logo, .campania-logo{
    cursor: pointer;
}

.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);
	}
    .desktop{
        display: none;
    }
    .mobile{
        display: unset;
    }
	
    .content-right, .pack-footer, .content-left, .header, .countdown, #info-container{
        display: none;
    }
    .pack-header{
        display: none;
    }
    .center-cell{
        padding-top: 0;
    }
    
    .phlay-container{
        height: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .frame{
        width: 100%;
        height: 100%;
        margin-top: 0;
    }
    
    .footer{
		display: none;
	}
    
    .main{
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: var(--accent-color);
    }
    .container{
        display: grid;
        height: 100%;
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        overflow-y: hidden;
        padding-top: 0;
    }
    
    @media only screen and (min-height: 690px){
        .container{
            height: 90%;
        }       
        .phlay-container{
            height: 100% !important;
        }
        .footer{
            margin-top: auto;
            margin-bottom: 3%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .banner-mobile{
            width: 18%;
            z-index: 100;
            margin: 0;
        }
		
	}

}


/* MOBILE LANDSCAPE */
@media only screen and (max-width: 979px) and (orientation: landscape){

    .desktop{
        display: none;
    }
    .mobile{
        display: unset;
    }

    .main, .container{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        padding-top: 0;
        background: var(--accent-color);
    }
    
    .content-right, .content-left, .footer, .pack-footer, .header, .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 PORTRAIT */
@media only screen and (min-width: 481px) and (max-width: 1024px) and (orientation: portrait){
    .content-right, .content-left, .header, .countdown, #info-container{
        display: none;
    }
    
    .desktop{
        display: none;
    }
    .mobile{
        display: unset;
    }

    .pack-header{
        display: grid;
    }
    
    .center-cell{
        vertical-align: top;
        padding-top: 0;
    }
  
    .main{
        grid-template-rows: 100%;
        background: var(--accent-color);
        overflow-y: auto;
    }

    .phlay-container{
        width: 100%;
    	height: 100%;
    	margin: auto;
        max-width: 500px;
    }
    
    .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;
    }

}


/* TABLET LANDSCAPE */
@media only screen and (min-width: 980px) and (max-width: 1366px) and (orientation: landscape){
    
    .header, .pack-footer, .countdown, #info-container, .content-left, .content-right, .footer{
        display: none;
    }
    
    .desktop{
        display: none;
    }
    .mobile{
        display: unset;
    }
  
    .main{
        grid-template-rows: 100%;
        overflow-y: auto;
        justify-content: center;
        background-position: center;
    }

    .container{
        display: grid;
        grid-template-rows: 100%;
        grid-template-columns: 100%;
    }

    .content-right img{
        width: 100%;
    }

    .phlay-container{
        width: 100%;
    	height: 100%;
        max-width: 400px;
        margin: auto;
    }
    
    .frame{
        width: 100%;
        height: 100%;
    }

    .pack-footer{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .pack-footer img{
        width: 8% !important;
        margin: 2% !important;
    }
    
}