.hero1 {
    display: flex;
    flex-direction: column; /* Changed to column to stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    height: auto; /* Changed to auto to accommodate content height */
    background: 
      repeating-linear-gradient(
        0deg, 
        rgba(246, 220, 224, 0.3) 0px, 
        rgba(246, 220, 224, 0.3) 1px, 
        transparent 1px, 
        transparent 10px 
      ),
      repeating-linear-gradient(
        90deg, 
        rgba(246, 220, 224, 0.3) 0px, 
        rgba(246, 220, 224, 0.3) 1px, 
        transparent 1px, 
        transparent 10px 
      );
      
    color: #fff; 
    padding: 20px; 
    position: relative; 
    z-index: 1; 
    
  }

  .hero1 h1 {
    font-size: 2.5em;
    margin-bottom: 0px; 
    font-family: "Roboto", system-ui;
    font-weight: 500; /* Changed to 700 for proper font-weight */
    font-style: normal; 
    color: #333; /* Changed text color for contrast */
  }
  /* Responsive Styles */
  @media (max-width: 768px) {
    .hero1 {
      height: auto;
      padding: 20px;
    }

    .hero1 h1 {
      font-size: 1.5em;
    }
  }
  #cal{
   overflow:hidden;
   padding:10px 30px 30px 30px;
   background:white;
   width:94%;
   margin:50px auto;
   border:1px solid #eee;
   border-radius:10px;
   box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
  }
  #backToTopBtn {
  display: yes; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 30px; /* 30px from the bottom */
  right: 30px; /* 30px from the right */
  z-index: 99; /* Sit on top */
  background-color: #FFDD00; /* Dark background */
  color: navy; /* White text */
  border: none; /* No border */
  outline: none; /* No outline */
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Rounded corners */
  text-align: center;
  font-size: 24px;
  cursor: pointer; /* Pointer/hand icon */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

/* Hover effect */
#backToTopBtn:hover {
  background-color: #ff7e5f; /* Change background color on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Show button when page is scrolled */
#backToTopBtn.show {
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  #backToTopBtn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}
.content-section {
    background-color: #f9f9f9;
    padding: 50px 120px;
    border-radius: 0px;
    max-width: 100%;
    margin: 0 auto;
}

.content-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-section h3 {
    color: #555;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}




.container {
            max-width: 100%;
            margin: 0 auto;
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }

       

        label {
            display: block;
            margin-top: 15px;
            font-size: 16px;
        }

        input[type="number"], select {
            width: 100%;
            padding: 10px;
            margin: 8px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        button {
            width: 100%;
            height:45px;
            background-color: #007bff;
            color: white;
            font-size: 18px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            
        }

        button:hover {
            background-color: #003466;
        }

        .result {
            margin-top: 20px;
            padding: 20px;
            background-color: #f1f1f1;
            border-radius: 8px;
            font-size: 18px;
            display: none;
        }

        .progress-circle {
            display: none;
            margin: 0 auto;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 5px solid #ccc;
            border-top: 5px solid #007bff;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 600px) {
            .container {
                padding: 15px;
            }

            button {
                font-size: 16px;
            }

            .result {
                font-size: 16px;
            }
        }
        
        .reset-button {
            background-color: #dc3545;
            margin-top: 10px;
        }

        .reset-button:hover {
            background-color: #c82333;
        }
        
        input[type="text"] {
            width: 100%;
            padding: 10px;
            margin: 8px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        
        /* Responsive styles for tablets and mobile */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .output-section {
        margin-left: 0;
        margin-top: 20px;
    }

    .chart-container {
        max-width: 100%;
    }

    /* Make buttons full-width */
    button {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
    }

    /* Adjust input and result text for readability */
    .input-item input {
        width: 100%;
        padding: 8px;
    }

    #result, #textResults {
        font-size: 16px;
    }
}

/* Styles for small mobile devices */
@media screen and (max-width: 480px) {
    h2, h3, h4 {
        font-size: 18px;
    }

    .input-item input {
        padding: 6px;
        font-size: 14px;
    }

    #result, #textResults {
        font-size: 14px;
    }

    .chart-container {
        margin-top: 15px;
    }

    /* Adjust spacing for buttons and inputs */
    button {
        padding: 8px;
        margin: 8px 0;
    }
}
        
        input[type="button"] {
    background-color: #007bff; /* Button background color */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    padding: 10px 20px; /* Padding for top/bottom and left/right */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Transition effects */
    width: auto; /* Allow button to adjust its width */
}

/* Button hover effect */
input[type="button"]:hover {
    background-color: #0056b3; /* Darker shade for hover */
    transform: scale(1.05); /* Slightly enlarge button */
}

/* Button active effect */
input[type="button"]:active {
    transform: scale(0.95); /* Slightly shrink button on click */
}

        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        