/* ================================
   RESET & BASE STYLES
   ================================ */

   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", Verdana, Arial, Roboto, sans-serif;
    font-size: 16px;
    color: #fff;
    background-color: #03a9f4;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  body.day-mode {
    background-color: #03a9f4;
    color: #000;
  }
  
  body.night-mode {
    background-color: #000;
    color: #fff;
  }
  
  .body-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
/* ================================
 NAVBAR
 ================================ */
 .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  background: linear-gradient(90deg, #001776, #0066ff);
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: 2rem;
  }

.navbar-logo {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: #66d9ef;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-link:hover {
    color: #66d9ef;
    transform: scale(1.1);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
}

.settings-button,
.ads-button {
    background: #1e1e1e;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0.4rem 0.4rem 0.8rem rgba(0, 0, 0, 0.6),
                -0.4rem -0.4rem 0.8rem rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.settings-button:hover,
.ads-button:hover {
    box-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.5),
                -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.1);
}

.settings-button:active,
.ads-button:active {
    transform: translateY(0.2rem);
    box-shadow: inset 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.5),
                inset -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.1);
}

.settings-menu,
.ads-menu {
    position: absolute;
    top: 4rem;
    right: 0;
    width: 20rem;
    background: #1e1e1e;
    border-radius: 0.75rem;
    box-shadow: 0.6rem 0.6rem 1.2rem rgba(0, 0, 0, 0.6),
                -0.6rem -0.6rem 1.2rem rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 999;
    transform: translateY(-0.6rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.settings-menu[aria-expanded="true"],
.ads-menu[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.settings-item {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.8rem;
    text-align: left;
    background: #1e1e1e;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.settings-item:hover {
    background: #003bbd;
    box-shadow: 0.6rem 0.6rem 1.2rem rgba(0, 0, 0, 0.4);
    transform: translateX(0.5rem);
}

.settings-item:active {
    background: #001776;
    box-shadow: inset 0.2rem 0.2rem 0.6rem rgba(0, 0, 0, 0.4),
                inset -0.2rem -0.2rem 0.6rem rgba(255, 255, 255, 0.1);
}

.settings-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.settings-item a:hover {
    text-decoration: underline;
    color: #0040b3;
}

/* ================================
     ADS SECTION
     ================================ */

.ads-section {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #1e1e1e;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

.ads-content {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ===== Mobile (max-width: 599px) ===== */
@media (max-width: 599px) {
    .navbar {
        padding: 0.5rem 1%;
        font-size: 0.7rem;
    }
    .navbar-actions {
        gap: 0.10rem;
    }
    .settings-button,
    .ads-button {
        padding: 0.4rem 0.3rem;
        font-size: 0.6rem;
        border-radius: 7px;
    }
}

/* ===== Tablet (600px to 1023px) ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .navbar {
        padding: 0.7rem 2%;
        font-size: 1.6rem;
    }
    .navbar-actions {
        gap: 0.5rem;
    }
    .settings-button,
    .ads-button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        border-radius: 0.5rem;
    }
}

/* ================================
   ADS
   ================================ */

.ad-item {
  padding: 1rem;
  margin: 0.5rem 0;
  background: #f9f9f9;
  border-radius: 0.75rem;
  box-shadow: 0.6rem 0.6rem 1.2rem rgba(0,0,0,0.1),
              -0.6rem -0.6rem 1.2rem rgba(255,255,255,0.5);
  text-align: center;
  color: #000;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.ad-item:hover {
  box-shadow: 0.8rem 0.8rem 1.6rem rgba(0,0,0,0.2),
              -0.8rem -0.8rem 1.6rem rgba(255,255,255,0.3);
  transform: translateY(-0.5rem);
}

.ad-item:active {
  box-shadow: inset 0.4rem 0.4rem 0.8rem rgba(0,0,0,0.2),
              inset -0.4rem -0.4rem 0.8rem rgba(255,255,255,0.3);
  transform: translateY(0.2rem);
}

.ad-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.ad-item a:hover {
  text-decoration: underline;
  color: #0040b3;
}


/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
  margin-top: 6rem;
  margin-bottom: 20rem;
  width: 100%;
  padding: 2rem;
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  max-width: 800px;
}

.main-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #0066ff;
  text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.5);
}

.main-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ================================
   INDEX
   ================================ */
.chad-projects { 
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 33px;
  margin-top: 33px;
}

.chad-projects li {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4), -4px -4px 6px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.chad-projects li:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 8px 4px rgba(255, 255, 255, 0.7);
}

.chad-projects li a {
  color: #66d9ef;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.chad-projects li a:hover {
  color: #003a40;
  transform: scale(1.05);
}

.chad-projects li p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.chad-projects li p:hover {
  color: #bbb;
}

.chad-projects li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 103, 255, 0.1);
  border-radius: 0.75rem;
  z-index: -1;
}

