/* :root {
  --th-color: #0b5394;
  --td-color: #c4daed;
  --middle: #3d85c6;
  --dark: #073763;
  --td-hover: #fff2cc;
  --td-hover-a: #ffe599;
  --yellow: #ffd700;
} */

/* h3 {
  margin-top: 10px;
  font-size: 12pt;
} */

/* h2 {
  padding-top: 10px;
} */

html {
  min-height: 100%;
  scroll-behavior: smooth;

  /* font-family: "Roboto", sans-serif; */
}

body {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;

  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
}

pre {
  border-radius: 8px;
  padding: 1.5em;
}

pre > code {
  all: unset;
}

blockquote {
  margin: 0px;
  border-left: 4px solid var(--accent);
  padding: 0 0 0 20px;
  font-size: 1.333em;
}

hr {
  border: none;
  border-top: 1px solid rgb(var(--gray-light));
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  main {
    padding: 1em;
  }
}

.sr-only {
  position: absolute !important;
  margin: 0;
  border: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.topmenu {
  margin-top: 0px;
  margin-right: 0px;
  margin-left: 0px;
  background: var(--dark);
  padding: 0px 0px 0px 0px;
}

.topmenu,
.topmenu a,
.topmenu a:visited,
.topmenu a:active {
  padding: 0px 0px 0px 0px;
  color: var(--light-text);
  font-size: 14pt;
  text-decoration: none;
}

.topmenu-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  vertical-align: center;
  width: 100%;
  min-height: 56px;
}

.topmenu-wrap > div {
  float: left;
  margin-right: auto;
  margin-left: auto;
}
.topmenu-hide,
.topmenu-show {
  display: none;
  cursor: pointer;
}

.title {
  text-align: center;
}

.topmenu-icon,
.topmenu-icon-item {
  display: inline-block;
  width: 40px;
  height: 40px;

  vertical-align: middle;
  margin-right: 8px;
  /* background-color: #fff; */
  border-radius: 2px;
}
.center {
  text-align: center;
}

@media only screen and (max-width: 1200px) {
  .topmenu-item {
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10%;
    width: 80%;
    text-align: center;
  }
  /* .topmenu-hide {
    display: none;
  } */
  .topmenu-show {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
  }
  .topmenu-wrap.show .topmenu-item,
  .topmenu-wrap.show .topmenu-hide {
    display: block;
  }
  .topmenu-wrap.show .topmenu-item {
    width: 100%;
  }
  .topmenu-wrap.show .topmenu-show,
  .topmenu-wrap.show .topmenu-icon {
    display: none;
  }
}
@media only screen and (max-width: 450px) {
  .topmenu-show-icon {
    display: none;
  }
}

.logo-topmenu {
  vertical-align: middle;
  margin-right: 20px;
  width: 50px;
  height: 50px;
}

.section,
section {
  /*   background-color: var(--middle); */
  margin: 0 auto;
  margin-top: 20px;
  padding: 5px 0;
}

.stuff-only-link,
.stuff-only-link:visited,
.stuff-only-link:active,
.stuff-only-link:hover {
  color: #ff4800 !important;
}

.comment {
  font-size: var(--small);
}

.emphase {
  font-size: var(--h6);
}

.top-menu,
.top-menu:hover,
.top-menu:visited {
  float: right;
  margin-right: 0px;
  color: #ffffff;
  font-size: var(--h6);
}

footer {
  margin-top: 80px;
  background: var(--gray-light);
  padding: 50px 0;
  min-height: 250px;
  color: var(--text);
  text-align: center;
}

footer a:link,
footer a:visited,
footer a:active,
footer a:hover {
  text-decoration: underline;
}
footer > div {
  margin-top: 20px;
  margin-bottom: 20px;
}

#overview-poster-image {
  padding-right: 1em;
  width: 100%;
}

