*{
	font-family:verdana,"sans-serif";
	font-size:20px;
	color:#ffffff;
	margin:0;
	padding:0;
	box-sizing:border-box;

    max-width: 100%;
}

#wrapper{
    min-width: 100vw;
    min-height: 100vh;
	margin: 0 auto;
	display:grid;
	grid-template-areas:
		"banner"
		"menu"
		"content"
		"socials";
	grid-template-columns:1fr;
	grid-template-rows: 150px 75px auto 80px;

    background-color: #000000;
}

#landing{
    min-width: 100vw;
    min-height: 100vh;
	margin: 0 auto;
    /*---from https://css-pattern.com/overlapping-circles/ ---*/
    --s: 102px; /* control the size*/
    --c1: #000000;
    --c2: #0f0f0f;
    
    --_g: 
        var(--c1) 0%  5% ,var(--c2) 6%  15%,var(--c1) 16% 25%,var(--c2) 26% 35%,var(--c1) 36% 45%,
        var(--c2) 46% 55%,var(--c1) 56% 65%,var(--c2) 66% 75%,var(--c1) 76% 85%,var(--c2) 86% 95%,
        #0000 96%;
    background:
        radial-gradient(50% 50% at 100% 0,var(--_g)),
        radial-gradient(50% 50% at 0 100%,var(--_g)),
        radial-gradient(50% 50%,var(--_g)),
        radial-gradient(50% 50%,var(--_g)) calc(var(--s)/2) calc(var(--s)/2)
        var(--c1);
    background-size: var(--s) var(--s);
    
    align-content: center;
    max-width: 100%;
}

.desktop{
    display: block;
}

.mobile{
    display: none;
}

header{
    background-color: #000000;
}

header img{
    display: block;
    margin: 0 auto;
}

nav{
    grid-area: menu;
    background-color: #000000;
    align-content: center;
}

nav ul{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

nav li{
    list-style: none;
    margin-left: 2em;
    text-align: left;
}

nav li:nth-child(1){
    margin-left: 1em;
}

nav li a{
    text-decoration: none;
}

nav li a:hover{
    text-decoration: underline dotted #ffffff 3px;
}

main{
    background-color: #000000;
}

main h1{
    text-align: center;
    font-size: 48px;
    margin: 0.5em;
}

main li{
    list-style: none;
}

main p{
    text-align: center;
}

main a{
    text-decoration: none;
}

footer{
    grid-area: socials;
    background-color: #000000;

}

footer ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 80px;
}

footer li{
    list-style: none;
}

footer .fa {
    padding: 10px;
    font-size: 25px;
    width: 50px;
    text-align: center;
    text-decoration: none;
}

#about{
    display: grid;
    grid-template-areas:
		"header"
		"footer"
		"nav";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;


    width: 90%;
    padding: 2em;
    background-color: #00000099;
    border-radius: 10px;
    box-shadow: 0 0 5px 5px #00000095;
    margin: 0 auto;
    align-content: center;
}

#about header{
    background-color: transparent;
}

#about h1{
    grid-area: header;
    margin: 0;
}

#about p{
    grid-area: header;
    margin-top: 2em;
}

#about footer{
    grid-area: footer;
    background-color: transparent;

    margin-top: 1em;
}

#about footer .fa{
    font-size: 25px;
    width: 50px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
}

#about nav{
    grid-area: nav;
    background-color: transparent;
    height: 1em;
    margin-top: 1em;
}

#about nav ul{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

#about nav li{
    width: 15em;
    text-align: center;
}

#about nav li a:hover{
    text-decoration: underline dotted #ffffff 3px;
}
    
#works{
    grid-area: content;
    display: grid;
    	grid-template-areas:
		"works"
		"buttons"
		"content";
	grid-template-columns:1fr;
	grid-template-rows: repeat(4,auto);
}

#works h1{
    grid-area: works;
}

#works #btn{
    grid-area: buttons;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

#works #btn button{
    background-color: #000000;
    width: 7em;
    height: 100%;
    margin: 1em;
    border: none;
}

#works #btn button:hover{
    background-color: #3d3d3d;
    cursor: pointer;
}

#works #photo-page{
    display: block;
    grid-area: content;
}

#works #photos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    position: relative;

    margin: 0 5%;
}

#works section h2{
    flex-basis: 100%;
    text-align: center;
    margin: 1em;
}

#works #photos img{
    margin: 0.5em;
}

#works #project-page{
    display: none;
    grid-area: content;
}

