* {
  margin: 0px;
  padding: 0px;
}

body {
  font-family: " Helvetica", sans-serif;
  background-color: white;
}

html {
  scroll-behavior: smooth;
}

.space {
  user-select: none;
}

.nav {
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  padding-block: 12px;
  padding-inline: 20px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
  margin: 0;
  position: relative;
  color: white;
  border-bottom: 2px solid black;
  transition: border-bottom 0.3s;
}

.nav-link::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  margin: 0;
  background-color: gold;
  transition: width 0.15s ease;
}

.nav-link:hover::after {
  width: 80%;
  background-color: gold;
  transition: width 0.2s ease;
}

h2 {
  text-align: center;
  margin-block: 20px;
}

.logo {
  margin-inline: 35px;
  height: 32px;
}

.logo img {
  height: 32px;
}

.logo2 {
  margin-inline: 35px;
  height: 32px;
}

.logo2 img {
  height: 32px;
}

.article {
  width: 65%;
  margin: auto;
  background-color: white;
}

h1 {
  padding-inline: 0;
  font-size: 40px;
  padding-block: 60px 40px;
}

.article p {
  padding: 20px;
  padding-inline: 0;
  font-size: 21px;
  line-height: 35px;
}

.article ul,
ol {
  padding-inline: 5%;
  font-size: 23px;
  line-height: 40px;
}

.article img {
  width: 70%;
  margin-inline: 15%;
}

.article figcaption {
  font-size: 17px;
  text-align: center;
  margin: 2%;
}

.article hr {
  width: 100%;
  margin-inline: 0;
  height: 7px;
  border: none;
  background: linear-gradient(to right, blue, red);
  border-radius: 20px;
}

a {
  color: black;
  text-decoration: underline;
}

.article table {
  margin: auto;
  border: 1px solid black;
  width: 88%;
  border-collapse: collapse;
  border-radius: 30px 30px 0 0;
  border: none;
}

.article th {
  font-size: 20px;
  padding: 2%;
  background-color: rgb(0, 0, 0);
  color: white;
}

.article td {
  font-size: 20px;
  padding-inline: 1.5%;
  line-height: 30px;
  padding-block: 3%;
}

.article tr:nth-of-type(even) {
  background-color: rgb(223, 223, 223);
  color: rgb(0, 0, 0);
}

.article tr:nth-of-type(odd) {
  background-color: rgb(247, 247, 247);
  color: rgb(0, 0, 0);
}

.article td:nth-of-type(odd) {
  text-align: center;
  width: 35%;
}

.author {
  padding-inline: 0;
  font-size: 20px;
  padding-block: 2%;
}

.date {
  color: rgb(71, 71, 71);
}

.buttons {
  padding-inline: 6%;
  padding-block: 7%;
  text-align: center;
}

.button {
  width: 20%;
  height: 50px;
  background-color: rgb(53, 137, 45);
  border: none;
  color: white;
  border-radius: 10px;
  font-size: 20px;
  margin-inline: 3%;
  transition: box-shadow 0.3s ease;
  box-shadow: 0px 0px 7px rgb(52, 52, 52);
  cursor: pointer;
}

.congratulate h1 {
    text-align: center;
    font-size: 35px;
    background-color: lightyellow;
    line-height: 56px;
}

.article:has(.congratulate) {
  margin-right: 0;
  margin-left: 20%;
  width: 80%;
  padding-inline: 0;
}

.congratulate p {
  padding-inline: 50px;
  font-size: 23px;
  line-height: 36.8px;
}

.button:last-of-type {
  background-color: rgb(69, 79, 181);
}

.button:hover {
  box-shadow: 0px 0px 15px rgb(52, 52, 52);
}

h2 {
  text-align: center;
  font-size: 30px;
  margin-block: 5%;
}

.footer {
  text-align: center;
  background-color: rgb(0, 0, 0);
  color: white;
  padding: 30px;
  width: 80%;
  margin-left: 20%;
}

::-webkit-scrollbar {
  width: 1vw;
}

::-webkit-scrollbar-thumb {
  width: 1vw;
  background-color: gray;
  border-radius: 5vw;
  border: 0.25vw solid white;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(63, 63, 63);
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::selection {
  background-color: rgba(168, 168, 168, 0.712);
}

p code {
  background-color: black;
  padding-block: 10px;
  padding-inline: 5px;
  font-size: 5px;
  line-height: 35px;
}

.article p code {
  font-size: 20px;
}

.article td a {
  text-decoration: none;
}

.article td a:hover {
  text-decoration: underline;
}

.article code {
  background-color: rgb(0, 0, 0);
  color: #d8ab06;
  padding: 15px;
  line-height: 25px;
  font-size: 20px;
  display: block;
}

.h1-example {
  padding-inline: 0;
  font-size: 2em;
  padding-block: 0px 0px;
}
.h2-example {
  padding-inline: 0;
  font-size: 1.5em;
  text-align: left;
  padding-block: 0px 0px;
  margin-block: 0;
}

.a-example {
  color: blue;
  text-decoration: underline;
}

.a-example:visited {
  color: purple;
}

.onetap {
  width: 100px;
  height: 100px;
  background-color: white;
  border: 1px solid black;
}

.wrapper {
  display: flex;
  flex-wrap: wrap;
}

.sidebar {
  width: 20%;
  float: left;
  background-color: rgb(52, 52, 52);
  color: white;
}

.article {
  width: 60%;
  margin-right: 10%;
  margin-left: 30%;
  float: right;
}

.sidebar li {
  padding-left: 10%;
  font-size: 16px;
  padding-block: 5%;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
}

.sidebar li:hover {
  background-color: rgb(69, 69, 69);
}

.sidebar h2 {
  padding-top: 5% !important;
  font-size: 25px;
  margin-block: 10px;
}

.side-wrapper {
  display: flex;
}

.select {
  background-color: black;
  border: none;
  outline: none;
  color: white;
  font-size: 18px;
  border-bottom: 2px solid black;
  font-weight: bold;
  appearance: none;
  padding-block: 12px;
  padding-inline: 20px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#cats {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 35px;
  width: 140px;
  border-radius: 0px 0px 10px 10px;
  background-color: black;
  padding-bottom: 10px;
  transition: display 0.3s ease;
}

.select:hover #cats {
  display: flex;
  box-shadow: 0px 10px 15px rgb(60, 60, 60);
}

#cats a {
  color: var(--text-color);
  text-decoration: none;
  padding-block: 10px;
  font-size: 18px;
  position: relative;
}

#cats a::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  margin: 0;
  background-color: gold;
  transition: width 0.15s ease;
}

#cats a:hover::after {
  width: 50%;
  background-color: gold;
  transition: width 0.2s ease;
}

.side {
  height: calc(100vh - 46.6px);
  overflow: auto;
  position: fixed;
}

.side::-webkit-scrollbar-track {
  background-color: rgb(52, 52, 52);
}

.side::-webkit-scrollbar-thumb {
  border: 0.25vw solid rgb(52, 52, 52);
  background-color: rgb(161, 161, 161);
}

.side::-webkit-scrollbar-thumb:hover {
  background-color: rgb(213, 213, 213);
}

.side::-webkit-scrollbar {
  width: 0.9vw;
}