.content {
  margin: auto;
  margin-top: 20px;
  width: 80%;
  min-width: 500px;
  max-width: 1200px;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

table th {
  /*   background-color: ; */
  background-color: var(--primary);
  padding: 10px;
  color: var(--light-text);
  font-weight: normal;
}

table td {
  margin: 0;
  padding: 10px;
  text-align: center;
}

.td-left {
  padding-left: 10px;
  text-align: left;
}

table td.with-a {
  padding: 0px;
}

table td p {
  margin: 0;
  padding: 0;
}
table td a {
  display: inline-block;
  padding: 10px 0;
  width: 100%;
  height: 100%;
  /*   background-color: #eee; */
}
.inline-a {
  display: inline;
  padding: 0;
  margin: 0;
}

.inline-a:hover {
  text-decoration: underline;
}

tr:nth-child(even) {
  background-color: var(--secondary);
}
table tr:hover {
  background-color: var(--accent-200);
}
table td a,
table td a:link,
table td a:visited,
table td a:active,
table td a:hover {
  color: #000;
  text-decoration: none;
}
table td a:link:hover {
  background-color: var(--accent);
}
table.sortable th:hover {
  cursor: pointer;
  background-color: var(--accent);
  color: #000;
}

.note-image {
  display: inline-block;
  /* background-color: var(--dark); */
  /* padding: 0; */
  /* width: 25px; */
  /* height: 25px; */
}

.note-image:hover {
  /* background-color: transparent !important; */
  text-decoration: underline;
}

.row {
  display: flex;
}
.desktop {
  display: revert;
}
.mobile {
  display: none;
}
@media (max-width: 640px) {
  .content {
    width: 100%;
    min-width: 300px;
  }
  .mobile-vertical {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: mixed;
    -webkit-text-orientation: mixed;
    transform: rotate(180deg);
    width: fit-content;
    overflow: visible;
    /* transform-origin: center; */

    word-wrap: break-word; /* Older syntax */
    overflow-wrap: break-word; /* Standard syntax */
    white-space: nowrap; /* Ensures default text wrapping */
  }
  .row {
    display: inherit;
  }
  .desktop {
    display: none;
  }
  .mobile {
    display: revert;
  }
}

.team-img {
  vertical-align: bottom;
  height: 20px;
}
.team-name {
  display: inline;
}
.team-name-short {
  display: none;
}

.problem-line {
  margin: 10px 0;
}

.problem-line-number {
  display: inline-block;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
  margin-right: 10px;
  margin-left: 10px;
  border: 2px solid var(--dark);

  border-radius: 5px;
  background-color: var(--secondary);

  padding: 8px 5px 5px 5px;
  min-width: 30px;
  color: var(--text);
  text-align: center;
}

a .problem-line-number:hover {
  cursor: pointer;
  background-color: var(--primary);
  color: var(--light-text);
}

a.a-black,
a.a-black:link,
a.a-black:visited,
a.a-black:active,
a.a-black:hover {
  color: #000;
  text-decoration: none;
}

@media only screen and (max-width: 1200px) {
  .team-name {
    display: none;
  }
  /* .team-name:nth-child(2):nth-last-child(1) {
    display: inline;
  } */
  .team-name-short {
    display: inline;
  }
}

.btn {
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-right: 10px; /* Adds spacing between buttons */
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  width: fit-content;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--light-text);
}
.btn-primary:hover {
  background-color: var(--dark);
}
.btn-primary:active {
  background-color: var(--dark);
}

.btn-gray {
  background-color: var(--gray-dark);
  color: var(--light-text);
}
.btn-gray:hover {
  background-color: var(--accent);
}
.btn-gray:active {
  background-color: var(--accent);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text);
}
.btn-gray:hover {
  background-color: var(--accent-200);
}
.btn-gray:active {
  background-color: var(--accent-200);
}

.btn.subscribed {
  background-color: var(--accent);
  color: var(--text);
}
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
}

.success-message {
  width: fit-content;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  color: var(--dark);
}
.error-message {
  width: fit-content;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  color: var(--red);
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (max-width: 800px) {
  .info-container {
    flex-direction: column;
  }
  .info-left {
    width: 100%;
  }
}

.info-left {
  flex: 1;
  padding-right: 20px;
}

.info-photo img {
  border-radius: 50%;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
}
