 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

   #bgVideo {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;       
      height: 100%;      
      object-fit: cover;
      z-index: -1;
  }

  body {
      margin: 0;
      color: white;
      overflow: hidden;
      position: relative; 
    }

    nav {
      position: absolute;
      top: 280px;
      left: 100px;
      background-color: rgba(0, 0, 0, 0.05); 
      padding: 10px 30px;
      border-radius: 30px;
    }

    nav h1 {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 32px;
      margin-bottom: 12px;
      font-weight: bold;
    }

    #nav2{
      position: absolute;
      top: 380px;
      left: 180px;
      background-color: rgba(97, 9, 9, 0.0); 
      padding: 25px 40px;
      border-radius: 12px;
    }

    #buton1 {
      background-color: white;
      color: rgb(97, 9, 9);
    }

    #button2 {
      background-color: rgb(187, 182, 182, 0.2);
      color: white;
    }

    button {
      border: none;
      padding: 12px 24px;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 2.5s ease;
    }

    button:hover {
      background-color: rgb(130, 20, 20);
      transform: scale(1.05);
    }

@media (max-width: 768px) and (orientation: portrait) {
  #bgVideo {
    object-position: 86% center; 
    transform-origin: center center;
  }
  
  nav {
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    text-align: center;
  }

  nav h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  #nav2 {
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0px;
    max-width: 60vw;
    background-color: rgba(97, 9, 9, 0.1);
    border-radius: 10px;
    font-size: x-small;
  }

  #buton1, #button2 {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
  }
  
  button:hover {
    transform: scale(1.1);
  }
}