/* CSS VARIABLES
Here you can change the values for all elements that use these variables. 
This way you only have to change them once and not for each element individually. 

--main-spacing: Adds padding in header, sidebar, content and footer
--border-radius: Rounded corners for boxes and links
--menu-link-spacing: Spacing between links in the sidebar, footer, etc.
--footer-columns: Amount of columns side by side
--footer-wide-column-width: If you use class="cell wide", the columns will be rearranged and resized automatically
--container-top-bottom-spacing: Container distance top and bottom
*/

:root {
	--main-spacing: 15px;
	--menu-link-spacing: 3px;
	--main-border-radius: 5px;
	--icons-border-radius: 100%;
	--footer-columns: 2;
	--footer-wide-column-width: 50%;
	--container-top-bottom-spacing: 20px;
    --bg-color: #fff7d6;
    --text-dark: #db7c00;
    --text-light: #f0b11c;
}

* {
    color: #333;
}

body {
	background-color: var(--bg-color);
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}


/* STANDARDS
Headlines, normal links, text fields and formatting
*/

a {
	color: var(--text-light);
}

#content a {
    font-variant: small-caps;
}

hr {
	margin: 25px 0;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

a:hover {
	color: #999;
}

b,
strong {
    color: var(--text-light);
}

i,
em {
    color: #777;
}

s {
    color: #999;
}

h2 > i {
    color: #aaa;
}

h1 {
    font-family: Courier New;
    color: var(--text-dark);
}

h2 {
    font-family: Courier New;
    margin-top: 10px;
    color: var(--text-light);
}

h3 {
    font-family: Courier New;
}

input {
	width: 50%;
}

input[type=submit] {
    cursor: pointer;
}

textarea {}

button {}

input,
select,
textarea,
button {
	border-radius: var(--main-border-radius);
}

.coding {
    background: #222;
    color: #fff;
    font-family: monospace;
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 100%;
}
.coding > pre {
    color: #fff;
    width: 100%;
}

code {
    color: purple;
}

ul li{
   list-style: none;
   text-align: left;
}

ul li::before {
    content: '';
    display: inline-block;
    height: 11px;
    width: 11px;
    background-image: url('../images/icons/musical-note.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -20px;
    margin-right: 10px;
}

ul li ul li::before {
    content: '';
    display: inline-block;
    height: 11px;
    width: 11px;
    background-image: url('../images/icons/musical-note2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -20px;
    margin-right: 10px;
}

/* Layout CSS starts here */

#container {
	width: 960px;
	overflow: hidden;
	border-radius: var(--main-border-radius);
	margin: var(--container-top-bottom-spacing) auto;
	box-shadow: 0px 0px 30px rgba(0,0,0, 0.1);
	display: grid;
	grid-template-columns: 230px 1fr 230px;
	grid-template-areas: 
		"topbar topbar topbar" 
		"sidebar header header" 
		"sidebar content content" 
		"sidebar footer footer";
}

#topbar {
	grid-area: topbar;
	background: #fff;
	padding: var(--main-spacing);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#topbar #logo {
	font-size: 14pt;
}

#topbar #social a {
	font-size: 14pt;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--icons-border-radius);
	width: 35px;
	height: 35px;
	color: #515151;
	background: #eee;
}

#topbar #social a[aria-label="Twitter"] {
	background: #1DA1F2;
	color: #fff;
}

#topbar #social a[aria-label="Facebook"] {
	background: #4267B2;
	color: #fff;
}

#topbar #social a[aria-label="Instagram"] {
	background: #f09433;
	background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
}

#topbar #social a[aria-label="Discord"] {
	background: #7289da;
	color: #fff;
}

#topbar #social a:hover {
	filter: brightness(105%);
}