#works #projects{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    margin: 0 5%;
}

#works #projects img{
   margin: 0.5em;
}

#works #projects .slide{
    position: relative;
    margin: 0.5em;
}

#works #projects .overlay{ /*Learned from https://www.w3schools.com/howto/howto_css_image_overlay_slide.asp*/
    position: absolute;
    bottom: 0px;
    /*alternate style bottom: 50%;*/
    left: 0;
    right: 0;
    background-color: #20202080;
    overflow: hidden;
    width: calc(100% - 1em);
    height: 0;
    transition: .5s ease;
    margin: 0.5em
}

#works #projects .slide:hover .overlay{
    height: calc(100% - 1em);
    /*alternate style bottom: 0;*/
}

#works #projects .overlay p {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#horse{
    grid-area: content;
    display: grid;
    grid-template-areas:
        "sidebar content content"
        "sidebar table table";
    grid-template-columns: 1fr 4fr;
    grid-template-rows: 1fr;
}

#horse h2{
    font-size: 2em;
    text-align: center;
    margin-bottom: 0.5em;

}

#horse p{
    margin-bottom: 1em;
}

#horse #tabs{
    grid-area: sidebar;
    position: sticky;
    top: 0;
    background-color: #000000;
    z-index: 1;
}

#horse #tabs .sidebar{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: left;
    align-items: flex-start;
    position: sticky;
    top: 10px;
    width: 100%;
}

#horse #tabs .topbar{
    display: none;
}

#horse #tabs .sidebar li{
    height: 4em;
    width: 100%;
}

#horse #tabs a{
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    padding-left: 1em;

}

#horse #tabs a:hover{
    background-color: #3d3d3d80;
}

/*------------------SLIDESHOW-----------------------*/
#horse #slideshow{
    position: relative;
    max-width: 652px;
    height: auto;
    margin: auto;
}

#horse #slideshow .slides{
    display: none;
    margin: auto;
}

/* Caption text */
#horse #slideshow .caption{
    color: #f2f2f2;
    background-color: #3d3d3d80;
    position: absolute;
    bottom: 24px;
    width: 100%;
    height: 1.5em;
    text-align: center;
    margin: 0em;
}

/* Number text (1/3 etc) */
#horse #slideshow .number {
    color: #f2f2f2;
    background-color: #3d3d3d80;
    position: absolute;
    margin: 0em;
    padding: 0.6em 1em;
    top: 0;

}

/* Next & previous buttons */
#horse #slideshow #prev, #next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  border: none;
  background-color: #3d3d3d80;
}

/* Position the "next button" to the right */
#horse #slideshow #next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
#horse #slideshow #prev:hover, #next:hover {
  background-color: rgba(0,0,0,0.8);
}


#horse #slideshow #dots{
    text-align: center;
}

#horse #slideshow .dot{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

/* Fading animation */
#horse #slideshow .fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

#horse #details{
    grid-area: content;
    padding: 3.5em;
}

#horse #details h3{
    text-align: center;
    margin: 2em;
}

#horse details summary{
    text-align: center;
    margin: 2em;
}

#horse details p:hover, #reference:hover{
    color: #00ccff;
    text-decoration: underline;
}

#horse #history{
    grid-area: table;
}

#horse #history table{
    width: 80%;
    margin: auto;
}

#horse #history table, th, td{
    border: solid 1px white;
    border-collapse: collapse;
    padding: 0.5em;
}

#horse #history .first{
    background-color: gold;
    color: #000000;
}

#horse #history .second{
    background-color: silver;
    color: #000000;
}

#resume{
    grid-area: content;
    display: grid;
    grid-template-areas:
        "title"
        "timeline";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;

    
}

#resume h1{
    grid-area: title;
}


/*------------- TIMELINE learned from https://www.w3schools.com/howto/howto_css_timeline.asp ------------*/
#resume #timeline{
    grid-area: timeline;
    position: relative;
    max-width: 80%;
    margin: 0 auto;
}

#timeline h2{
    margin-bottom: 1em;
}

#resume #timeline::after{
    content: "";
    position: absolute;
    width: 6px;
    background-color: #f2f2f2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

#resume #timeline .container{
    position: relative;
    width: 50%;
    padding: 10px 40px;
}

#resume #timeline .container::after{
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #f2f2f2;
    border: 4px solid #3d3d3d;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

#resume #timeline .left{
    left: 0;
}

#resume #timeline .right{
    left: 50%;
}

