@import url("https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap");

:root {
  font-size: 18px;
  font-family: "Oxygen", sans-serif;

  --solid-col: #fff;
  --bg-col: #eee;
  --text-col: #000;
  --text-col-solid: #000;
  --secondary-text-col: #333;
  --accent1-col: #E02C3B;
  --accent2-col: #39FF14;
  --accent3-col: #2B90D9;
  --overlay-col: #bbb;

    --line-col: #000;
    --dot-col: rgba(0, 0, 0, 0.1);
}

.darkmode {
    --solid-col: #000;
    --bg-col: #000;
  --text-col: rgba(255, 255, 255, 87%);
  --text-col-solid: rgba(255, 255, 255);
  --secondary-text-col: #FFD700;
  --accent1-col: #E02C3B;
  --accent2-col: #39FF14;
  --accent3-col: #2B90D9;
  --overlay-col: #333333;

  --line-col: #ccc;
  --dot-col: rgba(255, 255, 255, 0.1);
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-col);
  color: var(--text-col);
}

body {
  display: flex;
  flex-direction: row;
}

.logo {
  width: fit-content;
  padding: 1rem;
}

.logo h1 {
  margin: 0;
  color: black;
  font-weight: 700;
}

.logo p {
  margin: 0;
  color: black;
}

header {
  z-index: 1;
  position: fixed;
  width: 35%;
  max-width: 370px;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-right: solid 1px var(--line-col);
  background: linear-gradient(
      217deg,
      rgba(100, 255, 255),
      rgba(255, 0, 0, 0) 70.71%
    ),
    linear-gradient(127deg, rgba(0, 255, 0, 0.8), rgba(0, 255, 0, 0) 70.71%),
    linear-gradient(336deg, rgba(255, 100, 100, 0.8), rgba(0, 0, 255, 0) 70.71%);
}

header > a {
  width: fit-content;
  text-decoration: none;
}

header h1 {
  font-weight: 300;
}

header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-position: 16px 16px;
  background-size: 16px 16px;
  pointer-events: none;
}

main {
  position: relative;
  margin-left: 35%;
}

#course-btn {
  width: 240px;
  margin: 1rem 0;

  display: block;
  background-color: black;
  color: whitesmoke;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1.1rem;
  padding: 1.2rem 2rem;
  padding-left: 1rem;
  text-decoration: none;
  transition: all 200ms ease-out;

  box-shadow: 5px 5px 8px 8px #0003;
}

#course-btn:hover {
  padding-left: 2rem;
  outline: white solid 2px;
  box-shadow: 0px 0px 28px 28px rgba(100, 255, 255, 0.6);
}

/*Apply adjustments for mobile*/
@media screen and (max-width: 850px) {
  body {
    flex-direction: column;
  }

  header {
    min-height: 80px;
    min-width: 100%;
    border: none;
    border-bottom: solid 1px var(--line-col);

    height: auto;
    position: relative;
  }

  main {
    margin-left: auto;
    width: 100%;
    height: auto;
  }
}
