/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Lato:300,400&display=swap');

/* Profile CSS */

body {
display: flex;
height: 100vh;
overflow: hidden;
}

#header, #header_content, #notification, #top_right, #header ul.menu {
display: flex;
flex-direction: column;
}

#top_right {
display: flex;
position: relative;
}

#header {
align-items: center;
flex: 1;
}

#header_content {
width: 100%;
padding: 0px;
}

#header ul.menu .fa {
width: auto!important;
}

/* Logout Button */
#top_right a:nth-of-type(1) {
padding-right: 5px;
}

/* Avatar Preview */
#top_right a:nth-of-type(2) {
align-self: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 150px;
width: 150px;
border-radius: 75px;
background: rgba(255, 255, 255, 0.2);
margin-bottom: 10px;
}

#top_right a:nth-of-type(2) img {
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
}

#content {
flex: 5;
max-width: none;
padding: 0px;
overflow-y: scroll;
}

#header ul.menu {
background: transparent!important;
padding: 0px;
margin: 15px;
}

#header ul.menu li a {
padding: 0px;
margin: 0px;
}

#header ul.menu li a{
display: flex;
flex: 1;
font-family: 'Lato', sans-serif;
font-size: 1.5em;
border-radius: 0px;
margin: 2.5px 0px;
padding: 5px 10px;
background: rgba(255, 255, 255, 0.5);
transform: rotate(-1deg);
}

#header ul.menu li a:hover {
background: rgba(255, 255, 255, 0.8);
}

/* Hide and replace copyright somewhere else */
#bottom {
display: none!important;
}

#content:after{
margin-top: 15px;
content: 'This website is ©2008-2019 Karin Driel - Content is © to the respective authors';
width: 100%;
display: block;
padding: 15px 0px;
}

/* Content CSS Changes */

#content > h1 {
text-align: left;
background: #6A92C2;
padding: 10px;
text-transform: uppercase;
color: #EEE;
font-family: 'Lato', sans-serif;
letter-spacing: 1.5px;
}

.menu {
width: 100%;
margin: 0px!important;
}

.menuText {
display: block!important;
}

#header ul.menu li a {
align-items: center;
justify-content: space-between;
padding: 10px!important;
}

a.homelink.vertical, .homelink.horizontal {
display: none;
}

#content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* auto-flow places remaining items in new rows */
}

/* Hide the empty anchors */
#content > a[name] {
  display: none;
}

/* First menu → column 1, row 1 */
#content > ul.menu:first-of-type {
  grid-column: 1 / 2;
  grid-row: 2 / 2;
}

/* #edit → column 2, row 1 */
#edit {
  grid-column: 2 / 3;
  grid-row: 2 / 2;
}

/* All other direct children → span both columns, placed in subsequent rows automatically */


ul.menu {
display: flex!important;
}

#edit > li:first-child {
margin-left: auto;
}

/* --- New layout for Avi, Equipped, and Custom Content --- */

/* Place profile avi in column 1, row 3 */
#profile_avi {
  grid-column: 1 / 2!important;
  grid-row: 3 / 4!important;
}

/* Place equipped directly underneath avi (column 1, row 4) */
#equipped {
  grid-column: 1 / 2!important;
  grid-row: 4 / 5!important;
}

/* Place custom content to the right of both, spanning rows 3 and 4 */
#custom_content {
  grid-column: 2 / 3!important;
  grid-row: 3 / 5!important;
}

#content > *:not(ul.menu):not(a[name]) {
  grid-column: 1 / 3;
}
