html {
  font-family: Tahoma, Arial, sans-serif;
  text-align: center;
}

h1 {
  font-size: 24px;
  color: rgb(251, 252, 254);
}


h2 {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 18px;
  text-align: center;
  color: rgb(251, 252, 254);
}

p {
  text-align: left;
  color: rgb(251, 252, 254);
}

body {  
  background-image:url('BackgroundLille.png?v=1');
  margin: 0 auto;
  background-color: #72aecc;
  background-repeat: no-repeat;
  background-position: center 10%;
  background-size: contain;
}

.topnav img {
  display: block;
  margin: 0 auto;
  height: 80px; 
  width: 250px;
}

.card { 
  margin: auto;
  height: 70px; 
  width: 275px;
  background-color: transparent;
  display: block;
}

/* Only affects elements under .wifimanager */
.wifimanager .card {
  margin: 20px auto;
  width: 320px;
  background-color: transparent;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.wifimanager .form-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.wifimanager .form-group label {
  width: 100px;
  font-weight: bold;
  color: #fff;
  text-align: right;
  margin-right: 10px;
}

.wifimanager .form-group input {
  width: 150px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
}



.button-off {
  background-color: #4F748B; /* Default background color */
  display: block;
  border: none;
  margin: 10px auto; /* Ensure margin does not affect click area */
  height: 60px; 
  color: white;    /* Text color */
  text-align: center;
  text-decoration: none;
  font-size: 25px;
  width: 275px;
  border-radius: 20px;
  padding: 0;        /* Ensure no default padding interferes */
  box-sizing: border-box; /* Include padding and border in element's width and height */
  transition: transform 0.1s;
  cursor: pointer;
  position: relative; /* Ensure the entire button area is clickable */
  overflow: hidden;   /* Prevent any content overflow */
}

.button-off:hover {
  background-color: #284A5B; /* Hover color */
}

.button-off:active {
  background-color: #0d5212; /* Color when clicked */
}

.button-Clock {   /* Properties like button-off with these changes */
  height: 100px; 
  font-size: 50px;
  background-color: #0d5212; 
  margin-top: 40px; /* Adjust this value as needed */
}

/* Specific styles for the Stop button, BtnUpdate and BtnTest */
#Btn1 {
  background-color: #c00202; /* Specific background color for Stop button */
  font-size: 48px;
}

#Btn1:active {
  background-color: #0d5212; /* Color when clicked */
}

#Btn1:hover {
  background-color: #284A5B; /* Hover color */
}

#BtnUpdate {
  background-color: #4F748B;  /* Button background Color - matches button-off default */
  font-size: 30px;
}

#BtnUpdate:hover {
  background-color: #284A5B; /* Same hover color as Btn1 */
}

#BtnUpdate:active {
  background-color: #0d5212; /* Color when clicked */
}


/* Modal background overlay */
.modal {
  position: fixed;
  margin: 5px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;      /* Rounded corners */
  width: 80%;
  padding: 20px;
  border: none;
  box-shadow: none;
  z-index: 1000;
  display: none;
  box-sizing: border-box;
}

/* Modal content box (the box that holds the message) */
.modal-content {
  position: relative;
  width: 90%;               /* Adjust width of the content box */
  max-width: 600px;         /* Optional: max width */
  margin: 0 auto;           /* Center the modal content horizontally */
  padding: 20px;            /* Padding inside the modal content */
  border-radius: 10px;      /* Rounded corners */
  text-align: center;       /* Center the text horizontally */
  display: flex;            /* Use flexbox for alignment */
  flex-direction: column;   /* Arrange content vertically */
  justify-content: flex-start;  /* Align items to the top */
  align-items: center;      /* Center the content horizontally */
  height: auto;             /* Allow content to expand vertically */
  overflow: auto;           /* Allow scrolling if content overflows */
}

/* Ensure the text within the modal content fills the box */
.modal-content p {
  margin: 0;                /* Remove margin around text */
  font-size: 20px;          /* Text size */
  width: 90%;  
  color: white;             /* Text color */
  text-align: center;       /* Center the text horizontally */
  line-height: 1.5;         /* Adjust line height to fill the space if needed */
  flex-grow: 1;             /* Allow the text to fill the available space */
  background-color: transparent;
}

/* Countdown container */
.countdown-container span {
  margin: 5px;
  font-size: 20px;          /* Bigger countdown text */
  width: 80%;
  color: white;             /* White countdown text */
  font-weight: bold;        /* Optional: makes the text bold */
  background-color: transparent;
  border-radius: 10px;
}

/* Yes and No buttons (adjustments to make them higher) */
#modalYesBtn, #modalNoBtn {
  width: 100%;               /* Both buttons will take 40% of the container's width */
  padding: 15px 15px;       /* Increase padding to make the button larger */
  margin: 10px;             /* Add some margin between the buttons */
  font-size: 18px;          /* Larger font size for better visibility */
  background-color: #2421e6; /* Set a background color */
  color: white;             /* Set text color to white */
  cursor: pointer;         /* Change cursor to pointer on hover */
  border-radius: 10px;      /* Rounded corners */
}

#modalYesBtn:hover, #modalNoBtn:hover {
  background-color: #62c3fc; /* Hover effect for buttons */
}

/* Close button */
.closeBtn {
  position: absolute;      /* Position it at the top-right */
  top: 0px;               /* Adjust distance from top */
  right: 0px;             /* Adjust distance from right */
  color: white;            /* White color for the close button */
  font-size: 5ch;         /* Set the size of the "X" button */
  font-weight: bold;       /* Make the "X" bold */
  cursor: pointer;         /* Make it clickable */
  z-index: 1001;           /* Ensure it's above other content */
}

/* Close button hover effect */
.closeBtn:hover,
.closeBtn:focus {
  color: #5fa7eb;           /* Change color on hover */
  text-decoration: none;
}


/* Style for the language selector dropdown */
#languageSelector {
  background-color: #4F748B;
  color: white;
  border: none;
  border-radius: 20px;
  width: 275px;
  padding: 16px 16px;
  font-size: 30px;
  outline: none;
  margin-bottom: 50px; 
}

/* Optional: Style dropdown options (browser support varies) */
#languageSelector option {
  background-color: #4F748B;
  color: white;
}

/* Connection status styling */
#connectionStatus {
  text-align: center;
  padding: 8px 16px;
  margin: 10px auto;
  border-radius: 8px;
  font-size: 16px;
  max-width: 275px;
  background-color: #72aecc; /* Match main page background */
}