/* Global Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2em;
  width: 100vw;
  background: #000;
  color: #FFF;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}


h1 {font-size: 2.5em;}
h2 {font-size: 2em;}
h3 {font-size: 1.5em;}

h1, h2, h3, h4, h5 {
 font-weight: 600;
}

a:link {color: #FFF;}
a:visited {color: #FFF;opacity: 0.7;}
a:hover {text-decoration: none;}
a:active {text-decoration: underline;}

img {
	width: 100%;
	height: auto;
}

/* Header & Navigation */

header {
	width: 100%;
	height: 100vh;
}

#noiseCanvas {
  opacity: 0.3;
  width: 100vw;
  height: 100vh;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

#background-video {
  opacity: 0.7;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -2;
}

#logo {
  font-family: 'Aldrich', sans-serif;
  font-weight: 600;
  font-size: 50px;
  position: absolute;
  top: 30px;
  left: 30px;
}

#logo a {
    text-decoration: none;
}

/*--> Mobile menu --*/
/* Menu Icon */
.menu-icon {
	position: absolute;
	top: 50px;
	right: 20px;
    cursor: pointer;
    display: block;
    width: 30px;
    height: 22px;
    z-index: 2;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
    content: '';
    display: block;
    background: #FFF;
    height: 3px;
    width: 30px;
    position: absolute;
	transition:transform 0.3s ease;
}

.menu-icon span::before {
    top: -10px;
}

.menu-icon span::after {
    bottom: -10px;
}

/* Menu Toggle */
#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .menu-icon span {
    background: transparent;
}

#menu-toggle:checked ~ .menu-icon span::before {
    top: 0;
    transform: rotate(45deg);
}

#menu-toggle:checked ~ .menu-icon span::after {
    top: 0;
    transform: rotate(-45deg);
}

nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 0;
	background: #000;
	z-index: 1;
	overflow: hidden;
	transition: height 0.3s ease;
	font-size: 40px;
}

#menu-toggle:checked ~ nav {
    height: 100vh;
}

nav a:link {text-decoration: none; color: #FFF;}
nav a:hover {text-decoration: underline; color: #FFF;}

nav ul {
	margin-top: 50px;
	list-style: none;
	text-align: center;
}

#menu-toggle:checked ~ nav ul li {
    margin-top: 30px;
}

#menu-toggle:checked ~ nav ul {
    margin-top: 100px;
}

nav ul li.nav-special {
	margin-top: 30px;
}

.nav-special label {
	font-size: 40%;
	opacity: 0.5;
	margin-top: -10px;
}

#header-intro {
 position: absolute;
 top: 30%;
 text-align: center;
}

#header-intro h1 {
  font-family: 'Aldrich', sans-serif;
  font-size: 1.8em;
  overflow: hidden; 
  white-space: nowrap; 
  margin: 0 auto; 
  letter-spacing: .15em; 
  animation: typing 3.5s steps(40, end);
}

#header-intro p {
	max-width: 60%;
	margin: 30px auto;
}

#btn-scrolldown {
	width: 50px;
	margin: 0 auto;
    padding-top: 30px;
	animation: bounce 1s infinite alternate;
}

/* Animations */

/* --> bounce */
@keyframes bounce {
  from {
   transform: translateY(0px);
  }
  to {
    transform: translateY(5px);
  }
} 

/* --> Typing */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}


/* Global elements */

.bt-push {margin-bottom: 30px;} /* Use this in a p tag to push buttons */

.btn-atn {
	padding: 5px 10px;
	border: 1px solid rgba(255,255,255,0.8);
	transition: all 0.3s ease-in;
}

.btn-atn2 {
	padding: 7px 15px 10px 15px;
    font-size: 1.2em;
	border: 1px solid rgba(255,255,255,0.8);
	transition: all 0.3s ease-in;
}

.btn-atn:hover {
	padding: 5px 15px;
    border: 1px solid rgba(255,255,255,1);
}

.btn-atn2:hover {
	padding: 7px 20px 10px 20px;
    border: 1px solid rgba(255,255,255,1);
}

a:link.btn-atn {text-decoration: none;}
a:hover.btn-atn  {text-decoration: none;}

a:link.btn-atn2 {text-decoration: none;}
a:hover.btn-atn2  {text-decoration: none;}

.some-bar {
	text-align: right;
    margin-right: 15px;
}

#info-more .some-bar {
    text-align: left;
}

.some-bar p {
	opacity: 0.5;
	font-size: 80%;
}

.some-bar ul, ul.support-us  {
	list-style-type: none;
}

.some-bar ul li, .support-us ul li {
  display: inline-block;
  margin-right: 10px;
}

.some-bar li img, .support-us li img {
	width: 40px;
	height: auto;
    opacity: 0.9;
	transition: all 0.3s ease-in;
}

.some-bar li img:hover, .support-us li img:hover {
	transform: scale(1.07);
    opacity:1;
}

section {
    margin: 0;
    padding: 50px 15px;
    box-sizing: border-box;
}

.quote {
    font-style: italic;
    font-weight: 400;
    margin: 40px 0;
}

/* Homepage content */

#home-info .section-wrapper {width: 95%; margin: 0 auto;}
#home-info-content {margin-right: 15px;}
#home-info-content p {margin: 50px 0;}
#home-info-content .btn-atn {margin-left: 15px;}