#resume #timeline .left::before{
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #f2f2f2;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f2f2f2;
}

#resume #timeline .right::before{
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #f2f2f2;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f2f2f2 transparent transparent;
}

#resume #timeline .right::after{
    left: -16px;
}

#resume #timeline .content{
    padding: 20px 30px;
    border: solid 5px #f2f2f2;
    position: relative;
    border-radius: 6px;
}

#register{
    grid-area: content;
    /*---from https://css-pattern.com/overlapping-circles/ ---*/
    --s: 102px; /* control the size*/
    --c1: #000000;
    --c2: #0f0f0f;
    
    --_g: 
        var(--c1) 0%  5% ,var(--c2) 6%  15%,var(--c1) 16% 25%,var(--c2) 26% 35%,var(--c1) 36% 45%,
        var(--c2) 46% 55%,var(--c1) 56% 65%,var(--c2) 66% 75%,var(--c1) 76% 85%,var(--c2) 86% 95%,
        #0000 96%;
    background:
        radial-gradient(50% 50% at 100% 0,var(--_g)),
        radial-gradient(50% 50% at 0 100%,var(--_g)),
        radial-gradient(50% 50%,var(--_g)),
        radial-gradient(50% 50%,var(--_g)) calc(var(--s)/2) calc(var(--s)/2)
        var(--c1);
    background-size: var(--s) var(--s);
}

#register form {
	background-color: #000000;
    box-shadow: 0 0 5px 5px #00000095;

	margin: 0 auto;
    width: 70%;
}

#register fieldset{
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#register fieldset h2{
    text-align: center;
    font-size: 42px;
    margin: 0.5em;
}

#register fieldset p{
    width: 80%;
    height: auto;
    margin-bottom: 0.5em;
}

#register section {
	clear: both;
    margin-top: 1em;
}

#register section.two{
    width: 50vw;
}

#register section.two label {
    display: block;
	font-weight:bold;
	text-align: left;
	position: relative;
}

#register section.two input{
    color: #ffffff;
	width: 100%;
    height: 3em;
    border-radius: 25px;
    border:none;
	text-align: left;
    padding-left: 0.5em;
    margin: 0.5em 0;
    background-color: #3d3d3d;
}

#register section.two select{
	width: 100%;
    height: 3em;
    border-radius: 25px;
    border:none;
	text-align: left;
    padding-left: 0.5em;
    margin: 0.5em 0;
    background-color: #3d3d3d;
}

#register select:invalid{
    color:#ffffff80;
}

#register select option{
    color:#ffffff;
}

#register section.one {
	text-align: center;
}

#register select.valid{
    box-shadow: 0px 0px 5px 5px #0cbb47;
}

#register #submit{
	clear: both;
	width: 300px;
	height: 75px;
	background:#0cbb47;
	text-align:center;
	line-height:20px;
	font-weight:bold;
}

#register input#terms{
    margin: 0 0.5em;
}

#register input.error{
    box-shadow: 0px 0px 5px 5px #D92525;
}

#register input.valid{
    box-shadow: 0px 0px 5px 5px #0cbb47;
}


#register .tooltip {
	display: block; 
	position: absolute; 
	visibility: hidden;
	top: 4.8em; 
	width: 100%;
	padding: 0.5em;
	font-weight: normal;
	color: #FFF;
	background-color: #0cbb47;
	border:solid 2px #000000;
    z-index: 1;
    text-align: center;
}

#register .error {
	color: #D92525;
}

#register span.error{
    display: block;
    margin: 0.5em 0;
}

#register .valid{
	color:#0cbb47;
}

#register #type.valid{
	color:#ffffff;
}

#register span.valid{
	position: absolute;
    right: 26.5vw;
    margin-top: 1.2em;
}

#register iframe{
    margin-top: 1em;
    width: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #3d3d3d inset !important;
    box-shadow: 0 0 0 30px #3d3d3d inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

#drive section{
    width: auto;
    height: 4em;

    background-color: #3d3d3d;
    border-radius: 10px;

    margin: 2em 15%;
}

#drive a{
    display: block;
    width: auto;
    height: auto;

    padding-left: 1em;
    line-height: 4em;
}

#drive #mahjong a:hover{
    background-color: #4b4b4b;
    border-radius: 10px;
}

#jongguides #chapters ul li{
    width: auto;
    height: 4em;

    background-color: #3d3d3d;
    border-radius: 10px;

    margin: 2em 15%;
}

