@import url("sidebar.css");

@keyframes bounce {
    0% {
        transform: translateY(0px);
    }
    10% {
        transform: translateY(-30px);
    }
    20% {
        transform: translateY(0px);
    }
}

@keyframes trainloop {
	0% {
		transform: translateX(-125%);
	}
	30%, 100% {
		transform: translateX(125%);
	}
}

body {
    font-family: "Roboto", "Noto Sans HK", Tahoma, Geneva, Verdana, sans-serif;
    width: 75%;
	min-width: 850px;
    color: black;
    margin: auto;
    padding: 0;
}

.bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    background: url("../img/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

h1,h2,h3,h4,h5,h6 {
    margin: 0.5em 0;
}

a {
    position: relative;
    text-decoration: none;
}

nav {
	border-collapse: collapse;
    width: 100%;
    height: 194px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
	margin-top: 20px;
    margin-bottom: 10px;
    overflow-y: hidden;
    overflow-x: auto;
}

nav, .content {
    backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid white;
    outline: 1px solid #444;
    box-shadow: 0 0 8px 1px #000;
}

.nav-links {
    margin: 16px;
    white-space: nowrap;
}

.nav-links > a {
    color: black;
    padding: 9px;
    background: linear-gradient(#E0EAFA, #AFAFAF);
    border-top: 1px solid white;
    border-left: 1px solid white;
    outline: 1px solid gray;
    border-radius: 5px;
}

.nav-links > a:hover {
    background: linear-gradient(#AFAFAF, #E0E2EA);
}

.nav-links > a > img {
    height: 20px;
    margin-right: 8px;
    transform: translateY(0.25em);
    filter: drop-shadow(0px 0px 1px #000) drop-shadow(0px 0px 2px #666);
}

h2, h3, h4, h5, h6, p, label {
/*    text-shadow: 0 0 14px white, 0 0 14px white, 0 0 16px white, 0 0 16px white;*/
}

.header {
	position: relative;
    background-image: url("../img/banner.jpg");
    background-size: cover;
    background-position: bottom;
    text-align: center;
    font-size: 20px;
    color: white;
	padding-top: 6px;
    padding-bottom: 1px;
    text-shadow: 0 0 2px black, 0 0 3px black, 0 0 4px black, 0 0 5px black, 0 0 6px black;
    border-bottom: 1px solid white;
	overflow-x: hidden;
}

.header > * {
	position: relative;
	z-index: 2;
}

.header > h1 > span {
    display: inline-block;
    animation: 4s bounce infinite;
}

.header > h1 > span:nth-child(2) {
    animation-delay: 0.2s;
}

.header > h1 > span:nth-child(3) {
    animation-delay: 0.4s;
}

.header > h1 > span:nth-child(4) {
    animation-delay: 0.6s;
}

.header > h1 > span:nth-child(5) {
    animation-delay: 0.8s;
}

.header > h1 > span:nth-child(6) {
    animation-delay: 1s;
}

.header > h1 > span:nth-child(7) {
    animation-delay: 1.2s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.trainloop {
	position: absolute;
	bottom: 0;
	left: 0;
	animation: trainloop 30s linear infinite;
	z-index: 0;
}

.content {
    position: relative;
    display: grid;
    grid-template-areas: "sidebar content";
    grid-template-columns: 1fr 16fr;
    min-height: 700px;
    height: calc(100vh - 250px);
    background-color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.content > div {
    position: relative;
}

.actual-content {
    position: relative;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    font-size: 20px;
}

.actual-content > iframe {
	border: none;
	width: 100%;
	height: 100%;
}

.center {
    text-align: center;
}