#home-projects {
    position: relative;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0) 0%, white 20%, 
        rgba(0, 0, 0, 0) 20%, white 40%, 
        rgba(0, 0, 0, 0) 40%, white 60%, 
        rgba(0, 0, 0, 0) 60%, white 80%, 
        rgba(0, 0, 0, 0) 80%, white 100%);
 }

 #home-projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/noise.jpg'); /* Path to your noise texture */
    opacity: 0.08; /* Adjust the opacity as needed */
    z-index: -1; /* Ensure it's above the background gradient */
    pointer-events: none; /* Allows clicks to pass through to the element below */
}

#home-projects-header {
    background: #000;
    width: 80%;
    padding: 40px 40px 40px 40px;
    margin-left: -15px;
}

#home-projects-header p {
    margin-left: 15px;
}

#home-projects-header h2 {
    text-transform: uppercase;
    margin-bottom: 30px;
}

.project-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
    align-items: stretch;
    background: #000;
    width: 80%;
    padding: 20px 20px 50px 20px;
    margin: 30px auto;
    text-align: center;
    transition: transform 0.3s ease-in;
}

.project-box:hover {
    transform: scale(1.05);
}

.project-title {
    margin-bottom: 20px;
    flex: 3;
}

.project-info { 
    flex: 5; 
}

.github-margin { 
    flex: 1; 
}

.project-info-btn { 
    flex: 1; 
}


.github-margin {
    margin: 20px 0 40px 0;
}

.commit-class, .star-class {
    font-size: 80%;
    opacity: 0.85;
}

#home-madewithdeforum .section-wrapper {
    width: 90%;
    margin: 0 auto;
}

#home-madewithdeforum h2 {
    text-align: right;
    text-transform: uppercase;
    margin-bottom: 50px;
}

#mwd-video-wrapper {
    margin-top: 30px;
}

.mwd-video {
    margin-bottom: 0px;
}

.mwd-video:last-child {
    margin-bottom: 0;
}

.mwd-byline {
    font-size: 80%;
    opacity: 0.7;
    text-align: right;
}

#home-getstarted {
    background: #070707;
}

#home-getstarted .section-wrapper {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 15px;
}

#home-getstarted h2 {
    text-transform: uppercase;
}

#home-getstarted p {
    margin: 20px 0 40px 15px;
}

#home-getstarted .btn-atn {
    margin-left: 15px;
}

/* Info content */

.info header {
    height: 120px;
    overflow: hidden;
}

.info #noiseCanvas {
    height: 400px;
}

.info #header-intro {
    position: relative;
    width: 70%;
    margin: 50px auto;
    text-align: center;
}


.info-left, .info-right {
    margin: 80px 0 80px 30px;
}

#info-about .some-bar {text-align: left;}

#info-more {
  background: #070707;
}

#info-more .support-us {
    margin-top: 50px;
}

#info-about .section-wrapper, #info-more .section-wrapper {
    width: 90%;
    margin: 0 auto;
} 

#info-about h2, #info-more h2 {
    text-transform:uppercase;
    margin-bottom: 50px;
}

#info-about h2::before, #info-more h2::before {
    content: "# ";
    margin-left:-30px;
    opacity: 0.5;
}

/* Terms and Privacy Pages */

.terms header {
    height: 120px;
    overflow: hidden;
}

.terms #noiseCanvas {
    height: 400px;
}

.privacy-list {
    margin: 0 0 30px 30px;
}


.terms #header-intro h1 {
    font-size: 1.6em;
}

#terms h2, h3 {
    margin-bottom: 30px;
}

#terms p {
    margin-bottom: 30px;
    margin: 30px;
}

#terms-header p {
    font-size: 80%;
    opacity: 0.8;
}

/* Footer */

footer {
    border-top: 2px solid rgba(255,255,255,0.7);
    padding: 50px 30px;
}

footer a:link {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-box {
    width: 70%;
    margin: 50px auto;
}

.footer-box ul {list-style-type: none;}

footer .some-bar {
    text-align: center;
    margin: 50px 0;
}

.credits {
    text-align: right;
    font-size: 70%;
    opacity: 0.5;
    margin: 50px 0 0 0;
}

.contributors {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.contributor {
    position: relative; /* Set relative positioning for absolute positioning of the name within this div */
    width: 60px; /* Define width to contain the hover effect */
    height: 60px; /* Define height to contain the hover effect */
    margin-top: 6px;
}

.contributor img {
    display: block;
    width: 100%; /* Make the image fill the container */
    height: 100%; /* Make the image fill the container */
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease; /* Smooth transition for the hover effect */
}

.contributor:hover img {
    border: 3px solid #ffffff; /* Add an outline on hover */
    cursor: pointer;
}

.name {
    display: none; /* Initially hide the name */
    position: absolute; /* Position absolutely within the relative parent */
    bottom: -30px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Center the name */
    white-space: nowrap; /* Prevent the name from wrapping */
    background-color: #000000; /* Optional: background for the name tag */
    padding: 2px 5px; /* Optional: padding for the name tag */
    border-radius: 2px; /* Optional: rounded corners for the name tag */
}

.contributor:hover .name {
    display: block; /* Show the name on hover */
}

/* RSPNSV: Old phones */
@media all and (min-width: 360px) {
   #header-intro h1 {
    font-size: 1.7em;
   }
 }

/* RSPNSV: Tablets portrait */

@media all and (min-width: 768px) {
   #header-intro h1 {
    font-size: 2.5em;
   }
 }