/* styles.css */

/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 20px; /* Add padding around the content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  
  h1 {
    font-size: 2.5em;
    color: #2c3e50; /* Dark blue */
    margin-bottom: 15px;
    font-weight: 700; /* Bold */
  }
  
  h3 {
    font-size: 1.3em;
    color: #34495e; /* Slightly darker blue */
    margin-bottom: 10px;
    font-weight: 500; /* Semi-bold */
  }
  
  h5 {
    font-size: 1em;
    color: #777;
    margin-bottom: 20px;
  }
  
  /* Countdown */
  #countdown {
    font-size: 1.2em;
    color: #e74c3c; /* Red */
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  /* Form (Cancel Button) */
  #form {
    margin-bottom: 20px;
  }
  
  #cancelButton {
    background-color: #e74c3c; /* Red */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease; /* Smooth transition for hover */
  }
  
  #cancelButton:hover {
    background-color: #c0392b; /* Darker red on hover */
  }
  
  /* Connection Status */
  #connection-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }
  
  #connection-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .connected {
    background-color: #2ecc71; /* Green */
  }
  
  .disconnected {
    background-color: #e74c3c; /* Red */
  }
  
  #connection-text {
    font-size: 0.9em;
    color: #333;
    visibility: visible;
  }
  
  /* QR Code */
  #qrcode {
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
  }
  #qrcode img {
      max-width: 250px;
      max-height: 250px;
      border: 5px solid #eee; /* Light gray border for the QR code */
      border-radius: 5px;
  }
  
  /* Iframe */
  iframe {
    border: none;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for the iframe */
  }
  
  /* Responsive Design Adjustments */
  @media (max-width: 600px) {
    h1 {
      font-size: 2em;
    }
  
    h3 {
      font-size: 1.1em;
    }
  
    #connection-wrapper {
      bottom: 10px;
      right: 10px;
    }
    body{
      padding: 10px;
    }
  }
  
  /* Animations */
  .connected, .disconnected {
    transition: background-color 0.3s ease; /* Smooth transition for status color */
  }
  