/* Add margin to buttons to create space between them */
.panel-body .btn {
  margin-right: 1%;
  /* Add space between buttons */
}

.well .btn {
  margin-right: 3px;
  margin-bottom: 3px;
  /* Add space between buttons */
}

/* Align the last button (Download .deb) to the right */
.panel-body .btn:last-child {
  float: right;
  /* Align to the right */
  margin-right: 0;
  /* Remove the right margin for the last button */
  margin-left: 0;
}

/* Ensure clear fix so that floated elements don't affect container height */
.panel-body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 570px) {
  .container .panel-body {
    width: 100%;
    overflow: auto;
    text-align: center;
  }

  .container .panel-body .btn {
    display: inline-block;
    width: 48.4%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }

  /* Ensure the last button spans the full width */
  .container .panel-body .btn:last-child {
    width: 100%;
    margin: 5px auto;
  }
}

.well {
  width: 100%;
  overflow: auto;
  background-image: url("./assets/background-gradient.png");
  opacity: 0.9;
}

@media (max-width: 711px) {
  .well .btn {
    display: inline-block;
    width: 45.34%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }

  .well {
    text-align: center;
  }
}

@media (max-width: 381px) {
  .container .panel-body .btn {
    display: inline-block;
    width: 48.39%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}

@media (max-width: 375px) {
  .container .panel-body .btn {
    display: inline-block;
    width: 48.3%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}

@media (max-width: 351px) {
  .container .panel-body .btn {
    display: inline-block;
    width: 48.3%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}

@media (max-width: 335px) {
  .container .panel-body .btn {
    display: inline-block;
    width: 48.2%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}

@media (max-width: 310px) {
  .container .panel-body .btn {
    display: inline-block;
    width: 48.22%;
    /* Slightly wider to reduce gap */
    margin: 5px 0.5%;
    /* Smaller horizontal margin to ensure alignment */
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
}

@media (max-width: 446px) {
  .well .btn {
    padding: 2px 5px;
    /* Reduce padding further on small screens */
    font-size: 11px;
    /* Reduce font size slightly */
  }
}

@media (max-width: 385px) {
  .well .btn {
    padding: 1px 4px;
    /* Reduce padding further on small screens */
    font-size: 10px;
    /* Reduce font size slightly */
  }
}

@media (max-width: 323px) {
  .btn {
    padding: 2px 5px;
    /* Reduce padding further on small screens */
    font-size: 11px;
    /* Reduce font size slightly */
  }
}

@media (max-width: 304px) {
  .btn {
    padding: 2px 4px;
    /* Reduce padding further on small screens */
    font-size: 10px;
    /* Reduce font size slightly */
  }
}

@media (max-width: 280px) {
  .btn {
    padding: 2px 3px;
    /* Reduce padding further on small screens */
    font-size: 9px;
    /* Reduce font size slightly */
  }
}

/* Base Styles */
/*body {
    /*transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url("./assets/background-gradient.png") no-repeat center center;
    background-size: 100% 100%;
    opacity: 0.3; /* Adjust this value to control opacity 
    z-index: -1; /* Place it behind content 
    background-color: #0e0e0e;
}*/

/* Dark Theme Styles */
.dark-theme {
  background-color: #0e0e0e;
  color: #ffffff;
}

.dark-theme .well,
.dark-theme .btn-default {
  background-color: #1a1a1a;
  /* Darker background for consistency */
  color: #e0e0e0;
  /* Slightly softer white for better readability */
  border-color: #2b2b2b;
  /* Adjusted to match app section */
  border-radius: 13px;
  /* Rounded corners for consistency */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Subtle shadow for depth */
}

.dark-theme .panel {
  background-color: #1a1a1a;
  /* Darker background for consistency */
  color: #e0e0e0;
  /* Slightly softer white for better readability */
  border-color: #2b2b2b;
  /* Adjusted to match app section */
  border-radius: 9px;
  /* Rounded corners for consistency */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Subtle shadow for depth */
}

.dark-theme .panel-heading {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-bottom: 1px solid #2b2b2b;
  /* Consistent border style */
  border-radius: 8px 8px 0px 0px;
}

.dark-theme .panel-body {
  background-color: #211f1f;
  padding: 15px;
  /* Consistent padding */
  border-radius: 0px 0px 8px 8px;
}

.dark-theme .btn-default {
  background-color: #2b2b2b;
  border-color: #3b3b3b;
  color: #e0e0e0;
  border-radius: 7px;
  /* Consistent with app section */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .btn-default:hover {
  background-color: #444;
  border-color: #555;
}

.dark-theme .page-header {
  border-bottom: 1px solid #3b3b3b;
  color: #e0e0e0;
  margin-bottom: 0px;
}

.dark-theme a {
  color: #b3b3b3;
  /* Softer hover color */
  transition: color 0.3s ease;
}

.dark-theme a:hover {
  color: #d1d1d1;
  /* Slightly lighter hover color */
}

/* Light Theme Styles */
.light-theme .well,
.light-theme .btn-default {
  background-color: #f9f9f9;
  /* Softer background for consistency */
  color: #e0e0e0;
  /* Darker text for better contrast */
  border-color: #ccc7c7;
  /* Adjusted to match app section */
  border-radius: 12px;
  /* Rounded corners for consistency */
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
}

.light-theme .panel {
  background-color: #f9f9f9;
  /* Softer background for consistency */
  color: #333333;
  /* Darker text for better contrast */
  border-color: #ddd;
  /* Adjusted to match app section */
  border-radius: 9px;
  /* Rounded corners for consistency */
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
}

.light-theme .panel-heading {
  background-color: #f0f0f0;
  color: #333;
  border-bottom: 1px solid #ddd;
  /* Consistent border style */
  border-radius: 10px 10px 0px 0px;
}

.light-theme .panel-body {
  background-color: #ffffff;
  padding: 15px;
  /* Consistent padding */
  border-radius: 10px 10px 10px 10px;
}

.light-theme .btn-default {
  background-color: #e7e7e7;
  border-color: #ccc;
  color: #333;
  border-radius: 6px;
  /* Consistent with app section */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.light-theme .btn-default:hover {
  background-color: #d6d6d6;
  border-color: #bbb;
}

.light-theme .page-header {
  border-bottom: 1px solid #ccc;
  color: #333;
  margin-bottom: 30px;
}

.light-theme a {
  color: #007bff;
  /* Standard blue for links */
  transition: color 0.3s ease;
}

.light-theme a:hover {
  color: #0056b3;
  /* Slightly darker hover color */
}

/* Theme Toggle Styles */
#theme-toggle-wrapper {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  width: 50px;
  height: 50px;
}

#theme-toggle {
  border-radius: 13px;
  /* Match the border-radius of buttons */
  width: 50px;
  height: 50px;
  cursor: pointer;
  outline: none;
  position: relative;
  padding: 0;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Match the shadow of dark theme elements */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme Toggle Icon Styles */
#theme-toggle .sun-icon,
.moon-icon {
  width: 24px;
  height: 24px;
  text-align: center;
}

/* Light Theme Styles for Theme Toggle */
body.light-theme #theme-toggle {
  background-color: #e7e7e7;
  /* Match light theme button background */
  border-color: #ccc;
  /* Match light theme button border */
  color: #333;
  /* Match light theme button text color */
}

body.light-theme #theme-toggle .moon-icon {
  fill: white;
}

body.light-theme #theme-toggle .sun-icon {
  display: none;
}

/* Dark Theme Styles for Theme Toggle */
body.dark-theme #theme-toggle {
  background-color: #2b2b2b;
  /* Match dark theme button background */
  border-color: #3b3b3b;
  /* Match dark theme button border */
  color: #e0e0e0;
  /* Match dark theme button text color */
}

body.dark-theme #theme-toggle .sun-icon {
  fill: black;
}

body.dark-theme #theme-toggle .moon-icon {
  display: none;
}

