@import url("https://fonts.googleapis.com/css2?family=Lato:wght@500;600;700&family=Archivo:wght@500&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --palette-1: #002b36;
  --palette-2: #e8ddd0;
  --palette-3: #00594c;
  --black: #000;
  --font-text: "Archivo", sans-serif;
  --font-display: "Lato", sans-serif;
  --section-gap: 90px;
  --white: #fff;
}

body {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--palette-3);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 100px;
  background-color: rgba(0, 0, 0, 0.1);
}

a {
  color: var(--palette-3);
  font-weight: bold;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.flex {
  display: flex;
}

.mt-half {
  margin-top: 0.5rem;
}
.mr-q {
  margin-right: 0.25rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}

main,
.resume {
  padding: 20px;
}
main {
  justify-content: space-between;
  margin: 0 15px;
  gap: 15px;
}

::-webkit-scrollbar {
  display: none;
}

.back-btn-container {
  width: 5rem;
}

.back-btn {
  position: fixed;
}

.resume {
  width: 80%;
  min-height: 90vh;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  background-color: var(--white);
  overflow-y: scroll;
  border-radius: 10px;
}

.greet h2 {
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 0.5rem;
}

.text {
  line-height: 1.5rem;
  letter-spacing: 0.1px;
}

h3 {
  font-weight: 500;
}

.title {
  padding: 0 0 15px 0;
}

hr {
  margin-top: 15px;
}

.proj-link {
  display: inline-block;
}

.proj-link::before {
  display: inline-block;
  position: relative;
  content: "";
  height: 2px;
  width: 100%;
  background: var(--palette-3);
  top: 25px;
  left: 0;
  visibility: none;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.proj-link:hover::before {
  transform: scaleX(1);
  visibility: visible;
}

.btn {
  padding: 5px 9px;
  display: inline-block;
  margin: 5px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  border-radius: 7px;
}

.download button {
  background-color: var(--palette-1);
  color: var(--palette-2);
  box-sizing: content-box;
  width: max-content;
  padding: 10px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* For mobile devices */

@media screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  .resume {
    width: 100%;
  }

  .back-btn {
    position: relative;
    top: 0;
    left: 0;
  }

  main.flex {
    margin: 0;
    flex-direction: column;
  }

  .download {
    display: none;
  }
}
