html, body {
    height: 100%;
    margin: 0;    
}
html {
	scroll-behavior: smooth;
}
*{
    font-family:  "Source Sans Pro", Arial,OpenSans, "Hiragino Sans GB", "Microsoft JhengHei", STHeiti,华文黑体,華文黑體, SimHei,黑体, sans-serif;
    box-sizing: border-box;
    transition: all 0.3s;
}
body{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(to right, rgba(230, 240, 255, 0.96) 0, rgba(255, 255, 255, 0.96) 25%);
}
#container{
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 120px;
}
#langBar{
    display: flex;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    top: 0;
}
.langItem{
    margin: 10px;
    /* font-weight: bold; */
    font-size: 16pt;
    color:#337ab7;
    cursor: pointer;
    text-decoration: none;
}
.langItem:hover{
    color:#234767;
}
header{
    display: flex;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin: 0;
    top: 0;
    z-index: 20;
}
header>a{
    padding: 10px;
    height: 60px;
    margin: 5px 10px;
    text-align: center;
    color:#337ab7;
    font-weight: bold;
    text-decoration: none;
}
header>a>img{
    height: 100%;
}

header>a.menuitem{
    border-top:12px solid #ddd;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 5px;
    font-size: 1.75em;
}
header>a.menuitem:hover{
    border-top:12px solid #A8E8FF;
    color:#234767;
}
content{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
content>img{
    width: 100%;
}
/* Programme */
nav{
    display: flex;
    align-content: center;
    justify-content: flex-start;
    align-items: end;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    height: 150px;
}
nav>div.menuitem{
    font-family:"Arial Black",sans-serif;
    border-bottom:12px solid #ddd;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 5px;
    margin: 5px;
    font-weight: bold;
    font-size: 20pt;
    color:#337ab7;
    text-align: center;
    cursor: pointer;
    opacity: 0.4;
}
nav>div.menuitem:hover,.dateSelected{
    border-bottom:12px solid #A8E8FF !important;
    color:#234767 !important;
    opacity: 1 !important;
}
nav>img{
    position: absolute;
    right: 0;
    top: 0;
    height: 150px;
}
#main,#main2{
    position: absolute;
    width: 100%;
}
.image-container {
    width: 100%; /* Adjust to your image width */
    height: 100%;
    position:relative;
}
.hide{
    transform:translate(10px,0px) !important;
    opacity: 0 !important;
}
.hide2{
    display: none;
}
.image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.imageMap{
    position: absolute;
    z-index: 10;
    background-color: rgba(0, 0, 0, .001);
    cursor: pointer;
    /* border: 1px solid #ff0000; */
}
.category{
    position: relative;
    width: calc(100% - 30px);
    padding: 0;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.event{
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin: 0;
    padding: 20px 90px;
    font-size: 1.25em;
}
.event_custom{
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin: 0;
    padding: 20px 90px;
    font-size: 1.25em;
}
.category>.event:first-child{padding-top: 40px;margin-top: 0;}
.category>.event:last-child{padding-bottom: 40px;margin-bottom: 0;}
.category>.event_custom:first-child{padding-top: 40px;margin-top: 0;}
.category>.event_custom:last-child{padding-bottom: 40px;margin-bottom: 0;}
.event2{
    background-color: rgba(255,255,255,0.4);
}
.time{
    width: 145px;
}
.venue{
    width: 290px;
}
.eventName{
    width: calc(100% - 145px - 290px);
}
.contactTitle,.mapTitle,.catogoryTitle {
    margin: 20px 20px 5px 20px;
    font-size: 1.75em;
    color: #007ba1;
    font-weight: 500;
}
.catogoryTitle{margin: 25px 20px 15px 20px;}
.contact,.map{
    margin: 5px 20px 20px 20px;
    border: 5px solid #007ba1;
    padding: 10px 5px;
    font-size: 1.2em;
    color: #007ba1;
}
.contact a,.contact p{
    color:black;
    text-decoration: none;
}
.contact p{
    padding: 0 20px;
    margin: 5px 0;
}
.legend,.floor{
    padding: 15px;
}
.legend{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.legend>img{
    width: 300px;
}
.floor{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.floor>img{
    width: 100%;
}
video{
    width: 100%;
}
#backtoup{
    position: fixed;
    background-image: url("../images/sidebar.png");
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    right: -120px;
    bottom: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#backtoup.visible {
    right: 0; /* Visible when scrolling */
}
#backtoup a{
    width: 55%;
    height: 55%;
    position: absolute;
    right: 15px;
}
#backtoup a img{
    width: 100%;
    height: 100%;
}
svg{
    position: relative;
}
/* Footer */
footer{
    transition: none !important;
    display: none;
	line-height: 1.5em;
    padding: 25px;
    width: 100%;
    position: relative;
    background-color:  rgb(230,230,230);
    color:rgb(20, 20, 20);
    z-index: 10;
    opacity: 0;
}
footer.footerDone{
    opacity: 1 !important;
    display: block;
}
footer a{
    color:#444;
    transition: all 0.5s;
}
footer a:hover{
	color:#666;
}
footer img#memberOfVTC{
	position: absolute;
	bottom: 0;
	right: 0;
}

@media (max-width: 1280px){
    header {
        align-items: stretch;
        flex-direction: column;
    }
    nav>img{
        position:static;
        height: 100px;
    }
    .event,.event_custom{
        flex-direction: column;
        margin: 0;
        padding: 15px 30px;
    }
    
    .time,.venue,.eventName{
        width: 100%;
    }
    .floor{
        padding: 0;
    }
    #backtoup{
        display: none;
    }
    nav>div.menuitem{
        border-bottom:10px solid #ddd;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1em;
    }
    header>a.menuitem{
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1.5em;
    }
}
@media (max-width: 800px){
    footer{
        line-height: 1.5em;
        font-size: 10pt;
    }

}