/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f0f8ff;
    color: #333;
  }
  
  header {
    background-color: #0077b6;
    color: white;
    padding: 20px 0;
  }
  
  h1 {
    margin: 0;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
  }
  
  nav a:hover {
    text-decoration: underline;
  }

  main {
    margin: 20px;
  }
  

  .calculator {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 350px;
    margin: 0 auto; /* Center the calculator on the page */
  }
  
  .display {
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    text-align: right;
    padding: 10px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
  }
  
  .output {
    font-weight: bold;
    font-size: 20px;
    height: 50px;
  }

  
  #display-container {
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: right;
  }
  
  #input-display {
    font-size: 18px;
    color: #bbb;
    overflow-x: auto;
  }
  
  #output-display {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
    overflow-x: auto;
  }
  
  
  .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  button {
    background-color: #00b4d8;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #0077b6;
  }
  
  button:active {
    background-color: #999;
  }

  #iframe-container {
    position: relative; /* Required for the overlay to position correctly */
    display: inline-block; /* Ensures it wraps around the iframe */
  }

  #overlay-box {
    position: absolute;
    top: 460px; /* Default top position */
    left: 0px; /* Default left position */
    width: 562px; /* Default width */
    height: 22px; /* Default height */
    background-color: #000000; /* Semi-transparent black */
    border: 0.5px solid #00b4d8;
    border-radius: 5px;
    pointer-events: none; /* Makes it non-interactive, so it doesn't block the iframe */
  }

  footer {
    margin-top: 20px;
    padding: 10px 0;
    background-color: #ddd;
    color: #555;
  }
  