body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
}
footer {
  text-align: center;
  margin-top: 40px;
}
/*--------------------------------------------------------------------*/
.container {
  display: flex;
  min-height: 100vh;
}
/*--------------------------------------------------------------------*/
.sidebar {
  background: #1864b1;
  color: #fff;
  width: 300px;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}/*Sidebar stuff */
/*--------------------------------------------------------------------*/
.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 20px;
}/*Profile image stuff */
/*--------------------------------------------------------------------*/
.sidebar h2, .sidebar h3 {
  margin: 10px 0 5px 0;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.main-content {
  background: #fff;
  flex: 1;
  padding: 40px;
  box-sizing: border-box;
  color: #000000;
}

.top-banner {
  margin-bottom: 20px;
}
.top-banner h1 {
  margin-left: 80px; /* Adjust value as needed */
}
/*---------------------------------------------------------------*/
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
  margin-top: 0;
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 10;
}
.nav-links a {
  background: #1864b1;
  color: #fff;
  padding: 10px 28px;
  text-decoration: none;
  font-weight: normal;
  border: none;
  border-right: 2px solid #fff;
  transition: background 0.2s;
  font-family: Arial, sans-serif;
  font-size: 1em;
  display: block;
}
.nav-links a:last-child {
  border-right: none;
}
.nav-links a:hover {
  background: #29434e;
}
/*------------------------------table--------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  border: 1px solid #1864b1;
  padding: 8px 12px;
  text-align: left;
}
th {
  background: #1864b1;
  color: #fff;
}
/*------------------------------Index page splitting--------------------------------------*/
.main-grid {
  display: grid;
  grid-template-areas:
    "photos info"
    "explanation more";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 300px 150px;
  gap: 30px;
  max-width: 1000px;
  margin: 100px auto 0 auto;
  padding: 20px;
  margin-top: 30px; /* Lower value moves it up */
}
button,
input[type="submit"] {
  font-size: 0.95em;
  padding: 6px 14px;
  border-radius: 5px;
  margin: 4px 0;
  min-width: 0;
  min-height: 0;
}
.main-grid {
  gap: 14px; /* was 30px, now less */
}

form,
#colorBtn,
#moveBtn,
#switchStyleBtn {
  margin-bottom: 2px;
}

form label,
form input {
  margin-bottom: 4px;
}
.photos,
.info {
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.photos {
  grid-area: photos;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  background: #e3ecef;
  padding: 15px;
  border-radius: 8px;
  align-items: stretch;
  height: 100%;
}

.photos > div {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
}
.photos img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.info {
  grid-area: info;
  background: #e3ecef;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.explanation {
  grid-area: explanation;
  background: #e3ecef;
  padding: 15px;
  border-radius: 8px;
}

.more {
  grid-area: more;
  background: #e3ecef;
  padding: 15px;
  border-radius: 8px;
}
.more p {
  display: flex;
  align-items: center;
  gap: 150px; /* Adjust spacing between icons */
  margin: 0;
}
.more img {
  width: 32px;
  height: 32px;
  margin-right: 0; /* Remove the large margin */
  vertical-align: middle;
}
.more img:hover {
  transform: scale(1.15);
}

/* ---------------------------------- MOBILE LAYOUT --------------------------------- */
@media (max-width: 700px) {
    .container {
    flex-direction: column;
    min-height: unset;
    width: 100vw;
    padding: 0;
  }

  .sidebar {
    width: 100vw;
    padding: 20px 10px;
    align-items: center;
    text-align: center;
    border-radius: 0;
    box-sizing: border-box;
  }

  .main-content {
    padding: 10px;
    width: 100vw;
    box-sizing: border-box;
  }

  .top-banner h1 {
    margin-left: 0;
    text-align: center;
    font-size: 1.3em;
  }
  .main-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    margin: 0;
    max-width: 100%;
  }

  .photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: auto;
    padding: 8px;
  }
  .photos > div {
    min-height: 80px;
  }
  .photos img {
    height: 100%;
    min-height: 60px;
  }

  .info, .explanation, .more {
    padding: 10px;
    border-radius: 6px;
    font-size: 1em;
  }

  .top-banner h1 {
    margin-left: 0;
    text-align: center;
    font-size: 1.4em;
  }

  .nav-links {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    top: unset;
    width: 100vw;
    background: #29434e;
    justify-content: space-around;
    z-index: 100;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  .nav-links a {
    border: none;
    border-right: none;
    border-bottom: none;
    font-size: 1em;
    padding: 12px 0;
    flex: 1 1 0;
    text-align: center;
    background: none;
  }
  .nav-links a:hover {
    background: #1864b1;
  }

  footer {
    margin-bottom: 60px; /* So it doesn't overlap nav bar */
  }
}
/* ------------------------------- DARK MODE ------------------------ */
@media (prefers-color-scheme: dark) {
  body {
    background: #181a1b;
    color: #f1f1f1;
  }
  .main-content,
  .info,
  .explanation,
  .more,
  .sidebar {
    background: #23272b;
    color: #f1f1f1;
  }
  .sidebar {
    background: #223355;
    color: #fff;
  }
  .nav-links {
    background: #222b38;
  }
  .nav-links a {
    background: #223355;
    color: #fff;
  }
  .nav-links a:hover {
    background: #1864b1;
  }
  table, th, td {
    background: #2e363e;
    color: #f1f1f1;
    border-color: #1864b1;
  }
  .photos {
    background: #2e363e;
  }
  .info {
    background: #2e363e;
  }
  .explanation{
    background: #2e363e;
  }
.more {
    background: #2e363e;
}
  footer {
    background: #2e363e;
    color: #f1f1f1;
  }
#moveBox {
  background: #A020F0; /* Change to your desired color */
}  
}
