/* Variables */

:root {
  --background: #fff;
  --text: #000;
  --accent: #fff;
  --accent2: #1fc0ff;
  --accent3: #fff;
}

/* text selection */

::selection {
  background-color: #1fc0ff;
  color: var(--accent);
}

/* base html */

html {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
}

/* navbar */

.nav {
  position: fixed;
  display: block;
  left: 0;
  right: 0;
  top: 0;
  height: fit-content;
  background-color: rgba(31, 192, 255, 0.5);
  z-index: 1;
  backdrop-filter: blur(2px);
  padding: 20px;
}

.current {
  color: var(--accent);
}

.nav li {
  float: left;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li a {
  display: block;
  color: var(--text);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 24px;
  border: 0;
}

li a:hover {
  text-decoration: underline;
  border: 0;
}

/* text */

main {
  margin: 150px;
}

.main {
  color: var(--text);
  font-size: 24px;
  text-align: center;
  padding: 100px;
}

.table {
  color: var(--text);
  font-size: 24px;
  padding: 100px;
}

/* columns */

.cols {
  column-count: 3;
  /* column-fill: auto; */
}

/* background */

.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, rgb(255, 255, 255) 50%, rgb(0, 183, 255) 50%);
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: fixed;
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

/* links */

.link {
  text-decoration: underline;
  color: var(--text);
}

/* images */

.home img {
  width: 20vw;
}

/* animate bg */


/* Form */
.contact form {
  max-width: 420px;
  margin: 50px auto;
  margin-top: 200px;
  padding: 20px;
}

.contact .input {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: transparent;
  border: 2px solid #000;
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.contact textarea {
  height: 150px;
  resize: vertical;
}

.contact [type="submit"] {
  width: 100%;
  background: #000;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: all 0.3s;
  margin-top: -4px;
}

.contact [type="submit"]:hover {
  background: #fff;
  color: #000;
}

/* background animations */

@keyframes slide {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(25%);
  }
}

/* media queries */

@media only screen and (min-width: 1001px) {
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row dense;
    top: 100px;
  }

  img {
    padding: 100px;
    width: 40vw;
  }

  .left {
    grid-column-start: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right {
    grid-column-start: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* table styling */

tr {
  padding-bottom: 10px;
}

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

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

th {
  text-align: left;
  font-weight: 700;
}

@media (min-width: 460px) {
  td {
    text-align: left;
  }
}

/* styling opdrachten */
.opdrachten {
  background-color: darkblue;
  margin: 120px 40px 0 40px;
}

/* opdracht 1 css */

.opdr1 table {
  background-color: orange;
  border-collapse: collapse;
  font-weight: bold;
}

.opdr1 tr,
.opdr1 td,
.opdr1 th {
  border: 2px solid blue;
}

.opdr1 td {
  width: 50%;
}

/* opdracht 2 */
.opdr2 {
  overflow: scroll;
  border: cyan 2px solid;
  color: cyan;
  background-color: white;
  height: 100px;
}

/* opdracht 3 */
.opdr3 {
  color: white;
  text-shadow: 1px 1px red;
  letter-spacing: 2px;
  left: 35%;
}

/* opdracht 4 */
.opdr4 {
  background-color: orange;
}

.opdr4-dl>dd:nth-child(2) {
  text-align: right;
}

.opdr4-dl>dd:nth-child(4) {
  background-color: white;
}

.opdr4-dl>dd:nth-child(6) {
  color: blue;
}

.opdr4-dl>dd:nth-child(8) {
  border-style: dotted solid dotted solid;
}

.opdr4-dl>dd:nth-child(10) {
  text-transform: uppercase;
}