body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background-color: #007bff;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

footer {
    background-color: #1A237E;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 60px; /* Set a fixed height for the footer */
    position: relative; /* Change this to 'fixed' if you always want the footer at the bottom */
    bottom: 0;
    clear: both;
}

.heading{
    text-align: center;
    margin-bottom: 5rem;
}

.container {
    max-width: 600px;
    width: 90%; /* Adjust width for padding and to prevent overflow */
    margin: 20px auto; /* Center the container */
    padding: 20px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; /* Add some space between form elements */
}

.form-group label {
    flex-grow: 1;
    min-width: 80px; /* Adjust minimum width */
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.form-group select, .form-group input {
    flex-grow: 2;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 8rem;
    
}

.select-group{
    display: block;
}

.atdate{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

#atDate{
    flex-grow: 2;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .form-group label, .form-group select, .form-group input {
        width: 100%;
    }
}



.nav {
    width: 100%;
    background-color: #1A237E;
    display: flex;
    align-items: center;
  }
  .nav > .nav-header {
    flex: 0.95;
    padding-left: 1rem;
  }
  .nav > .nav-header > .nav-title {
    font-size: 22px;
    color: #fff;
  }
  .nav > .nav-list {
    display: flex;
    gap: 2rem;
  }
  .nav > .nav-list > li {
    list-style-type: none;
  }
  .nav > .nav-list > li a {
    text-decoration: none;
    color: #efefef;
    cursor: pointer;
  }
  .nav > #nav-check {
      display: none;
  }
  @media (max-width: 480px) {
    .nav {
      padding: 1rem;
    }
    .nav > .nav-btn {
      display: inline-block;
      position: absolute;
      right: 0;
      top: 0;
      padding-top: 0.2rem;
    }
    .nav > .nav-btn > label {
      display: inline-block;
      width: 50px;
      height: 50px;
      padding: 13px;
    }
    .nav > .nav-btn > label > span {
      display: block;
      width: 25px;
      height: 10px;
      border-top: 2px solid #eee;
    }
    .nav > .nav-list {
      position: absolute;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      background-color: #1A237E;
      height: 0;
      transition: all 0.3s ease-in;
      top: 40px;
      left: 0;
      overflow: hidden;
      z-index: 99;
    }
    .nav > .nav-list > li {
      width: 100%;
      margin-top: 1.5rem;
    }
    .nav > #nav-check:checked ~ .nav-list {
      height: calc(100vh - 50px);
    }
  }

  .famous{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    margin-bottom: 10rem;
    max-width: 900px;
    width: 90%; /* Adjust width for padding and to prevent overflow */
    margin: 20px auto; /* Center the container */
    padding: 20px;

  }

  .famousimage{
    width: 10rem;
    height: 10rem;
  }
  .famehead{
    text-align: center;
  }


  .bitmargin{
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .bitmargin input, .bitmargin select {
    flex-grow: 2;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
  }
  
  #graphcard{
    display: flex;
    justify-content: center;
  }


  /* Add these styles to style.css */

#loveResult {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  position: relative;
}

.love-rain {
  position: fixed; /* Updated to fixed */
  top: 0;
  left: 0;
  width: 100vw; /* Updated to cover the entire viewport width */
  height: 100vh; /* Updated to cover the entire viewport height */
  pointer-events: none; /* Allow interaction with elements behind the rain */
  z-index: 999; /* Adjust the z-index to ensure it's above other content */
  animation: loveRainAnimation 3s linear infinite;
}

@keyframes loveRainAnimation {
  0% {
      opacity: 0;
      transform: translateY(0);
  }
  50% {
      opacity: 1;
      transform: translateY(150px);
  }
  100% {
      opacity: 0;
      transform: translateY(300px);
  }
}

.love-emoji {
  font-size: 24px;
  margin: 0 5px;
}


.spinner{
  /*   for centering div */
   
  /*   spinner div css */
    height : 50px;
    width : 50px;
    border-radius : 50%;
  /*   background-color : red; */
    border : 10px solid #ccc;
    border-top-color : #007bff;
    animation : spin 1s linear infinite;
  }
  
  @keyframes spin{
    0%{
      transform : rotate(0deg);
    }
    100%{
      transform : rotate(360deg);
    }
  }