/* Scope everything inside the dashboard container */
#modular-dashboard {
    border: 1px solid #f9f9f9;
    font-family: monospace;
    color: #0f0;
    padding: 20px;
    background: #000;
}

/* Priority Zones */
#modular-dashboard .priority-zone {
    border: 2px solid #0f0;
    padding: 10px;
    margin: 10px 0;
    min-height: 100px;
    background-color: #000;
}

#modular-dashboard .priority-zone h2 {
    text-align: center;
    color: #0f0;
    font-size: 1rem;
}

#modular-dashboard h3 {
    border: 1px solid #0ff;
}

#modular-dashboard p {
    color: #0ff;
}

/* Trash Zone */
#modular-dashboard #trash {
    border: 2px dashed red;
    color: red;
    text-align: center;
    padding: 1px;
    margin: 20px 0;
}

#modular-dashboard #section-controls {
    margin: 10px 0;
}

#modular-dashboard #task-list {
    margin-left: 10px;
}

#modular-dashboard #new-section-name {
    padding: 5px;
    margin-right: 10px;
    width: 200px;
}

#modular-dashboard #custom-sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

}

#modular-dashboard .custom-section {
    border: 1px dashed #0f0;
    background-color: #111;
    padding: 10px;
    width: 220px;
    min-height: 150px;
    box-sizing: border-box;
    overflow: hidden; /* keeps scroll hidden */
}

#modular-dashboard .task-list {
    /*max-height: 200px;*/
    max-height: 100%;  /* working */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS snooth scroll */ 
}

#modular-dashboard .task {
    /*position: absolute;
    touch-action: none; */ /* prevents default browser gestures on mobile */
    background: #000;
    border: 1px solid #0ff;
    margin: 5px 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    /*justify-content: flex-start; // This will place everything at the left of the screen */
    justify-content: center; /* This was set to space-between to put things on opposite ends of the screen */
    gap: 10px;
    cursor: move;
}

#modular-dashboard .remove-task,
#modular-dashboard .remove-section {
    background: red;
    border: 2px solid #0ff;
    margin: 10px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

#modular-dashboard .add-task-btn {
    /* margin-top: 10px; */
    background: #111;
    color: #0ff;
    border: 2px solid #111;
    padding: 5px 10px;
    cursor: pointer;
}

/* Below imported from style.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f9f9f9;
  background-color: #111;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.container-two {
    border: 1px solid #0ff;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 60%;
}

/* Header */
header {
  background: #111;
  color: #fff;
  padding: 1rem 0;
}

nav ul {
  list-style: none;
  float: right;
  display: flex;
  gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
}

strong {
  color:#00ffff;
}

footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.p2 {
  margin-top: 1%;
  margin-bottom: 3%;
}

strong {
  text-decoration: underline;
}

/* Navbar styles */
.navbar {
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    gap: 1.5rem;
    padding: 1rem 0rem 1rem 0rem;
}
.logo {
    margin: auto;
    margin-left: 30%;
    padding: 0.25rem 0.75rem 0.25rem 6rem;
    color: #fff;
    background-color: rgba(0, 127, 127);
    font-size: 3.5rem;
    font-weight: bold;
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    margin-right: 1.5%;
    padding: 0;
}
.nav-links {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links li a:hover {
    color: #f39c12;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.logo-img {
  margin-top: 2%;
  margin-bottom: 2%;
  max-width: 75%;
  border-radius: 10px;
} 

img {
    margin: 1%;
    max-width: 50%;
    max-height: 50%;
    border-radius: 10px;
    
}

.paragraph-heading {
  color: #00ffff;
}

#back-to-top {
  text-align: center;
  
}

a[href^="mailto:"] {
  color: #00ffff; /* my brand teal */
  text-decoration: underline;
}

a[href^="mailto:"]:hover {
  color: #00cccc;
}


@media (max-width: 768px) {
    .portfolio-gallery {
      flex-direction: column;
      align-items: center;
    }

    .p3 {
      font-size: 0.75rem;
      text-align: center;
    }

    .navbar {
      flex-direction: row;
      align-items: center;
      padding: 0.2rem;
    }

    .logo {
      margin: 0;
      padding: 0.5rem;
      font-size: 2rem;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        background: none;
        width: auto;
        position: static;
        margin-top: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    .nav-links a {
        position: relative;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }
    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: #f39c12;
        transition: width 0.3s ease-in-out;
    }
    .nav-links a:hover::after, .nav-links a.active::after {
        width: 100%;
    }

    .nav-links {
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
    }

    .nav-links li {
      flex: 0 0 auto;
    }
    
}  

/* Below original styles from modular-dashboard.css */
@media (max-width: 600px) {
    #modular-dashboard #custom-sections-container {
        flex-direction: column;
    }

    #modular-dashboard .custom-section {
        width: 100%;
    }

}
