/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply background gradient to the entire viewport */
html, body {
    height: 100%; /* Full height of the viewport */
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #ff11cf, #4a90e2); /* Gradient background */
    color: #333;
    margin: 0; /* Remove default margin */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover; /* Ensures the gradient covers the viewport */
    background-position: center; /* Keeps the background centered */
    background-repeat: no-repeat; /* Prevents background tiling */
}

/* Main container */
.container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background-color: white; /* White background for the content */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 10;
    height: auto; /* Grow based on content */
    max-height: 95vh; /* Prevents the container from stretching too much */
    overflow-y: auto; /* Enables scrolling if content exceeds the container height */
}

/* Other styles remain unchanged */

  
      h1 {
        font-size: 3.0rem;
        margin-bottom: 20px;
        color: #2c3e50; /* Darker color for main title */
      }

      .terms p {
        text-align: left;
      }

      .terms h2 {
        font-size: 2.0rem;
      }

      .avatar-img {
        width: 100%;
        height: auto;
        object-fit: cover; /* Ensures the image covers the area without stretching */
        margin: 20px auto; /* Centers the image with some spacing around */
      }
      
      h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: #2c3e50; /* Darker color for main title */
      }
  
      p {
        font-size: 1.3rem;
        margin-bottom: 25px;
        color: #7f8c8d; /* Lighter gray for text */
      }
  
      .avatar-name {
        font-size: 1.5rem;
        margin-bottom: 25px;
      }

      .avatar-description {
        font-size: 1.0rem;
        margin-bottom: 25px;
      }

      .button {
        padding: 12px 35px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 1.2rem;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s ease;
      }
  
      .button:hover {
        background-color: #2980b9;
        transform: translateY(-3px); /* Slight lift effect on hover */
      }
  
      footer {
        margin-top: 30px;
        font-size: 1rem;
        color: #95a5a6; /* Lighter footer text */
      }
  
      footer a {
        color: #3498db;
        text-decoration: none;
      }
  
      footer a:hover {
        text-decoration: underline;
      }
  
      /* Mobile responsiveness */
      @media (max-width: 600px) {
        h1 {
          font-size: 2.5rem;
        }
  
        .container {
          padding: 25px;
        }
  
        p {
          font-size: 1.1rem;
        }
  
        .button {
          padding: 10px 30px;
          font-size: 1.1rem;
        }
      }

      /* Flex grid for navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
  }
  
  .nav-buttons a {
    display: block;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    flex: 1 1 100px; /* Allows buttons to resize */
    transition: background-color 0.3s ease;
  }
  
  .nav-buttons a:hover {
    background-color: #3498db;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 600px) {
    .nav-buttons a {
      flex: 1 1 45%; /* Buttons take up 45% of the width on small screens */
      font-size: 1rem;
    }
  }

  .back-button {
    padding: 12px 35px;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; /* Ensures the button fits the text */
    text-align: center;
}

/* Mobile responsiveness for Back Button */
@media (max-width: 600px) {
    .back-button {
        padding: 10px 30px;
        font-size: 1.1rem;
    }
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}
