* {
  box-sizing: border-box;
}
/* General body style */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #eef2f3, #8e9eab);
  margin: 0;
  padding: 0;/*2rem;*/
  /*display: flex;*/
  flex-direction: column;
   /*align-items: center;*/
}

/* Form container on frontend */
/*
.container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}
*/
.container {
  background:#ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.chat-controls {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}
/* Inputs and buttons */
input[type="text"],
input[type="username"],
#msg {
  padding: 0.7rem;
  width: 90%;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
   
}
@media (max-width: 600px) {
    
  #msg {
    font-size: 0.95rem;
    height: 120px; /* if it's a textarea */
  }
}

button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: #4CAF50;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Send button — active state */
#sendBtn {
  background-color: #4CAF50;
}
#sendBtn:hover:not(:disabled) {
  background-color: #45a049;
}

/* Disconnect button */
#disconnectBtn {
  background-color: #e53935;
}
#disconnectBtn:hover {
  background-color: #d32f2f;
}

/* Disabled button state — shared */
button:disabled {
  background-color: #cccccc !important;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Chat box styling */
#chat-box {
  width: 100%;
  max-width: 500px;
  height: 250px;
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 5px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

/* Messages */
#chat-box p {
  margin: 0.5rem 0;
  padding: 0.4rem 0.6rem;
  background: #f2f2f2;
  border-radius: 4px;
  text-align: left;
  word-wrap: break-word;
}

/* Header and status text */
h2, #status, #total {
  margin-bottom: 1rem;
}


button.back-home {
  background-color: #0288d1;
  
}
button.back-home:hover {
  background-color: #0277bd;
}
.main-title {
  font-family: 'Pacifico', cursive;
  font-size: 3.5rem;
  color: #6a1b9a;
  text-align: center;
  margin-bottom: 1rem;
}

/* Optional animation */
@keyframes pulseTitle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

.upload-btn {
  display: inline-block;
  background-color: #03a9f4;
  color: white;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem; 
  margin-top: 1rem;
  opacity: 0.6;
  transition: background 0.3s ease;
}
.upload-btn:hover {
  background-color: #0288d1;
}

.file-message {
  margin: 10px 0;
  text-align: left;
}

.upload-btn.disabled {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

input {
  width: 500px;
}

/* After (responsive) */
input {
  width: 90%;
  max-width: 400px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.4em;
  }

  input {
    font-size: 1em;
  }
}

/* Naviagtion containers*/
/* Header styles */
.main-header {
  background-color: #004aad;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-bar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 12px;
}

/* Toggle button for mobile */
.menu-toggle {
  display: none;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Mobile layout */
@media (max-width: 700px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    display: none;
    background-color: #004aad;
    margin-top: 10px;
  }

  .nav-bar.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-top: 10px;
  }

  .nav-bar a {
    padding: 10px 0;
    font-size: 1rem;
  }

  .nav-wrapper {
    flex-direction: column;
  }
}


/*contact related CSS*/


.info-block {
  margin: 40px auto;
  max-width: 800px;
  padding: 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.info-block h2 {
  color: #004aad;
  margin-bottom: 10px;
}

.info-block p {
  font-size: 1.05rem;
  color: #333;
}

/*mobile usage related to content css*/

@media (max-width: 600px) {
  .info-block {
    padding: 16px;
    margin: 20px 10px;
    font-size: 1rem;
  }

  .info-block p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .info-block h2 {
    font-size: 1.4em;
    margin-bottom: 8px;
  }
}

/*full wrapper to wrap container and evne content */

.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}


/*Added for zoom image changes*/
#imageModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#imageModal.fade-in {
  opacity: 1;
}

#modalImage {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  cursor: zoom-out;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/*Loading*/
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


.adsterra-link {
  position: fixed;
  bottom: 10px; /* Adjust for vertical placement */
  left: 10px;   /* Anchors to the left edge */
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  z-index: 999;
}

.adsterra-link:hover {
  background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 600px) {
  .adsterra-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}
