html, body {
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #fefefe, #747474);
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

main {
    padding-left: 5em;
    padding-right: 5em;
}

header {
  padding: 20px;
  margin: 20px;
}

header p, header ul {
  text-align: left;
  color: black;
  font-size: 12px;
  padding-left: 56px;
}

p {
  text-align: center;
  color: white;
}

a {
  color: white;
}


header h1 {
  font-family: "DotGothic16", monospace;
  font-size: 3em;
  padding-left: 56px;
  color: #000000;
}

.tabs {
  font-family: "Courier New", monospace;
  margin: 20px;
}

.badge {
  color:#2A2531;
  font-size: 1em;
  background-color: #ccc;
  outline: 1px solid #333
}

[role="tablist"] {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  position: relative;
}

[role="tablist"] img {
  display: none;
}

[role="tab"],
[role="tab"]:focus,
[role="tab"]:hover {
  display: inline-block;
  position: relative;
  padding: 15px 30px;
  border: 3px solid #333;
  background-color: #f0f0f0;
  background-image: url('img/ink-blot.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  font-weight: bold;
  cursor: pointer;
  font-family: "DotGothic16", monospace;
  font-size: 18px;
  flex: 1;
  text-align: center;
}

[role="tab"]:hover {
  transform: scale(105%);
}

.tab-btn:focus {
    outline: 6px solid #77757B;
}

[role="tab"][aria-selected="true"] {
  background-color: #fff;
  border: 6px solid #77757B;
}

[role="tab"][aria-selected="false"] {
  background-color: #ddd;
}

[role="tab"] span.focus {
  display: block;
  margin: 1em 1em;
  padding: 0;
  background-color: #fff;
  width: auto;
}

[role="tab"]:hover span.focus,
[role="tab"]:focus span.focus,
[role="tab"]:active span.focus {
  padding: 0;
  border: none;
  border-radius: 0;
}

[role="tabpanel"] {
  background-color: #ffffff;
  border: 7px solid #77757B;
  padding: 0;
  margin: 0;
  min-height: 350px;
  width: 100%;
  overflow: auto;
}

[role="tabpanel"].is-hidden {
  display: none;
}

[role="tabpanel"] .container {
  background-color: #ffffff;
  padding: 0;
}

[role="tabpanel"] .container p, [role="tabpanel"] .container a {
  color: black;
}

[role="tabpanel"] .heading-container {
  background: linear-gradient(to right, #fefefe, #747474);
  padding: 1em 1em 0 1em;
  width: 100vw;
  border-bottom: 2px solid #666;
}

[role="tabpanel"] h2 {
  margin: 0;
  font-family: "DotGothic16", monospace;
  font-size: 2em;
  color: #333;
  font-weight: bold;
}

[role="tabpanel"] .columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  width: 100%;
}

[role="tabpanel"] .columns img {
  width: 40%;
  object-fit: cover;
  border-right: 3px solid #666;
}

[role="tabpanel"] .about {
  flex: 1;
  background-color: #f5f5f5;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

[role="tabpanel"] .about p {
  margin: 0 0 30px 0;
  font-family: "Courier New", monospace;
  font-size: 1em;
  text-align: start;
  color: #333;
}

[role="tabpanel"] button {
  background-color: #f5f5f5;
  border: 3px double #333;
  padding: 0;
  font-family: "Courier New", monospace;
  font-size: 16px;
  cursor: pointer;
  color: #333;
}

[role="tabpanel"] button:hover {
  background-color: #e0e0e0;
}

[role="tabpanel"] .about a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e6d9f0;
  border: 3px double #333;
  padding: .5em 2em;
  font-family: "Courier New", monospace;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}

[role="tabpanel"] .about a:hover,
[role="tabpanel"] .about a:focus {
  background-color: #f0e6f5;
  outline: 3px solid #77757B;
}

footer {
  background-color: #2A2531;
  color: white;
  padding: 20px;
  text-align: center;
  font-family: "Courier New", monospace;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 6em;
}

.project {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 20px;
  border: 2px solid #ccc;
  background-color: #fff;
}

.project img {
  max-height: 50vh;
  max-width: 50vh;
  margin-left: 20px;
  object-fit: cover;
}

.project p {
  text-align: left;
}

.project div {
  flex: 1;
}

.project h3:focus, .project h3:hover {
  transform: scale(105%);
}

footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  [role="tablist"] {
    flex-wrap: wrap;
    gap: 8px;
  }
  [role="tab"],
  [role="tab"]:focus,
  [role="tab"]:hover {
    min-width: 120px;
    flex: 1 1 45%;
    font-size: 16px;
    padding: 12px 10px;
  }
}

@media (max-width: 600px) {
  [role="tablist"] {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  [role="tab"],
  [role="tab"]:focus,
  [role="tab"]:hover {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    padding: 10px 6px;
  }
}

.tabs {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
[role="tablist"] {
  width: 100%;
  box-sizing: border-box;
}

#tabpanel-1 .columns {
  flex-direction: row;
  align-items: stretch;
}
#tabpanel-1 .columns img {
  width: 40%;
  min-width: 120px;
  max-width: 300px;
  border-right: 3px solid #666;
  border-bottom: none;
}
#tabpanel-1 .about {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #f5f5f5;
}
@media (max-width: 800px) {
  #tabpanel-1 .columns {
    flex-direction: column;
  }
  #tabpanel-1 .columns img {
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 3px solid #666;
  }
  #tabpanel-1 .about {
    align-items: center;
    padding: 20px;
  }
}

@media (max-width: 375px) {
  [role="tabpanel"] h2 {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1.1em;
    width: 200px;
  }
}
@media (max-width: 375px) {
  h1, h2, h3, h4, h5, h6, p, li, a, span, div {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 375px) {
  .project {
    flex-direction: column !important;
    align-items: center !important;
  }
  .project img {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 20px !important;
    object-fit: cover;
  }
}