#layout{
	display: flex;
	flex-direction:row;
}

/* SIDEBAR */

#sidebar {
    z-index:1000;
    width: var(--sidebar-max-w);
    inset: 0;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    background: var(--color-black);
    overflow: hidden;
    transition: width 0.5s ease;
    position: relative;
}

#sidebar.collapsed {
    width: var(--sidebar-min-w);
}

#sidebar #sidebarFooter, #sidebar #sidebarContent{
    flex:1;
}

#sidebar.collapsed #sidebarFooter, #sidebar.collapsed #sidebarContent{
    display:none;
}

#sidebar #iconBurger {
    position: fixed;
    top: 20px;
    left: 5px;
    width: 30px;
    height: 30px;
    font-size: 24px;
    background: transparent;
    color:var(--color-gray-dark);
    border:0px;
    cursor: pointer;
}

#sidebar #iconBurger:hover{
    color: var(--color-white);
}

#sidebar #sidebarContent{
    position: relative;
    top:50px;
}

#main {
    flex: 1;
    overflow-y: auto;
}

#main #welcome {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

#back_layer,
#front_layer {
    position: absolute;
    inset: 0;
    background: no-repeat center / cover;
}

#back_layer {
    z-index: 1;
}

#front_layer {
    z-index: 2;
    transition: opacity 1s ease;
}

#front_layer.hidden {
    opacity: 0;
}

#subtitle {
    display: none;
    position: absolute;
    right: 0;
    bottom: 50px;
    z-index: 3;
    padding: 75px 75px 40px 35px;
    background-color: rgba(255, 255, 255, 0.3);
}

#subtitle #activity {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

#subtitle #client,
#subtitle #location {
    font-size: 1em;
    line-height: 1.5em;
}

#main #welcome #scrolldown{
    z-index:3;
	width:100%;
	text-align:center;
	position:fixed;
	bottom:50px;
	padding-bottom:20px;
}

#main #welcome #scrolldown #scroll{
	font-family: 'PT Sans Narrow', sans-serif;
	font-weight:bold;
	font-size:1.25em;
	color:#FFF;
	text-transform:uppercase;
}

#main #welcome #scrolldown #down{
	position:absolute;
	display:block;
	left:50%;
	margin-left:-7px;
	width:18px;
	height:11px;
	margin-top:10px;
	background:url(/static/i/down.png);
	transform: translateY(0);
	animation: move 1s infinite linear;
}

#main #practice{
	position:relative;
	background: var(--color-background);
	z-index:2;
	box-shadow:0px 0px 10px 10px rgba(0,0,0,0.5);
	width:94%;
	margin:0 auto;
	top:100vh;
	min-height:100vh;
}

#main #practice #content{
    padding:50px 30px;
}

#tags{
    display: flex;
    flex-direction:row;
    justify-content: space-between;
    gap:1em;
	font-family:Helvetica;
}

#tags #col1{
    flex:1;
}

#tags #col2{
    flex: 1;
}

#tags span{
	display:block;
	border-bottom:1px solid #FFF;
	padding:5px;
	margin-bottom:15px;
	font-weight:bold;
	color:#DDD;
}


#tags a{
	text-decoration:none;
	display:block;
	margin:5px;
	font-weight:bold;
	color:#DDD;
}

#tags a:hover{
	text-decoration:underline;
	color:#FFF;
}

/* Tiles */

#tiles{
	display:flex;
    flex-flow: row wrap;
	justify-content: center;
	gap: 3em;
}

.tile{
	color: var(--color-white);
	position:relative;
    overflow: hidden;
	align-self: center;
    border-radius: 16px;
    box-shadow: 0 2px 3px var(--color-shadow);
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;

    z-index: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
}

.tile:hover::before {
    transform: scale(1.08);
    animation: fadeInCard 0.4s ease forwards;

}

.tile.filtered{
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.tile .text{
	bottom:0em;
	left:0em;
	right:0em;
	position:absolute;
    padding: 1em;
}

.tile:hover .text{
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 100%
    );
}

.tile h2 a{
	color:#FFF;
	text-decoration:none;
}

.tile h2 a:hover{
	text-decoration:underline;
}

.tile .tags{
	font-size:0.85em;
	font-family: 'PT Sans Narrow', sans-serif;
	font-weight:bold;
	display: flex;
	gap: 0.5em;
    flex-wrap: wrap;
}

.tile .tags a{
    color:#FFF;
	border:1px solid #fff;
	padding:0.25em;
	text-decoration:none;
	white-space:nowrap;
}

.tile .tags a:hover{
	border:1px solid #f00;
	color:#F00;
}
#practice .tile.normal{
	width:380px;
	height:380px;
}

#practice .tile.wide{
	width:580px;
	height:460px;
}

#practice .tile.strait{
	width:300px;
	height:440px;
	padding: 2em;
	margin: 1em 1.2em 4em;
}
