/* ! LANDING PAGE */
html {
  height: 100%;
  font-family: "Pixelify Sans", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
}

main {
  width: 90%;
  max-width: 90%;
  padding: 20px;
  text-align: center;
  margin: 0 auto;
}

h1,
h2,
.subtitle {
  color: #ffffff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0);
  font-size: xx-large;
  margin-bottom: 40px;
}

/* --- Project Card Styling --- */
.card-grid {
  display: grid;
  gap: 50px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background-color: rgba(196, 238, 203, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.project-card:hover {
  /* Hover effect to make them feel interactive */
  transform: translateY(-5px);
  background-color: rgba(229, 255, 225, 0.9);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0);
  font-size: x-large;
  margin-top: 0;
}

.project-card p {
  flex-grow: 1;
  font-size: large;
  color: #2d2d2d;
}

.view-link {
  font-weight: bold;
  font-size: large;
  color: #28a745;
  text-shadow: 0px 1px 1px rgb(174, 238, 194);
  margin-top: 15px;
}

.background {
  width: 100%;
  min-height: 100vh;
  margin: 0%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg1 {
  background-image: url("/assets/bg_image_1.png");
}

.bg2 {
  background-image: url("/assets/bg_image_2.png");
}

.bg3 {
  background-image: url("/assets/bg_image_3.png");
}

.bg4 {
  background-image: url("/assets/bg_image_4.png");
}

/* ? NAV-BAR - W3 School: https://www.w3schools.com/howto/howto_js_topnav.asp */

.topnav {
  position: sticky;
  top: 0;
  background: linear-gradient(
    190deg,
    rgba(66, 103, 51, 0.5) 0%,
    rgba(16, 81, 64, 0.55) 100%
  );
  backdrop-filter: blur(4px);
  box-shadow: #021602 0px 4px 6px -1px;
  overflow: hidden;
  text-align: center;
  border-radius: 10px;
  margin: 4px;
}

.topnav a {
  display: inline-block;
  color: #f2f2f2;
  text-align: center;
  padding: 15px 18px;
  margin: 8px 6px;
  /* Remove underline from links */
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  border-radius: 8px; /* rounded corners */
  box-shadow: #0b2e12 0px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #3d883e;
  box-shadow: #0b2e12 0px 2px 4px -1px;
  color: #ffffff;
}

/* Add a color tso the active/current link */
.topnav a.active {
  background-color: #13ad41;
  color: white;
}

/* ! FORTUNE COOKIE STYLES */

.fortune-box {
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fortune-box.orange {
  background-color: rgba(255, 165, 0, 0.8);
  color: #581600;
  border: 5px solid #353600;
  font-size: 150%;
}

.fortune-box.green {
  background-color: rgba(144, 238, 144, 0.8);
  color: #173d00;
  border: 5px solid #002f00;
  font-size: 145%;
}

.fortune-box.blue {
  background-color: rgba(135, 206, 250, 0.8);
  color: #002174;
  border: 5px solid #10104b;
  font-size: 140%;
}

.fortune-box.red {
  background-color: rgba(250, 128, 114, 0.8);
  color: #121212;
  border: 5px solid #48272c;
  font-size: 135%;
}

.button {
  background-color: #dedede;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  margin-bottom: auto;
  font-size: large;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: #0b2e12 0px 2px 4px -1px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background-color: #add4a8;
  box-shadow: #0b2e12 0px 4px 6px -1px;
}

.color-btn {
  color: #fff;
  border: 3px solid rgb(3, 3, 3);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin: 0.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.color-btn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  filter: brightness(1.5);
}

.color-btn.grn {
  background: #28a745;
}
.color-btn.orng {
  background: #ff8c00;
}
.color-btn.bl {
  background: #007bff;
}
.color-btn.rd {
  background: #dc3545;
}

/* ! STOPWATCH STYLES */

.stopwatch-container {
  background-color: rgba(175, 237, 181, 0.9);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  margin: 50px auto;
  text-align: center;
}

.time-display {
  font-size: 300%;
  font-weight: bold;
  margin-bottom: 25px;
  color: #333;
  padding: 10px 0;
}

.controls {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.stopwatch-btn {
  color: white;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 400;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.stop {
  background-color: #dc3545;
}

.reset {
  background-color: #fc5800;
}

.start {
  background-color: #28a745;
}
/* ! TODO LIST STYLES */
.todo-section {
  background-color: rgba(122, 122, 122, 0.6);
  border-radius: 15px;
  padding: 25px;
  max-width: 90%;
  margin: 40px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

#todo-form {
  text-align: center;
}

#todo-form input[type="text"] {
  font-family: "Pixelify Sans", sans-serif;
  width: 90%;
  padding: 10px;
  font-size: 1.1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-right: 10px;
  display: inline-block;
  margin-left: 0;
}

#todo-form button {
  font-family: "Pixelify Sans", sans-serif;
  max-width: 100%;
  padding: 10px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#todo-form button:hover {
  background-color: #218838;
}

.task-buttons {
  align-content: left;
}
.task-buttons button {
  background-color: #5e5e5e;
  font-family: "Pixelify Sans", sans-serif;
  font-size: large;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-right: 20px;
  margin-top: 5px;
  border-radius: 5px;
  cursor: pointer;
  float: left;
}

.task-buttons button:hover {
  background-color: #414141;
}

.task-item {
  background-color: rgba(255, 255, 255, 0.3);
  font-size: large;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-item.completed span{
  text-decoration: line-through;
  color: #888;
}