.chad-projects li a, .chad-projects li p {
  z-index: 1;
}

.chad-projects li ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chad-projects li ul li {
  background-color: #333;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.chad-projects li ul li:hover {
  background-color: #0066ff;
  transform: scale(1.05);
}

.chad-projects li ul li:active {
  transform: translateY(0.2rem);
  background-color: #004c99;
}

/* ================================
   LINKS
   ================================ */

a {
  color: #003a40;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
  color: #66d9ef;
  transform: scale(1.05);
}

a:focus {
  outline: none;
}

/* ================================
   FORM ELEMENTS
   ================================ */

textarea,
input[type="text"],
input[type="password"],
input[type="number"] {
  width: calc(100% - 2rem);
  padding: 12px;
  margin: 1rem auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: monospace;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

textarea {
  height: 10rem;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  border-color: #4caf50;
  outline: 0;
}

/* ================================
 BUTTONS
 ================================ */
 input[type="submit"],
 button,
 .start-button,
 .share-button,
 .password-button,
 .submit-button,
 .btn,
 .chat-input button[type="submit"],
 .chad-container button {
   background: #1e1e1e;
   color: #fff;
   padding: 0.8rem 1.5rem;
   font-size: 1rem;
   font-weight: bold;
   border-radius: 0.75rem;
   border: none;
   box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4), -4px -4px 6px rgba(255, 255, 255, 0.1);
   cursor: pointer;
   transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
   margin: 0.4rem;
 }
 
 input[type="submit"]:hover,
 button:hover,
 .start-button:hover,
 .share-button:hover,
 .password-button:hover,
 .submit-button:hover,
 .btn:hover,
 .chat-input button[type="submit"]:hover,
 .chad-container button:hover {
   background-color: #333;
   box-shadow: 0 0 8px 4px rgba(255, 255, 255, 0.7);
   transform: scale(1.05);
 }
 
 input[type="submit"]:active,
 button:active,
 .start-button:active,
 .share-button:active,
 .password-button:active,
 .submit-button:active,
 .btn:active,
 .chat-input button[type="submit"]:active,
 .chad-container button:active {
   transform: translateY(0.2rem);
   box-shadow: inset 0 0 8px 4px rgba(0, 255, 255, 0.8);
 }

 /* ================================ 
 CHAT & MESSAGES 
 ================================ */
 .chad-container {
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 22px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: #00bcd4;
  text-align: center;
  overflow: auto;
  height: 63vh;
}

.fresh {
  position: absolute;
  bottom: 0;
  right: 0;
}

.footer-chat {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 8vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0066ff;
  border-top: 2px solid #eee;
  padding: 0 1rem;
}

.footer-chat .icon {
  margin-left: 1.5rem;
  color: #c0c0c0;
  font-size: 1rem;
}

.footer-chat .send {
  position: absolute;
  right: 3rem;
  background-color: #4f6ebd;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-chat .send:hover {
  background-color: #3b53a0;
}

.footer-chat .name {
  margin-left: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
}

.footer-chat .right {
  position: absolute;
  right: 2.5rem;
}

.write-message {
  border: none;
  width: 70%;
  height: 4vh;
  margin-left: 1.25rem;
  padding: 0.625rem;
  background-color: #fff;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.write-message::placeholder {
  color: #c0c0c0;
  font-size: 0.875rem;
}

.chat-log-container {
  max-height: 88%;
  margin: 20px auto;
  width: 90%;
}

.chat-log {
  max-height: 44vh;
  overflow-y: auto;
  padding: 20px;
  background-color: #001776;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}
.dislike, .like {
  cursor: crosshair;
}
.message {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 5px;
  max-width: 100%;
  word-break: break-word;
  background-color: #333;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-user {
  font-weight: bold;
  color: #66d9ef;
}

.message-content {
  font-size: 1rem;
  line-height: 1.4;
}

.message.user {
  background-color: #3e3e3e;
}

.message.system {
  background-color: #f44336;
  color: #fff;
}

.container-for-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f5f5f5;
  width: 100%;
}

.input-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #2e2e2e;
  border-radius: 5px;
  padding: 20px;
  width: 100vw;
  max-width: 400px;
  margin: 50px auto;
}

.input-form label {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
}

.input-form input[type="text"],
.input-form input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.input-form input[type="text"]:focus,
.input-form input[type="number"]:focus {
  border-color: #00bcd4;
  outline: none;
}

