* {
  overflow-x: hidden;
}

body {
  padding: 0;
  margin: 0;
  background-color: #ffffff;
}

section {
  padding: 100px;
}

#section-cover {
  position: relative;
  min-height: 100vh; /* Ensure full viewport height */
  overflow: hidden;
  padding: unset;
}

#section-cover * {
  overflow: hidden;
}

video {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto; /* Center video and add margin */
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(100vh, 100vw);
  z-index: -1; /* Send the video to the background */
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the video covers the entire container */
}

#about .about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between columns */
}
#about .about-column {
  flex: 1;
  padding: 40px;
  min-width: 300px; /* Ensure columns are responsive and stack if necessary */
}

#container {
  position: relative;
  z-index: 1; /* Bring the container above the video */
  min-height: 100vh; /* Ensure the container covers the section height */
  padding: 0 20px; /* Add some padding to avoid content touching the edges */
  display: flex;
  justify-content: flex-end; /* Align the card towards the right */
  align-items: flex-end; /* Align the card towards the bottom */
}

#card {
  width: 400px;
  height: auto;
  padding: 20px; /* Adjusted padding for better spacing */
  background-color: rgba(200, 200, 200); /* Semi-transparent background */
  cursor: grab;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Added shadow for better visibility */
  transition: background-color 0.3s ease; /* Smooth transition for color change */
  margin-right: 10%; /* Positioning between the center and bottom-right */
  margin-bottom: 10%;
  text-align: left; /* left align text inside the card */
}

h3 {
  font-family: monospace;
  font-size: large;
  font-weight: bolder;
  margin: 0;
}

h4 {
  font-family: monospace;
  font-size: medium;
  font-weight: bolder;
  margin: 0;
}

p {
  font-family: monospace;
  font-size: smaller;
  margin: 10px 0 0 0;
}

footer {
  display: flex; /* Use flexbox layout */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center align items horizontally */
  justify-content: center; /* Center align items vertically */
  padding: 20px; /* Add padding around content */
  background-color: #f1f1f1; /* Background color for the footer */
  text-align: center; /* Center text within the footer */
  font-size: 0.9em; /* Adjust font size for readability */
}

@media (max-width: 767px) {
  .video-background {
    height: 60vw; /* Adjust video height for mobile */
  }

  .video-background video {
    position: relative;
    left: 0;
    object-fit: cover; /* Ensure the video fits the container without cutting off important parts */
  }

  #container {
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Center the card horizontally */
    padding-top: 10px;
    min-height: auto; /* Remove the fixed height */
  }

  #card {
    width: 90%; /* Make the card wider on small screens */
    padding: 15%; /* Add padding to make text more readable */
    margin-top: 40vh; /* Move the card down to overlap the video */
    margin-right: 0; /* Reset right margin */
    margin-bottom: 0; /* Reset bottom margin */
  }

  h3 {
    font-size: 1.5em; /* Increase font size on mobile */
  }

  p {
    font-size: 1em; /* Increase paragraph font size on mobile */
  }

  section {
    padding: 50px;
  }

  #about .about-column {
    padding: unset;
  }
}