header {
	grid-area: header;
	background: #fff;
	height: 200px;
	background-image: url('../images/layout/header.jpg');
	background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

header > #titel {
    font-size: 3em;
    font-family: 'Gloria Hallelujah', cursive;
    /* font-family: 'Indie Flower', cursive; */
    /* font-family: 'Cabin Sketch', cursive; */
    position: absolute;
    bottom: 0;
    color: #fff;
    /* text-shadow: rgb(0, 0, 0) 2px 0px 0px, rgb(0, 0, 0) 1.75517px 0.958851px 0px, rgb(0, 0, 0) 1.0806px 1.68294px 0px, rgb(0, 0, 0) 0.141474px 1.99499px 0px, rgb(0, 0, 0) -0.832294px 1.81859px 0px, rgb(0, 0, 0) -1.60229px 1.19694px 0px, rgb(0, 0, 0) -1.97999px 0.28224px 0px, rgb(0, 0, 0) -1.87291px -0.701566px 0px, rgb(0, 0, 0) -1.30729px -1.51361px 0px, rgb(0, 0, 0) -0.421592px -1.95506px 0px, rgb(0, 0, 0) 0.567324px -1.91785px 0px, rgb(0, 0, 0) 1.41734px -1.41108px 0px, rgb(0, 0, 0) 1.92034px -0.558831px 0px;
    */
    text-shadow: rgb(219, 124, 0) 2px 0px 0px, rgb(219, 124, 0) 1.75517px 0.958851px 0px, rgb(219, 124, 0) 1.0806px 1.68294px 0px, rgb(219, 124, 0) 0.141474px 1.99499px 0px, rgb(219, 124, 0) -0.832294px 1.81859px 0px, rgb(219, 124, 0) -1.60229px 1.19694px 0px, rgb(219, 124, 0) -1.97999px 0.28224px 0px, rgb(219, 124, 0) -1.87291px -0.701566px 0px, rgb(219, 124, 0) -1.30729px -1.51361px 0px, rgb(219, 124, 0) -0.421592px -1.95506px 0px, rgb(219, 124, 0) 0.567324px -1.91785px 0px, rgb(219, 124, 0) 1.41734px -1.41108px 0px, rgb(219, 124, 0) 1.92034px -0.558831px 0px;
    /* https://owumaro.github.io/text-stroke-generator/ */
}

header > #titel:after {
    content: 'Momokos MahoDou';
    margin-left: 5px;
}

#sidebar {
	grid-area: sidebar;
	padding: var(--main-spacing);
	background: #fcfcfc;
}

#sidebar nav {
	margin-bottom: var(--main-spacing);
}

#sidebar nav a {
	color: #777;
	background: #eee;
	padding: 5px 10px;
	display: block;
	border-radius: var(--main-border-radius);
}

#sidebar nav a:hover {
	background: #ccc;
}

#sidebar nav:not(.table) a:not(:last-child) {
	margin-bottom: var(--menu-link-spacing);
}

#content {
	grid-area: content;
	background: #fff;
	padding: var(--main-spacing);
    max-width: 100%;
}

footer {
	grid-area: footer;
	background: #eee;
	padding: var(--main-spacing);
}

footer .grid {
	display: grid;
	grid-gap: var(--main-spacing);
	grid-template-columns: repeat(var(--footer-columns), 1fr);
	/* 3 boxes side by side, 1fr = auto width */
}

footer .column {
	background: #fff;
	border-radius: var(--main-border-radius);
	padding: var(--main-spacing);
}

footer .column a {
	color: #777;
	background: #eee;
	padding: 5px 10px;
	display: block;
	border-radius: var(--main-border-radius);
}

footer .column a:hover {
	background: #ccc;
}

footer .column a:not(.table a):not(:last-child) {
	margin-bottom: var(--menu-link-spacing);
}

footer .wide {
	width: var(--footer-wide-column-width);
}

#sidebar nav.table, footer .column .table {
	display: grid;
	grid-gap: var(--menu-link-spacing);
	grid-template-columns: repeat(2, 1fr);
	/* 2 links side by side, 1fr = auto width */
}
footer a.imglink {
	background: none;
    margin: 0;
    padding: 0;
}
/* Hides the sidebar toggle for desktop browsers */

label.sidebarToggle,
input.sidebarToggle {
	display: none;
	visibility: hidden;
}


/* Mobile adjustments */

