@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Styles */
/* Settings */
:root {
  --background-color: #FFFFFF;
  --accent-color: #abc8ed;
  --shush: rgba(61, 153, 112, 0.5);
  --nav-color: #1E1E1E;
  --second-color: #393939;
  --third-color: #000000;
  --footer-color: #f1f1f1;;
  --main-font: 'Work Sans';
  --font-fallback: Arial, Helvetica, sans-serif;
}

/* Selection Colour */
::selection {
  color: var(--background-color);
  background: var(--accent-color);
}

::-moz-selection {
  color: var(--background-color);
  background: var(--accent-color);
}

/* Resetting Everything */
* {
  padding: 0;
  margin: 0;
  font-family: var(--main-font), var(--font-fallback);
}

body {
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* General Adjustments */
h1 {
  font-size: 78px;
  font-weight: bold;
  color: var(--second-color);
}

h2 {
  font-size: 64px;
  color: var(--second-color);
}

h3 {
  font-size: 48px;
  color: var(--second-color);
}

h4 {
  font-size: 38px;
  font-weight: normal;
  color: var(--accent-color);
}

h5 {
  font-size: 24px;
  font-weight: normal;
  color: var(--third-color);
}

p {
  font-size: 18px;
}

/* Button  */
button{
  background-color: var(--second-color);
  color: var(--background-color);
  cursor: pointer;
  font-weight: normal;
  border-radius: 12px;
  font-size: 18px;
  line-height: 16px;
  padding: 2px 16px;
  height: 38px;
  border: none;
  transition: background-color 0.3s ease;

}

button:hover{
  background-color: var(--accent-color);
  color: var(--second-color);
}

/* Navigation Bar */
.nav {
  width: 80%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  position: relative;
  margin: 0 auto;
}

nav {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.links-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

nav a {
  height: 100%;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--nav-color);
  font-size: 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

nav a:hover {
  color: var(--accent-color);
}

nav .home-link {
  margin-right: auto;
}

#sidebar-active {
  display: none;
}

.open-sidebar-button {
  display: none;
}

.close-sidebar-button {
  display: none;
}

@media (max-width: 768px) {
  .nav {
      justify-content: space-between;
  }

  .open-sidebar-button {
      padding: 20px;
      display: block;
      position: absolute;
      right: 20px;
  }

  .links-container {
      flex-direction: column;
      align-items: flex-start;
      position: fixed;
      top: 0;
      right: -80%;
      z-index: 10;
      width: 70%;
      height: 100%;
      background-color: var(--second-color);
      box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
      transition: 0.5s ease-out;
      padding-top: 20px;
  }

  nav a {
      box-sizing: border-box;
      height: auto;
      color: var(--background-color);
      width: 100%;
      padding: 20px 30px;
      justify-content: flex-start;
  }

  #current {
    color: var(--accent-color);
  }

  .close-sidebar-button {
      padding: 20px;
      display: block;
  }

  #sidebar-active:checked ~ .links-container {
      right: 0;
  }

  #sidebar-active:checked ~ #overlay {
      height: 100%;
      width: 100%;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9;
      background-color: rgba(0, 0, 0, 0.5); /* Optional: overlay background */
  }
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--footer-color);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: 18px;
}

.footer ul li {
  margin-right: 20px;
}

.footer ul li:last-child {
  margin-right: 0;
}

.footer a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.footer a:hover {
  color: var(--accent-color);
}

.social-links {
  margin-right: 100px;
}

.footer-message {
  text-align: center;
  width: 100%;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    margin-right: 0;
  }
}
