@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
  }

  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
  }

  .container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
    padding-top: 20px; /* Add spacing from the top */
  }
  
  header {
    text-align: center;
    padding: 50px 20px;
    background: radial-gradient(circle at center, #2e2e2e, #000);
    border-radius: 30px;
    box-shadow: 0 0 50px #ff3c00;
    transition: 0.3s ease;
  }
  
  header h1 {
    font-size: 60px;
    color: #FFD700;
    text-shadow: 0 0 20px #FFD700;
    margin-bottom: 20px;
  }
  
  header .maru {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #FFD700;
    box-shadow: 0 0 30px #FFD700;
    transition: transform 0.5s ease;
  }
  
  header .maru:hover {
    transform: scale(1.1);
  }
  
  header p {
    font-size: 22px;
    color: #ccc;
    margin-top: 20px;
  }
  
  section {
    margin-top: 40px;
    background: #111;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  }
  
  section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    border-bottom: 2px solid #00ffc8;
    
    display: inline-block;
    color: #00ffc8;
  }

  section p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
  }
  
  .channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .channels a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #222;
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 0 10px transparent;
  }
  
  .channels a:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 20px #FFD700;
  }
  
  .channels i,
  .channels img.roblox {
    width: 24px;
    height: 24px;
  }
  
  .roblox {
    border-radius: 5px;
  }
  
  .modal {
    display: none;
  }
  
  .modal-content {
    display: none;
  }
  
  .modal-links a {
    display: block;
    margin: 10px 0;
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
  }

  
  .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  .sky {
    position: absolute; /* Allow the background to scroll with the page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #001d3d, #003566);
    z-index: -1; /* Ensure it stays behind all content */
    transition: background 2s ease-in-out; /* Smooth background transition */
  }
  
  .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/stars.png') repeat;
    animation: twinkle 5s infinite ease-in-out;
    opacity: 0; /* Initially hidden during the day */
    transition: opacity 2s ease-in-out; /* Smooth transition for day/night */
  }
  
  .sun {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffdd00, #ffaa00);
    border-radius: 50%;
    box-shadow: 0 0 50px #ffaa00;
    transition: transform 2s ease, opacity 2s ease;
    pointer-events: none; /* Disable clicking on sun and moon */
  }
  
  .moon {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffffff, #cccccc);
    border-radius: 50%;
    box-shadow: 0 0 30px #cccccc;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 2s ease, opacity 2s ease;
    pointer-events: none; /* Disable clicking on sun and moon */
  }
  
  .sun.move-left {
    transform: translateX(-150%);
    opacity: 0;
  }

  .moon.move-right {
    transform: translateX(0);
    opacity: 1;
  }
  
  @keyframes twinkle {
    0%, 100% {
      opacity: 0.8;
    }
    50% {
      opacity: 0.4;
    }
  }

  .comments-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .comments {
    flex: 3; /* Take up more space */
    margin-top: 40px; /* Add spacing above */
    margin-bottom: 40px; /* Add spacing below */
    background: #222;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .comment-categories {
    flex: 1; /* Take up less space */
    background: #222;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .comment-categories h3 {
    color: #FFD700;
    margin-bottom: 10px;
  }

  .comment-categories ul {
    list-style: none;
    padding: 0;
  }

  .comment-categories ul li {
    margin-bottom: 10px;
  }

  .comment-categories ul li button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .comment-categories ul li button:hover {
    background: #FFD700;
    color: #000;
  }

  .comments {
    margin-top: 20px;
    background: #222;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1; /* Ensure it appears above other elements */
    position: relative; /* Ensure proper stacking context */
  }

  .comments textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #333;
    color: #fff;
    resize: none;
  }

  .comments button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #FFD700;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .comments button:hover {
    background: #ffae00;
  }

  .comments input,
  .comments select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #333;
    color: #fff;
  }

  .comments input[type="file"] {
    margin-bottom: 10px;
    padding: 5px;
    background: #333;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
  }

  .comment-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Add spacing between comments */
  }

  .comment-item img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
  }

  .comment-item .default-icon {
    width: 50px;
    height: 50px;
    background: #555;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
  }

  .comment-item .delete-btn {
    display: none;
  }

  #commentList {
    margin-top: 20px;
    color: #fff;
  }
  
  .comment-categories {
    margin-top: 20px;
    background: #222;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .comment-categories h3 {
    color: #FFD700;
    margin-bottom: 10px;
  }

  .comment-categories ul {
    list-style: none;
    padding: 0;
  }

  .comment-categories ul li {
    margin-bottom: 10px;
  }

  .comment-categories ul li button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .comment-categories ul li button:hover {
    background: #FFD700;
    color: #000;
  }

  .modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .modal-content #confirmDelete {
    background: #ff4444;
    color: #fff;
  }

  .modal-content #cancelDelete {
    background: #ccc;
    color: #000;
  }

  .modal-content input[type="password"] {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #333;
    color: #fff;
  }

  .delete-toggle {
    margin: 20px 0;
    text-align: center;
  }

  .delete-toggle label {
    font-size: 18px;
    color: #FFD700;
    cursor: pointer;
  }

  .delete-toggle input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.5);
  }

  .file-upload {
    margin-bottom: 15px;
    text-align: center;
  }

  .file-upload label {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .file-upload label:hover {
    background: #ffae00;
  }

  .file-upload input[type="file"] {
    display: none;
  }

  .comment-item .delete-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .comment-item .delete-btn:hover {
    background: #cc0000;
  }

    @media (max-width: 768px) {
    header {
      padding: 30px 15px;
      border-radius: 20px;
    }
  
    header h1 {
      font-size: 36px;
    }
  
    header .maru {
      width: 120px;
      height: 120px;
    }
  
    header p {
      font-size: 16px;
    }
  
    section {
      padding: 20px;
      border-radius: 20px;
    }
  
    section h2 {
      font-size: 24px;
    }
  
    section p {
      font-size: 16px;
    }
  
    .channels {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 15px;
    }
  
    .channels a {
      padding: 10px;
      font-size: 14px;
    }
  
    .channels i,
    .channels img.roblox {
      width: 20px;
      height: 20px;
    }
  
    .modal-content {
      width: 90%;
      padding: 20px;
      font-size: 14px;
    }
  
    .close {
      font-size: 20px;
    }
  }
  
  @media (max-width: 480px) {
    header h1 {
      font-size: 28px;
    }
  
    header .maru {
      width: 100px;
      height: 100px;
    }
  
    section h2 {
      font-size: 20px;
    }
  
    .channels {
      grid-template-columns: 1fr;
    }
  }