#jongguides #chapters a{
    display: block;
    width: auto;
    height: auto;

    padding-left: 1em;
    line-height: 4em;
}

#jongguides #chapters a:hover{
    background-color: #4b4b4b;
    border-radius: 10px;
}

#wall{
    display: grid;

    grid-template-areas:
        "list list profile"
        "blog blog profile"
        "recommended recommended profile"
        "glossary glossary profile";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;

    margin: 0 5% 0 5%;
}

#wall section{
    background-color: #1616163b;

    padding: 25px 50px;
    margin: 2em;
}

#wall section table{
    border-collapse: collapse;
    border: 1px solid #ffffff;
    margin-bottom: 1em;
}

#wall section h1{
    text-align: left;

    margin: 0 0 0.5em 0;
}

#wall section h2{
    text-align: left;

    margin: 0 0 0.5em 0;
}

#wall section p{
    text-align: left;

    margin-bottom: 1em;
}

#wall section ul{
    text-align: left;

    margin-bottom: 1em;
}

#wall section ul li{
    list-style: circle;
    margin: 0 0 1em 1em;
}

#wall #list{
    grid-area: list;
}

#wall #list article{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#wall #list article a:hover{
    text-decoration: underline dotted #ffffff 3px;
}

#wall #blog{
    grid-area: blog;
}

#wall #blog h2:nth-of-type(1){
    margin-top: 0em;
}

#wall #blog h3:nth-of-type(1){
    margin-top: 0em;
}

#wall #blog h2, h3{
    margin-top: 4em;
}

#wall #blog a:hover{
    text-decoration: underline dotted #ffffff 3px;
}

#wall #blog span{
    text-decoration: underline dotted #ffffff 3px;
}

#wall #blog ol li{
    list-style-type: decimal;
    margin: 0 0 1em 2em;
}

#wall #blog [data-tooltip] /*https://stackoverflow.com/questions/1055581/how-do-i-add-a-tool-tip-to-a-span-element*/{
    display: inline-block;
    position: relative;
    cursor: help;
}

[data-tooltip]::before{
    content: attr(data-tooltip);
    position: absolute;
    display: none;

    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
    padding: 10px;
    background-color: #363636;
    box-shadow: 0px 0px 5px 5px #585858;
    border-radius: 10px;
}

[data-tooltip-position="top"]:before {
    left: 50%;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 100%;
}

[data-tooltip]:after {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

[data-tooltip-position="top"]:after {
    left: 50%;
    margin-left: -6px;
    bottom: 75%;
    border-width: 6px 6px 0;
    border-top-color: #363636;
}

[data-tooltip]:hover::before, [data-tooltip]:hover:after {
    display: block;
    z-index: 4;
}

#wall #recommended{
    grid-area: recommended;
}

#wall #recommended ul li a{
    text-decoration: underline dotted #ffffff 3px;
}

#wall #glossary{
    grid-area: glossary;
}

#wall #profile{
    grid-area: profile;
}

#wall #profile article{
    position: sticky;
    top: 1em;
}



@media screen and (max-width: 760px){
    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    #about{
        width: 95%;
    }

    nav li{
        width: 7em;
    }

    #about .nav li{
        width: 7em;
    }

    #horse{
        grid-area: content;
        display: grid;
        grid-template-areas:
            "sidebar" 
            "content"
            "table";
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3,auto);
    }

    #horse #slideshow{
        position: relative;
        width: 435px;
        height: 300px;
        margin: auto;
    }

    #horse #slideshow .caption{
        bottom: 0;
    }

    #horse #tabs .sidebar{
        display: none;
    }

    #horse #tabs .topbar{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        text-align: left;
        align-items: flex-start;
        align-self: flex-start;
        position: sticky;
        top: 0px;
        width: 100%;
        z-index: 1;
    }

    #horse #tabs .topbar li{
        height: 4em;
        width: 10em;
    }

    #horse #history{
        padding-top: 80px;
    }

    #resume #timeline::after{
        left: 31px;
    }

    #resume #timeline .container{
        position: relative;
        width: 100%;
        padding: 0 25px 0 70px;
        margin: 1em 0;
    }

    #resume #timeline .container::before{
        left: 60px;
        border: medium solid #f2f2f2;
        border-width: 10px 10px 10px 0;
        border-color: transparent #f2f2f2 transparent transparent;
    }

    #resume #timeline .left::after{
        left: 15px;
    }

    #resume #timeline .right::after{
        left: 15px;
    }

    #resume #timeline .right{
        left: 0%;
    }
}