/* 
Theme: Filifly
Author: Md Mim Akhtar
Author Website: https://www.imimofficial.com
Date Started: 28/10/2024
License: All Rights Reserved
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');
/* Colors */
:root {
  --primary-color: #007bff;
  --secondary-color: #3498db;
  --dark-color: #6da5a7;
  --white-color: #ffffff;
  --black-color: #000000;
  --dim-black-color: #2e2e2e;
  --red-color: #ff0000;
  --overlay-color: #000000e1;
}

html {
  scroll-behavior: smooth;
}

/* Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* Optional: Fully transparent to ensure no visible scrollbar */
  scrollbar-width: none; /* Hides scrollbar in Firefox */
  -ms-overflow-style: none; /* Hides scrollbar in IE/Edge */
}

.free-height-20px {
  height: 20px;
}

button {
  cursor: pointer;
}

.message {
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
  color: var(--dark-color);
  line-height: 1.6;
}

.message a {
  text-decoration: none;
  color: var(--secondary-color);
}

@media screen and (max-width:768px) {
  .message {
    font-size: 10px;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter;
  }

/* Welcome Screen Styling */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background:linear-gradient(180deg,transparent,hsla(0,0%,95%,.29) 47.39%,#fff),linear-gradient(90deg,#f9ddf1 .07%,#e5e1ff 16.73%,#daedff 34.48%,#e2f4e3 49.98%,#ebf5d8 66.12%,#faf2da 81.95%,#fbe5d8 99.9%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Background Video Styling */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.9;
  height: 100%;
  object-fit: cover; /* Ensure video covers entire background */
  z-index: -1; /* Place it behind the content */
}

/* Overlay to Darken Background for Readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
  z-index: 1; /* Above video, below text */
}

/* Main Content Styling */
.welcome-content {
  position: relative;
  z-index: 2; /* Ensure it stays above video and overlay */
  text-align: center;
  color: #ffffff; /* White text for contrast over video */
}

.text-carousel h1 {
  font-size: 5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--primary-color);
  animation: fadeIn 1s ease-in-out;
}