@media only screen and (max-width: 768px) {
	input:not([type=checkbox]):not([type=radio]) {
		width: 70%;
	}
	header {
		background-size: cover;
	}
	#container {
		position: relative;
		margin: 0;
		padding: 0;
		width: 100%;
		grid-template-columns: 100%;
		grid-template-areas: 
			"topbar" 
			"header" 
			"content" 
			"footer";
	}
	#topbar #social {
		margin-right: 50px;
	}
	footer .grid {
		grid-template-columns: 100%;
	}
	footer .wide {
		width: 100%;
	}
	#sidebar {
		display: contents;
	}

	/* Sidebar background and position */
	.slidebar {
		position: absolute;
		left: 0;
		top: -100%;
		width: 100%;
		background: #fff;
		padding: 50px var(--main-spacing) var(--main-spacing) var(--main-spacing);
		z-index: 1;
		-webkit-transition: all 0.3s ease;
		-o-transition: all 0.3s ease;
		transition: all 0.3s ease;
		box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
	}

	/* Sidebar toggle */
	label.sidebarToggle:before {
		content: "\2261";
		font-size: 18pt;
		z-index: 2;
		position: relative;
		padding: var(--main-spacing);
	}
	label.sidebarToggle {
		display: block;
		visibility: inherit;
		cursor: pointer;
		grid-area: topbar;
		align-self: center;
		margin-left: auto;
	}
	/* Slide in the sidebar when the toggle is clicked */
	input.sidebarToggle:checked~.slidebar {
		top: 0;
	}
	/* Change toggle icon when the sidebar is visible */
	input.sidebarToggle:checked~label:before {
		content: "\039E";
	}
}


/* COL */
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  padding: 10px;
}

@media only screen and (max-width: 700px) {
    [class*="col-"] {
        width: 100%;
        padding: 5px;
      }   
}



.gradualfader {
   opacity: 1;
   transition: opacity .25s ease-in-out;
   -moz-transition: opacity .25s ease-in-out;
   -webkit-transition: opacity .25s ease-in-out;
   }

.gradualfader:hover {
    opacity: 0.5;
}

.gradualfader2 {
   opacity: 0.5;
   background-color: #fff;
   transition: opacity .25s ease-in-out;
   -moz-transition: opacity .25s ease-in-out;
   -webkit-transition: opacity .25s ease-in-out;
   }

.gradualfader2:hover {
    opacity: 1;
}

/* SNAPPING */

.snap-outer {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.snap-inner {
    width: 100%;
    scroll-snap-align: start;
}

.newsbox-inner {
    background-size: cover;
    height: 100%;
    padding: 10px;
    display:flex;
    align-items:flex-end;
}

/* Shoutbox */

#shoutbox, .newsbox {
  
  max-width: 100%;
  /* font-family: verdana; */
  text-align: left;
  color: #d1d1d1;
  overflow-y: scroll;
   height: 300px;
   padding: 0;
}
#shoutbox {
  font-size: 10px;
}

#shoutbox input {
  font-size: 10px !important;
}

table.shoutbox {
    width: 100%;
  border-collapse: collapse;
  border-spacing: 0 2px;
}

table.shoutbox td {
  padding: 2px 5px;
  box-sizing: border-box;
  border: 0px solid;
  
}
table.shoutbox tr:nth-child(even) { background: #fff; }
table.shoutbox tr:nth-child(odd) { background: #eee;  }
 
.shoutbox-content {
    scrollTop: 50px;
    scrollbar-color: #636363 #3d3d3d;
    scrollbar-width: thin;
}

.shoutbox::-webkit-scrollbar { width: 10px; }
.shoutbox::-webkit-scrollbar-track { background: #f1f1f1; }
.shoutbox::-webkit-scrollbar-thumb { background: #888; }
.shoutbox::-webkit-scrollbar-thumb:hover { background: #555; }

#shoutbox a.shoutboxuser, .shoutbox a {
  display: inline-block;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  border-bottom: none;
  font-variant: normal !important;
}
#shoutbox a.shoutboxuser:hover, .shoutbox a:hover {
	color: var(--text-light);
  font-variant: normal !important;
}

#shoutbox a.shoutboxuser:hover:before {
	content: none;
}


.scrolling {
    overflow-y: auto;
    max-height: 200px;
    scrollbar-color: #636363 #3d3d3d;
    scrollbar-width: thin;
}

.scrolling::-webkit-scrollbar { width: 10px; }
.scrolling::-webkit-scrollbar-track { background: #f1f1f1; }
.scrolling::-webkit-scrollbar-thumb { background: #888; }
.scrolling::-webkit-scrollbar-thumb:hover { background: #555; }
/* --------------------------------------------------------- */

/* ---------- TOOLTIP ---------- */


.csstooltip {
  position: relative;
  display: inline-block;
  border-bottom: 0px dotted black;
}

.csstooltip span {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 5;
  bottom: 115%;
  left: 50%;
  margin-left: -60px;
  font-variant: none;
  font-size: 10px;
}

.csstooltip span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.csstooltip:hover span {
  visibility: visible;
}

td.min {
    width: 1%;
    white-space: nowrap;
}