/* Bottom Apps */

.header-section {
  margin-top: 10px;
}

.header-section h3 {
  font-size: 36px;
}

.app-section {
  margin-top: 45px;
  text-align: center;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 40px;
  /* Space for scroll bar */
}

.app-wrapper {
  display: inline-block;
  padding: 8px 0;
  /* Add vertical padding to prevent shadow clipping */
  vertical-align: top;
}

.app-wrapper-title {
  font-family: Arial, sans-serif;
  text-align: center;
  margin-bottom: 4%;
}

.clock-iframe,
.wallpapery-iframe {
  width: 310px;
  height: 360px;
  border: none;
  border-radius: 15px;
  /* Rounded corners */
  box-shadow: 0 0 0.8px rgba(0, 0, 0, 0.5);
  margin-right: 20px;
  /* Horizontal padding between iframes */
  margin-left: 20px;
  pointer-events: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-style: solid;
  border-color: rgb(192, 192, 192);
  border-width: 0.1px;
}

.dark-theme .clock-iframe,
.dark-theme .wallpapery-iframe {
  border-color: rgb(60, 60, 60);
  border-width: 0.9px;
}

.clock-iframe::-webkit-scrollbar,
.wallpapery-iframe::-webkit-scrollbar {
  display: none;
}

.app-actions {
  margin-top: 10px;
  text-align: center;
}

.app-actions .btn {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px 2px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: white;
  background-color: #2b2b2b;
  /* Darker background for a more muted appearance */
  border-radius: 6px;
  /* Match the rounded corners with the rest */
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #444;
  /* Add subtle border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for depth */
}

.app-actions .btn:hover {
  background-color: #444;
  /* Slightly lighter on hover */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  /* Increase shadow on hover */
}

.app-actions .try-it-btn {
  background-color: #333;
  /* Standardize with a darker, muted tone */
  border-color: #555;
  /* Subtle border color */
}

.app-actions .source-code-btn {
  background-color: #333;
  /* Use a dark, muted color */
  border-color: #555;
  /* Subtle border color */
}

.app-actions .download-btn {
  background-color: #333;
  /* Use a dark, muted color */
  border-color: #555;
  /* Subtle border color */
}

/* Dark Theme Adjustments */
.dark-theme .app-actions .btn {
  background-color: #2b2b2b;
  /* Darker background for dark theme */
  border-color: #3b3b3b;
  /* Darker border for consistency */
  color: #e0e0e0;
  /* Light text for better readability */
}

.dark-theme .app-actions .btn:hover {
  background-color: #444;
  /* Slightly lighter on hover in dark theme */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  /* Stronger shadow in dark theme */
}

/* Light Theme Adjustments */
.light-theme .app-actions .btn {
  background-color: #e7e7e7;
  /* Softer background for light theme */
  border-color: #ccc;
  /* Softer border color for light theme */
  color: #333;
  /* Darker text for better readability */
}

.light-theme .app-actions .btn:hover {
  background-color: #d6d6d6;
  /* Slightly darker on hover in light theme */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Subtle shadow in light theme */
}
