/* 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;
  }
  

  #countdown-display {
    font-size: 60px; /* Increased font size for better visibility */
    font-family: 'Courier New', Courier, monospace;
    background-color: #222;
    color: #00ff00;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    width: 350px; /* Wider box to accommodate long text */
    text-align: center; /* Center the text inside the box */
    margin: 0 auto 20px; /* Center the box itself and add spacing below */
  }
  
  #stopwatch-display {
    font-size: 50px; /* Slightly smaller font for fitting */
    font-family: 'Courier New', Courier, monospace;
    background-color: #222;
    color: #00ff00;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    width: 420px; /* Wider box to fit hh:mm:ss:ms */
    text-align: center;
    margin: 0 auto 20px; /* Center the box and add spacing below */
    overflow: hidden; /* Prevent any overflow issues */
    white-space: nowrap; /* Ensure the text doesn't wrap */
  }
  
  .timer-container {
    margin: 40px auto; /* Center the container on the page */
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    color: white;
    width: 600px; /* Ensure the container is wide enough */
  }
  
  button, input {
    display: inline-block;
    margin: 10px; /* Add space between buttons and inputs */
  }
  
  button {
    padding: 12px 20px;
    font-size: 18px; /* Larger buttons for better UX */
  }
  
  input[type="number"] {
    width: 60px; /* Consistent input box size */
    padding: 10px;
    font-size: 18px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
  }

  
  .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  button {
    background-color: #00b4d8;
    color: white;
    border: none;
    padding: 10px 20px;
    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;
  }
  