@media screen and (max-width:768px) {
  .text-carousel h1 {
    font-size: 2rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typewriter Effect */
.feature-text {
  padding: 0px 20px;
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  border-right: 4px solid;
  animation: typing 2s steps(30, end), blink 0.8s infinite step-end alternate;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Buttons */
.welcome-buttons {
  margin-top: 20px;
}

.action-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 30px;
  margin: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-buttonn {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 30px;
  margin: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-buttonn:hover {
  background-color: var(--primary-color);
}

body.no-scroll {
  overflow: hidden;
}

/* Fullscreen loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:linear-gradient(180deg,transparent,hsla(0,0%,95%,.29) 47.39%,#fff),linear-gradient(90deg,#f9ddf1 .07%,#e5e1ff 16.73%,#daedff 34.48%,#e2f4e3 49.98%,#ebf5d8 66.12%,#faf2da 81.95%,#fbe5d8 99.9%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  visibility: hidden;
  opacity: 0;
}

/* Loading content container */
.loading-container {
  text-align: center;
  color: var(--dim-black-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Spinner animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--secondary-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Loading message */
#loading-message {
  font-size: 1.2em;
  font-weight: bolder;
  margin: 0;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Places video behind content */
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  background-size: cover;
}

/* Overlay styling */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background:linear-gradient(180deg,transparent,hsla(0,0%,95%,.29) 47.39%,#fff),linear-gradient(90deg,#f9ddf1 .07%,#e5e1ff 16.73%,#daedff 34.48%,#e2f4e3 49.98%,#ebf5d8 66.12%,#faf2da 81.95%,#fbe5d8 99.9%);
  z-index: -1;
}

  /* Navbar Styles */
  .navbar {
    background-color: #ffffff;
    color: var(--dim-black-color);
    padding: 5px 20px;
    border-bottom: 2px solid var(--dark-color);
    position: sticky; /* Makes the navbar sticky */
    top: 0; /* Position the navbar at the top of the viewport */
    z-index: 100; /* Ensure it's on top of other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Uncomment for shadow effect */
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1290px;
    margin: 0 auto;
  }
  
  .logo {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
    font-size: 24px;
    font-weight: bold;
    color: var(--dim-black-color);
    text-decoration: none;
  }
  
  .logo img {
    width: 60px;
    justify-content: space-between; /* Adjust as needed */
  }

  .logo span {
    margin-left: 10px;
  }
  
  .nav-links {
    display: flex;
    gap: 20px;
  }
  
  .nav-links li {
    list-style: none;
  }
  
  .nav-links a {
    color: var(--dim-black-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: var(--primary-color); /* Blue on hover */
  }
  
  .nav-links a.active {
    color: var(--primary-color); /* Active link in primary blue */
  }
  
  /* Mobile Menu Toggle */
  .menu-toggle {
    display: none;
    background: none;
    font-size: 24px;
    color: var(--dim-black-color);
    cursor: pointer;
    border: 2px solid var(--dim-black-color);
    padding: 0px 5px 0px 5px;
    border-radius: 10px;
    z-index: 111;
  }
  
  /* Responsive Styling */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #ffffff;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
      padding: 10px 0;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }
  
    .nav-links li {
      margin: 10px 0;
      text-align: center;
    }
  
    .menu-toggle {
      display: block;
    }
  }
    
  /* Show nav-links on mobile toggle */
  .nav-links.show {
      margin-top: 12px;
      display: flex;
      border-bottom: 2px solid var(--dark-color);
      z-index: 100;
  }

/* Connection UI Styles */


.block-main {
    min-height: 100vh;
}

.block-transparent {
    width: 100%;
    padding: 80px 20px 80px 20px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
    display: block;
    background-color: #f9ddf1;
}

.block-primary-color {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: var(--primary-color);
}

.block-white {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: var(--white-color);
}

.block-1 {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: #f9ddf1;
}

.block-2 {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: #ebf5d8;
}

.block-3 {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: #fbe5d8;
}

.block-4 {
  width: 100%;
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  display: block;
  background-color: #daedff;
}

section {
    width: 1290px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.button:hover {
    background-color: #0056b3;
}

/* Hide elements by default */
.hidden {
    display: none;
}

/* Section styles */
.section {
    width: 80%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

/* 
input[type="text"], input[type="file"] {
    margin: 10px 0;
    padding: 10px;
    width: 80%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
} */

#fileStatus {
    margin-top: 20px;
    font-weight: bold;
}

/* Connection Content */
.connection-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -10px;
  padding: 10px 10px 20px 10px;
  background-color: var(--white-color);
  border: 1px solid var(--dark-color);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.connection-content .fa-arrows-rotate, .connection-content .fa-signal {
  font-size: 16px;
  color: var(--secondary-color);
  cursor: pointer;
}

.connection-content .fa-arrows-rotate:hover {
  color: var(--primary-color);
}

@media screen and (max-width:768px) {
  .connection-content .fa-arrows-rotate, .connection-content .fa-signal {
    font-size: 12px;
    color: var(--secondary-color);
    cursor: pointer;
  }  
}

/* Tabs Section */
.tabs-section {
    width: 1290px;
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
  }
  
  .headings {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .headings h2 {
    color: var(--dim-black-color);
    font-size: 48px;
  }
  
  @media screen and (max-width:768px) {
    .headings h2 {
      font-size: 28px;
    }
  }
  
  .tabs-container {
    display: flex;
    align-items: center; /* Ensures vertical alignment of items */
    justify-content: space-between; /* Ensures even spacing between items */
    /* gap: 10px; Adds consistent spacing between items */
    background-color: var(--dark-color);
    overflow: hidden;
    border: 1px solid var(--dark-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .tabs-container i {
    margin-right: 20px;
    margin-left: 20px;
    font-size: 1em;
    color: var(--white-color);
  }

  @media screen and (max-width:768px) {
    .tabs-container i {
      font-size: small;
    }
  }
  
  .tab {
    flex: 1;
    padding: 15px 10px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    background-color: var(--dark-color);
    color: var(--white-color);
    border: none;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .tab.active {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
  }
  
  /* Tab Content */
  .tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--dark-color);
    border-top: none;
  }
  
  .tab-pane {
    display: none;
  }
  
  .tab-pane.active {
    display: block;
  }
  
  .tab-pane h3 {
    font-size: 24px;
    color: var(--dim-black-color);
    margin-bottom: 10px;
  }
  
  .tab-pane p {
    color: var(--dim-black-color);
    font-size: 14px;
    margin-bottom: 20px;
  }
  
/* Connection Area */
/* Code container for QR and code */
.sender-content {
  max-width: 600px;
}

.code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.code-display h2 {
  margin-bottom: 20px;
  color: var(--dim-black-color);
}

.code-display img {
  width: 100px; /* Or the size you prefer */
  height: 100px; /* Or the size you prefer */
  border-radius: 10px;
  padding: 5px;
  background-color: var(--white-color);
  border: 2px solid var(--dim-black-color);
  margin-bottom: 20px; /* Add spacing below the QR code */
}

.connection-code {
  font-size: 2em;
  color: var(--primary-color);
  font-weight: bold;
  letter-spacing: 5px;
}

.file-url {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0px auto 10px auto;
  align-items: center;
  justify-content: center;
}

.file-url input {
  padding: 7px 5px;
  border: 1px solid var(--dark-color);
  background-color: transparent;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.copy-button, .share-button {
  display: flex;
  background-color: transparent;
  color: var(--dim-black-color);
  border: 1px solid var(--dim-black-color);
  border-radius: 5px;
  padding: 7px 5px;
  cursor: pointer;
}

.share-button {
  width: 80px;
}

.copy-button i, .share-button i {
  font-size: 16px;
}

/* Status items styling */
.status-item {
  width: 100%;
  margin: 5px 0;
  background-color: #f0f2f5;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
}

.status-item h2 {
  font-size: 1em;
  color: var(--dim-black-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Icon styling */
.status-icon, .speed-icon {
  font-size: 1em;
}

/* Highlighted text styling */
.connection-status {
  font-weight: bold;
}

.transfer-speed {
  font-weight: bold;
}

.new-connection {
  font-weight: bold;
}

  /* Styling for file upload and preview */
  .file-upload-area {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border: 2px dashed var(--secondary-color);
    background-color: #f8f9fa;
    border-radius: 8px;
    color: var(--dark-color);
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  
  .file-upload-area:hover {
    background-color: #ebebeb;
  }
  
  .upload-box span {
    color: var(--primary-color);
    font-weight: bold;
  }
  
  #upload-icon {
    font-size: 46px;
    color: var(--dark-color);
    margin-bottom: 10px;
  }
  
  /* File Preview */
  .file-preview-container, .receive-file-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Change to auto-fill with min-width */
    gap: 10px;
    margin: 10px 0;
  }
  
  .file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent overflow */
  }
  
  .file-thumbnail {
    width: 100%;
    height: 100px; /* Fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px; /* Space between thumbnail and file details */
  }
  
  .file-thumbnail img {
    max-width: 100%; /* Responsive image */
    max-height: 100%; /* Keep image within the thumbnail area */
    object-fit: contain; /* Ensures images are contained within their box */
  }
  
  .file-thumbnail span {
    font-size: 78px;
  }
  
  @media screen and (max-width: 1290px) {
    .file-thumbnail span {
      font-size: 68px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .file-thumbnail span {
      font-size: 48px;
    }
  }
  
  .file-name {
    font-size: 12px;
    margin: 5px 0;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .file-size {
    font-size: 11px;
    color: var(--dark-color);
  }
  
  .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .file-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  
  .clear-all {
    background-color: var(--secondary-color);
    border: none;
    font-size: 12px;
    color: #ffffff;
    padding: 5px 10px;
    margin-top: -5px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .clear-all:hover {
    background-color: var(--primary-color);
    transition: background-color 0.3s;
  }
  
  .total-size {
    font-size: 12px;
    color: var(--dim-black-color);
  }
  
  .file-status {
    font-size: 12px;
    color: var(--dim-black-color);
  }
  
  @media (max-width: 768px) {
    .file-preview-container, .receive-file-preview-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .file-preview-container, .receive-file-preview-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 380px) {
    .file-preview-container, .receive-file-preview-container {
      grid-template-columns: repeat(1, 1fr);
    }
  }
  
  @media (max-width: 280px) {
    .file-thumbnail {
      height: 80px; /* Adjust height for smaller screens */
    }
  
    .file-icon {
      font-size: 24px; /* Reduce icon size on very small screens */
    }
  
    .file-name {
      font-size: 10px; /* Reduce font size for file name */
    }
  
    .file-size {
      font-size: 9px; /* Reduce font size for file size */
    }
  }
  
  /* Status Message  */
  .status-message {
    display: flex;
    width: 100%;
    align-items: left;
    text-align: left;
  }
  
  .status-message .error-message {
    color: var(--red-color);
  }
  .status-message .success-message {
    color: var(--primary-color);
  }
  
  
  /* Style applied when upload animation is triggered */
  .file-uploading .file-preview-item {
    animation: fly-to-cloud 0.8s ease-in-out forwards;
  }
  
  /* Upload Button */
  .button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .button:hover {
    background-color: var(--primary-color);
  }
  
  .button:disabled {
    background-color: var(--dark-color);
    cursor: auto;
  }
  
  /* Receive Area */
  #receive {
    text-align: center;
  }

  #receive h2 {
    font-size: 18px;
    color: var(--dark-color);
  }

  #receive img {
    max-width: 150px;
    width: 100%;
    margin-bottom: 10px;
  }

  .receiver-content {
    text-align: center;
  }

  .receiver-content h2 {
    color: var(--dim-black-color);
  }
  
  .code-input-area {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
  }
  
  .digit-input {
    width: 10%;
    height: 50px;
    text-align: center;
    font-size: 28px;
    border: none; /* No border */
    border-bottom: 2px solid var(--secondary-color); /* Blue bottom line */
    margin: 0 5px; /* Space between inputs */
    outline: none; /* Remove default outline */
    transition: border-bottom-color 0.3s; /* Transition effect */
  }
  
  .digit-input:focus {
    border-bottom-color: var(--dark-color); /* Darker blue on focus */
  }

  .receive-button {
    display: none;
  }
  
  @media screen and (max-width:768px) {
    .digit-input {
      font-size: 20px;
      height: 40px;
    }
  }
  
  .download-file {
    margin-top: 10px;
    width: 100%;
    padding: 8px 10px;
    background-color: var(--secondary-color); /* Blue background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
  }
  
  .download-file:hover {
    background-color: var(--primary-color); /* Blue background */
    transition: background-color 0.3s;
  }
  
  .download-all-button {
    display: none;
  }
  
  .submit-button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: var(--secondary-color); /* Blue background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .submit-button:hover {
    background-color: var(--primary-color); /* Darker blue on hover */
  }
  
  .status-message {
    margin-top: 10px;
  }
  
  .file-preview-container {
    margin-top: 20px;
  }
  
  .received-file-list {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
  }
  
  .received-file-list li {
    padding: 5px 0; /* Add spacing between items */
  }
  
  .social-send-container {
    display: none;
    margin: 10px auto 20px auto;
    width: 500px;
    max-width: 100%;
  }
  
  /* Send Button */
  .send-button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .send-button:hover {
    background-color: var(--primary-color);
  }
  
  /* Social Share */
  .social-icons-main {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  .social-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .social-button:hover {
    background-color: var(--primary-color);
  }


/* Uploading Progress Bar */
.upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-color); /* Semi-transparent black */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600; /* Make sure it's on top */
  visibility: hidden; /* Hidden by default */
  opacity: 0; /* Start with invisible */
  transition: visibility 0s, opacity 0.3s linear; /* Smooth transition */
}

.upload-overlay.active {
  visibility: visible; /* Show when active */
  opacity: 1; /* Fade in */
}

.upload-content {
  text-align: center;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto; /* Center spinner */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-container {
  width: 100%;
  background-color: #444; /* Dark background for progress bar */
  border-radius: 5px;
  margin: 10px 0; /* Space above and below the progress bar */
}

.progress-bar {
  height: 10px;
  width: 0; /* Start at 0 width */
  background-color: #3498db; /* Blue color for the progress */
  border-radius: 5px;
  transition: width 0.4s ease; /* Smooth width change */
}

.progress-text {
  margin-top: 10px;
}



/* Drag Overlay */
/* Overlay styling */
.drag-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000b7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 101;
}

.drag-overlay.active {
  visibility: visible;
  opacity: 1;
}

.drag-overlay i {
  font-size: 50px;
  margin-bottom: 10px;
}

.drag-overlay .align-center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Notification style */
.alert-notification {
    position: fixed;
    top: 65px; /* Change this to bottom: 20px; for bottom left */
    right: 20px; /* Change this to left: 20px; for bottom left */
    background-color: #fff;
    border: 2px solid var(--primary-color);
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px); /* Slide in effect */
  }
  
  /* Visible state */
  .alert-notification.show {
    z-index: 400; /* Ensure it appears above other elements */
    opacity: 1; /* Show the notification */
    transform: translateY(0); /* Slide into view */
  }
  
  /* Title and message */
  .alert-notification h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
  }
  
  .alert-notification p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
  }

/* General styling for the popup */
.receiver-connection-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Transparent black overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.receiver-connection-popup.hidden {
  display: none; /* Hide the popup by default */
}

/* Container for the popup content */
.receiver-popup-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'Arial', sans-serif;
}

/* Popup title */
.receiver-popup-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

/* Instructions */
.receiver-popup-instructions {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

/* Input field styling */
.receiver-popup-input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Button styling */
.receiver-popup-connect-btn {
  width: 100%;
  background-color: #007bff;
  color: #fff;
  padding: 10px 0;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.receiver-popup-connect-btn:hover {
  background-color: #0056b3;
}

/* Status text */
.receiver-popup-status {
  margin-top: 15px;
  font-size: 0.85em;
  color: #555;
}

  
  /* Close button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: color 0.3s ease;
  }
  
  .close-btn:hover {
    color: var(--dim-black-color);
  }

  /* Footer Styles */
.footer {
    background-color: var(--white-color);
    padding: 40px 20px;
    color: var(--dark-color);
    font-size: 14px;
    border-top: 2px solid var(--dark-color);
    overflow: hidden;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1290px;
    margin: 0 auto;
  }
  
  .footer h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  
  .footer p,
  .footer a {
    color: var(--dim-black-color);
    text-decoration: none;
    line-height: 1.6;
  }
  
  .footer a:hover {
    color: var(--primary-color); /* Teal for hover effect */
  }
  
  .footer ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  /* Social Icons */
  .social-icons {
    display: block;
  }
  .social-icons a {
    font-size: 18px;
    color: var(--white-color);
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    transition: color 0.3s;
    background-color: var(--dark-color);
  }
  
  .footer .footer-bottom {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--dark-color);
  }
  
  .social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
  }
  
  /* Responsive Footer */
  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
  }
  
  @media (max-width: 480px) {
    .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .social-icons {
      justify-content: center;
      display: flex;
    }
  }

.close-popup-button {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: var(--secondary-color);
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--white-color);
    cursor: pointer;
    padding: 0 5px 5px 5px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 600;
}
  
.close-popup-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Scroll To Top */
.scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
  }
  
  .scrollToTopBtn:hover {
    background-color: var(--primary-color);
  }