@font-face {
  font-family: 'FingerPaint';
  src: url('/fonts/FingerPaint-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Maladroit';
  src: url('/fonts/maladroit.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* General Styles */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Maladroit', sans-serif;
}

/* Splash screen */
#splash-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #4c392b;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease, visibility 2s 1s;
  -webkit-transition: opacity 2s ease, visibility 2s 1s;
  -moz-transition: opacity 2s ease, visibility 2s 1s;
  -ms-transition: opacity 2s ease, visibility 2s 1s;
  -o-transition: opacity 2s ease, visibility 2s 1s;
}

.splash-image {
  max-width: 300px;
}

#main-content {
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
}

#main-content.active {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 3s forwards;
  -webkit-animation: fadeIn 3s forwards;
}

header {
  font-family: 'FingerPaint', sans-serif;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 10; /* Ensure it's above the main content */
}

.header-logo {
  display: flex;
  justify-content: flex-start;
}

.header-logo h1 {
  font-size: 50px;
  color: #8fc94e;
  text-shadow: -1px -1px 0 #4b5320, 1px -1px 0 #4b5320, -1px 1px 0 #4b5320, 1px 1px 0 #4b5320;
  margin: 0px;
  margin-left: 10px;
  padding: 10px;
}

.header-logo img {
  width: 90px;
}

.social-icons {
  display: flex;
  justify-content: space-around;
  gap: 1.5vw;
  margin-top: 20px;
}

.social-icon {

  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  padding: 15px;
}

.social-icon img {
  width: 3vw;
  height: 3vw;
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  -o-transition: transform 0.3s ease;
}

.social-icon:hover img {
  transform: scale(1.2);
}


/* Responsive design */
@media (max-width: 940px) {
  .social-icons {
    position: fixed; /* Fixed position to stay at the bottom */
    bottom: 10px; /* Distance from the bottom */
    left: 50%; /* Center horizontally relative to viewport */
    transform: translateX(-50%); /* Adjust for center alignment */
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: center; /* Center the icons within the flex container */
    gap: 15px; /* Space between icons */
    z-index: 100; /* Ensure it's above other content */
}

  .social-icon img {
    width: 8vh;
    height: 8vh;
    transition: transform 0.3s ease;
  }

  .social-icon {
    padding: 3px;
  }

  .social-icon img:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}

  .header-logo h1{
    font-size: 40px;
    margin-left: 10px;
    padding: 0px;
  }

  header {
  justify-content: center;
  margin-top: 10px;
  }

  .header-logo img {
    width: 70px;
  }
}

/* Animation for fading in the main content */
@keyframes fadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

/* Main Section */
#layered-section {
  margin: 0px;
  padding: 0px;
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}


@media (max-width: 768px) {
  .trench-center {
      height: 40vh; /* Smaller for mobile */
  }
}

/* Military-style Launch Button */

.launch-button {
    margin: 50px auto;
    width: 200px;
    height: 400px;
    position: relative;
    background-color: #afafaf;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    border: 0px solid #ffffff;
    box-shadow: 0px 4px 4px black, inset 0px 4px 4px rgb(97, 97, 97);
}

.launch-button small {
    display: block;
    color: #4c392b;
    text-align: center;
    letter-spacing:2px;
    font-size: 40px;
    padding-top: 40px;
    text-transform: uppercase;
}

.launch-button .launch {
    display: block;
    width: 100px;
    height: 100px;
    text-align: center;
    text-decoration: none;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    line-height: 60px;
    background-color: rgb(158, 0, 0);
    border-radius: 50%;
    position: absolute;
    top: 62%;
    left: 50px;
    box-shadow: 0px 1px 1px black, inset 0px 1px 1px white;
    transition: all 0.1s ease-in;
}

.launch-button .launch:hover {
    background-color: rgb(255, 69, 69);
    cursor: pointer;
}

.launch-button .cover {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 60%;
    left: 50px;
    width: 100px;
    height: 110px;
    background-color: rgba(136, 0, 0, 0.9);
    border-radius: 5px;
    border-top: 2px solid #444;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    transform-origin: 0 0;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2), inset 2px 2px 3px rgba(255, 255, 255, 0.3),
        inset -2px -2px 3px rgba(0, 0, 0, 0.1);
    transition-delay: 0.5s;
}

.launch-button .cover:before,
.launch-button .cover:after {
    content: "";
    display: block;
    width: 12px;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: -4px;
}

.launch-button .cover:before {
    left: 8px;
}

.launch-button .cover:after {
    right: 8px;
}

.launch-button input[type="checkbox"] {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.launch-button input[type="checkbox"]:checked ~ .cover {
    transform: rotateX(180deg);
    box-shadow: 2px -2px 3px rgba(0, 0, 0, 0.2), inset 2px -2px 3px rgba(255, 255, 255, 0.3),
        inset -2px 2px 3px rgba(0, 0, 0, 0.2);
}

/* Background video styling */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: none; /* Hide by default */
}

/* Show video when main content is visible */
#main-content.active ~ #background-video {
  display: block;
}