/* =============================================================================
   HTML5 CSS Reset Minified
   ========================================================================== */

/*
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}
li{list-style:none}
*/

/* =============================================================================
   My CSS
   ========================================================================== */

/* ---- base ---- */

html,body{
	width:100%;
	height:100%;
	background:#111;
}

html{
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body{
	font-family: 'Roboto Slab', serif;
	font-weight: 400;
	line-height: 1.5;
	color: white;
}

canvas{
  /*display:block;*/
  vertical-align:bottom;
}

/* ---- stats.js ---- */

.count-particles{
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles{
  font-size: 1.1em;
}

#stats,
.count-particles{
  /*-webkit-user-select: none;*/
  margin-top: 5px;
  margin-left: 5px;
}

#stats{
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles{
  border-radius: 0 0 3px 3px;
}


/* ---- particles.js container ---- */

#particles-js{

	background-color: #000000;
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	left:0;
	z-index:0;

/*
  width: 100%;
  height: 100%;
  background-color: #b61924;
  background-image: url('');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  */
}

/* ---- Other container ---- */
#header {
	margin: 30px;
}

.tagline {
	font-size: 3em;
	margin-bottom: 0em;
}

.stuff {
	font-size: 1.2em;
}

ul {
	list-style-type: none;
	margin: -.8em auto;
	font-weight: 300;
}

li {
  pointer-events: all;
}

a {
  -moz-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	-webkit-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	-ms-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	transition: border-bottom-color 0.2s ease, color 0.2s ease;
	color: rgb(255, 37, 37);
	text-decoration: none;
}

a:hover {
  -moz-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	-webkit-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	-ms-transition: border-bottom-color 0.2s ease, color 0.2s ease;
	transition: border-bottom-color 0.2s ease, color 0.2s ease;
	color: rgb(208, 22, 41);
}

.social a {
	text-decoration: none;
	margin: 0 10px;
}

.github {
	color: #d8d8d8;
}

.github:hover {
	color: #f8f8f8;
}

/* Overlay */
#overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  margin: 0!important;
  padding: 0!important;
  color: white;
  pointer-events: none;
}

/* Style the tab */
.tab {
  width: 100%;
  overflow: hidden;
  background-color: #212120;
  pointer-events: all;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 24px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ccc;
  color: #000;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #141414;
  color: #fff;
}

.dropdown button.active {
  background-color: #141414;
  color: #fff;
}

.dropdown-content button.active {
  background-color: #bbb;
  color: black;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  float: none !important;
  font-size: 16px;
  padding: 12px 24px;
  margin: 0;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown .tablinks {
  float: none;
  color: black;
  padding: 12px 24px;
  width: 100%;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #ccc;
  color: black;
}

/* Style the tab content */
.tabcontent {
  display: none;
  /* border: 1px solid #ccc; */
  border-top: none;
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

#personal {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  margin-bottom: 300px;
  width: fit-content;
  transform: translate(0, +50%);
}

.info-box {
  position: relative;
  display: block;
  justify-content: center;
  align-items: center;
  width: 55%;
  margin: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 10px;
  color: white;
}

p {
	line-height: 1.5;
  width: fit-content;
  pointer-events: all;
}

h1, h2, h3 {
  font-family: sans-serif; /*Verdana, */
  width: fit-content;
  pointer-events: all;
}

#projects h1 {
  font-size: 75px;
  margin: auto;
  margin-top: 60px;
}

#dpn-2 h1 {
  font-size: 75px;
  margin: auto;
  margin-top: 60px;
}

#projects h3 {
  margin: auto;
}

#photo {
  border: 1px solid red;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  margin: 20px;
  pointer-events: all;
}

.search {
  float: right !important;
  color:#fff!important;
  padding: 12px 24px !important;
}

.search:hover {
  background-color:#f44336 !important;
}

/* PONG */
.board {
  position: relative;
  height: calc(100vh - 50px);
  width: 100vw;
  /*background-color: rgba(255, 255, 255, .2);
  border:rgb(208, 22, 41);
  border-radius: 3px;
  border-style: solid;*/
}

.ball {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  position: fixed;
  background-color: red;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  opacity: 0;
}

.paddle {
  height: 150px;
  width: 20px;
  position: fixed;
  background-color: red;
  opacity: .2;
}

.paddle_1 {
  top: calc(50vh - 75px);
  left: calc(7.5vw - 10px);
}

.paddle_2 {
  top: calc(50vh - 75px);
  right: calc(7.5vw + 10px);
}

.score {
  position: relative;
  height: 20px;
  width: fit-content;
  color: red;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.fade1 {
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-name: fadeIn1;
}

.fade2 {
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-name: fadeIn2;
}

@keyframes fadeIn1 {
  from {opacity: .2;}
  to {opacity: 1;}
}

@keyframes fadeIn2 {
  from {opacity: 0;}
  to {opacity: 1;}
}