/* Colors and themes */
:root {
  --bg-light: #fdfdff;
  --color-light: #1C1C1D;
  --bg-dark: #393d3f;
  --color-dark: #fdfdff;
  --color-link-light: #ce645f;
  --color-link-dark: #e08f8b;
  --color-link-hover-light: #81403a;
  --color-link-hover-dark: #fdc7c4;
}
.latex-light-auto {
  background-color: var(--bg-light);
  color: var(--color-light);
}
.latex-light-auto a {
  color: var(--color-link-light) !important;
}
@media (hover: hover) and (pointer: fine) {
  .latex-light-auto a:hover {
    color: var(--color-link-hover-light) !important;
  }
}
.latex-dark-auto {
  background-color: var(--bg-dark);
  color: var(--color-dark);
}
.latex-dark-auto a {
  color: var(--color-link-dark) !important;
}
@media (hover: hover) and (pointer: fine) {
  .latex-dark-auto a:hover {
    color: var(--color-link-hover-dark) !important;
  }
}

/* Element styles */
*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 0.975em !important;
  hyphens: manual;
}
body {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
a {
  color: var(--color-link) !important;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--color-link-hover) !important;
  }
}
a:focus,
a:active {
  outline: none;
  box-shadow: none;
}
ul {
  margin: 5px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
hr {
  border: none;
  height: 0.5px;
  background-color: currentColor;
}

/* Main containert */
.container {
  display: flex;
}

/* Left column (profile and contact) styles */
.col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}
.profile-name {
  font-size: 1.75em;
  margin-top: 12.5px;
  margin-bottom: 5px;
  width: 220px;
}
.contact-info,
.contact-info * {
  width: 220px;
  text-align: center;
  margin: 0px !important;
  padding: 0px !important;
}
.contact-info a {
  color: inherit;
}

/* Right column (main content) styles */
.col-right {
  width: 100%;
}

/* Card styles */
.top-card {
  display: flex;
  flex-direction: column;
}
.card-title {
  margin-top: 30px;
}

/* News styles */
.news-year {
  margin-bottom: 5px;
}
.news-year:last-child {
  margin-bottom: 0;
}
.news-year-heading {
  margin: 15px 0 10px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: currentColor;
  border-bottom: 1px solid;
  padding-bottom: 5px;
}
.latex-light-auto .news-year-heading {
  border-bottom-color: #e0e0e0;
}
.latex-dark-auto .news-year-heading {
  border-bottom-color: #555;
}
.news-list {
  margin: 10px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style-type: disc;
}
.news-list li {
  line-height: 1.5;
  margin: 0;
}

/* Project styles */
.project {
  display: flex;
  flex-direction: column;
  margin: 15px 0px;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.project-title {
  margin: 0px;
  font-size: 1.25em;
  font-weight: 600;
  flex: 1;
}
.project-subtitle {
  margin: 0px;
  font-size: 0.9em;
  font-weight: 300;
  white-space: nowrap;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0px 0px 12px 0px;
}
.skill-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.7em !important;
  font-weight: 500;
  border: 1px solid;
  transition: all 0.15s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .skill-tag:hover {
    transform: translateY(-2px);
  }
}
.latex-light-auto .skill-tag {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  color: #555;
}
@media (hover: hover) and (pointer: fine) {
  .latex-light-auto .skill-tag:hover {
    background-color: #e8e8e8 !important;
    border-color: #b8b8b8 !important;
    cursor: pointer;
  }
}
.latex-dark-auto .skill-tag {
  background-color: #4a4a4a;
  border-color: #606060;
  color: #e0e0e0;
}
@media (hover: hover) and (pointer: fine) {
  .latex-dark-auto .skill-tag:hover {
    background-color: #555555 !important;
    border-color: #707070 !important;
    cursor: pointer;
  }
}
.project-desc {
  margin: 0px;
}
.more-projects {
  margin: 0px;
}

/* Class list */
.classes:last-child {
  margin-bottom: 0;
}
.class-heading {
  margin: 15px 0 10px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: currentColor;
  border-bottom: 1px solid;
  padding-bottom: 5px;
}
.latex-light-auto .class-heading {
  border-bottom-color: #e0e0e0;
}
.latex-dark-auto .class-heading {
  border-bottom-color: #555;
}
.class-list {
  padding-left: 20px;
  gap: 2px;
  display: flex;
  flex-direction: column;
  list-style-type: disc;
}
.class-list li {
  line-height: 1.5;
  margin: 0;
}
.class-list li b {
  font-weight: 600;
}
.class-list .course-code {
  font-family: monospace !important;
  font-size: 1.2em !important;
}

/* One column for tablet and mobile displays */
@media (max-width: 949px) {
  .container {
    width: 90vw !important;
    flex-direction: column;
    align-items: center !important;
  }
  .profile-image {
    width: 175px;
    margin-top: 20px;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .col-right {
    margin-top: 10px !important;
  }
}

/* Two columns for desktop displays */
@media (min-width: 950px) {
  body {
    max-width: 1000px !important;
  }
  .container {
    width: 900px;
    flex-direction: row;
  }
  .col-left {
    position: fixed;
    top: 35px;
    left: calc(50% - 450px);
    width: 220px;
  }
  .col-right {
    margin-left: 275px;
    margin-top: 55px !important;
    width: calc(100% - 275px);
  }
  .profile {
    align-self: flex-start;
  }
  .profile-image {
    margin-top: 70px;
    align-self: flex-start;
  }
}

/* Theme toggling button */
.btn {
  position: fixed !important;
  border: none;
  border-radius: 100%;
  padding: 10px;
  box-shadow: none;
  height: 55px;
}
.btn:active {
  box-shadow: none;
  outline: none;
}
.btn-light {
  background-color: var(--bg-light);
  color: var(--color-light);
  transition: 0.15s ease-in background-color;
}
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover {
    cursor: pointer;
    background-color: #dddcda;
  }
}
.btn-dark {
  background-color: var(--bg-dark);
  color: var(--color-dark);
  transition: 0.15s ease-in background-color;
}
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover {
    cursor: pointer;
    background-color: #54565a;
  }
}
#toggle-theme {
  position: absolute;
  top: 10px;
  right: 10px;
}