.chat-window {
  display: flex;
  flex-direction: column;
  background-color: #2e2e2e;
  border-radius: 5px;
  width: 100vw;
  height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input input[type="text"] {
  width: 80vw;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.chat-input input[type="text"]:focus {
  border-color: #00bcd4;
  outline: none;
}

/* ================================
   CODE DUMP MAIN
   ================================ */

.codedumpmain {
  max-width: 80%;
  margin: 2rem auto 1rem;
  padding: 1.25rem;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: #000;
  text-align: center;
}

.codedumpmain h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.codedumpmain h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.codedumpmain h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}/* ================================
   CODE VIEW & LINE NUMBERS
   ================================ */

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2.5rem;
  color: #00bcd4;
}

header p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 10px;
}

.code-view-container {
  background-color: #292929;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.code-display {
  background-color: #1a1a1a;
  color: #00ffae;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-size: 1rem;
  font-family: monospace;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-with-line-numbers {
  position: relative;
  display: flex;
  font-family: monospace;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 5px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #1a1a1a;
}

.line-number {
  display: inline-block;
  text-align: right;
  color: #aaa;
  -webkit-user-select: none;
  user-select: none;
  background-color: #1a1a1a;
}

.code-content {
  flex-grow: 1;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-line;
  word-wrap: break-word;
}

code {
  display: block;
  text-align: left;
}

.suggestions-container {
  margin-top: 20px;
  padding: 10px;
  background-color: #333;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.suggestions-container h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.suggestions {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 5px;
  background-color: #1a1a1a;
  font-size: 0.7rem;
}

.suggestion {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #292929;
  border-radius: 5px;
  border: 1px solid #444;
  color: #fff;
}

.new-suggestion {
  margin-top: 20px;
  padding: 10px;
  background-color: #4caf50;
  border-radius: 5px;
  color: #fff;
}

.code-suggestion-form {
  margin-top: 20px;
  text-align: left;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

.suggestion-input {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #292929;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.suggestion-input:focus {
  border-color: #00bcd4;
  outline: 0;
}

.timer-container {
  text-align: center;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  color: #666;
}

#timer-display {
  color: #4caf50;
  font-weight: bold;
}

.share-container {
  margin-top: 20px;
  text-align: center;
  background-color: #292929;
  padding: 10px;
  border-radius: 5px;
}

.share-container a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: bold;
}

.share-container a:hover {
  color: #0097a7;
  text-decoration: underline;
}

/* ================================
 ABOUT PAGE FEATURES
 ================================ */
 .features {
  color: #00bcd4;
  font-size: 1.5rem;
 }
 .feature-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item {
  margin-bottom: 2.5rem;
}

.feature-item h3 {
  margin: 1rem;
  text-align: center;
}

.feature-item p {
  margin-left: 1rem;
  text-align: left;
  color: #fff;
}
/* ================================
 NOTIFICATION & ERROR
 ================================ */
.notification {
  background-color: #ff9800;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  margin: 20px auto;
  max-width: 80%;
  font-size: 1rem;
}

.error {
  color: #f44336;
  background-color: #ffebee;
  padding: 10px;
  border: 1px solid #f44336;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
}

/* ================================
   COOKIE WARNING
   ================================ */
.cookie-warning {
  padding: 1rem;
  background-color: #444;
  color: #fff;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  border-radius: 5px;
  display: none;
}

.cookie-warning button {
  margin-left: 10px;
  background-color: #00bcd4;
  color: #fff;
  border: 0;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-warning button:hover {
  background-color: #0097a7;
}

.cookie-warning-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: black;
}

.cookie-warning-box .inner {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  width: 80%;
  margin: 0 auto;
}

.cookie-warning-box button {
  background-color: #4caf50;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.cookie-warning-box button:hover {
  background-color: #3e8e41;
}

.cookie-warning-box .decline-cookie {
  background-color: #ff69b4;
}

.cookie-warning-box .decline-cookie:hover {
  background-color: #ff33a6;
}

.cookie-warning-box .no-cookie {
  background-color: #00bcd4;
}

.cookie-warning-box .no-cookie:hover {
  background-color: #089caf;
}
/* ================================
   FOOTER
   ================================ */
.site-footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background-color: rgba(229, 229, 229, 0.2);
  font-size: small;
  color: #fff;
  margin-bottom: 0;
}
.site-footer-link {
  color: rgba(7,255,232,0.83);
}

.site-footer-link:hover {
  text-decoration: underline;
  color: #000;
}

/* ================================
   IMAGE LOGO
   ================================ */

.imgLogo {
  width: 25px;
  object-fit: cover;
  cursor: pointer;
  animation: spin 5s linear infinite;
  padding: 3px;
}

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

