/* Initial stuff */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");
@import url("https://site-assets.fontawesome.com/releases/v6.4.0/css/all.css");

:root {
  font-size: 14px;
  --padding: 1rem;
}

* {
  box-sizing: border-box;
}

*:not(input) {
  user-select: none;
  -webkit-user-select: none;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  background: darkseagreen;
  -webkit-text-size-adjust: 100%;
  opacity: 0;
  transition: opacity 300ms;
  text-align: center;
  --bg: #fff4;
  --bg2: #fff2;
  --border: #fff3;
  color: #444;
}

body:not(.scrolled) {
  overflow: hidden;
}

body.loaded {
  opacity: 1;
}

body.dark {
  --bg: #0004;
  --bg2: #0002;
  --border: #0003;
  color: #ccc;
  background: #4e674e;
}

/* body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(45deg, #75bfdb, #e1b7cd) fixed;
  pointer-events: none;
}

body.dark::before {
  background: linear-gradient(45deg, #1c556b, #6e378a) fixed;
} */

h1,
p {
  margin: 0;
}

/* External container */
.topPart {
  margin: 0 auto;
  width: calc(100% - var(--padding) * 2);
  max-width: 750px;
  background: var(--bg);
  padding: var(--padding);
  border-radius: 2.85rem;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--padding);
  opacity: 0;
  transition: transform 300ms, margin-top 300ms;
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: blur(1rem);
  margin-top: 50vh;
  transform: translateY(-00%);
  /* background: linear-gradient(45deg, #75bfdb, #e1b7cd) fixed; */
}

body.loaded .topPart {
  opacity: 1;
  transform: translateY(-50%);
}

body.scrolled .topPart {
  transform: translateY(0);
  margin-top: 2rem
}

.topPart h1 {
  display: flex;
}

.profile {
  width: 16rem;
  height: 16rem;
  font-size: 10rem;
  padding: 2rem;
  background: url("/files/images/profile.jpeg") center;
  background-size: cover;
  border-radius: 2rem;
  transition: border-radius 500ms, height 500ms, width 500ms;
}

.headerWrap {
  position: relative;
  min-width: 200px;
  flex: 1;
  min-height: 0;
  transition: min-height 500ms;
  display: flex;
  align-items: center;
}

.header {
  position: absolute;
  width: 100%;
  top: 1rem;
  left: 0.5rem;
  font-size: 1.5rem;
  text-align: left;
  transition: top 500ms, transform 500ms, margin-bottom 500ms;
}

.header p {
  margin: 0.5rem 0;
  line-height: 1.75;
  transition: opacity 500ms;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--padding) / 2);
  justify-content: center;
  position: absolute;
  right: 0;
  bottom: 0;
  transition: bottom 500ms, transform 500ms;
}

.icons>i {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background 100ms, color 100ms, font-size 100ms;
}

.icons>i:hover {
  background: var(--color);
  color: white;
  border: none;
  /* font-size: 2rem; */
}

/* Button */
button {
  background: var(--bg);
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
  width: calc(100% - 2rem);
  font-size: 1.5rem;
  font-family: inherit;
  color: inherit;
  max-width: 300px;
  cursor: pointer;
}

.list>h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0.5rem auto;
  text-align: left;
  max-width: 750px;
  width: calc(100% - 2rem);
}

body:not(.scrolled) .list {
  opacity: 0;
  visibility: hidden;
}

/* card */
.card {
  display: block;
  text-decoration: none;
  margin: 1rem auto;
  background: var(--bg);
  border-radius: 2.85rem;
  padding: calc(2.85rem / 2);
  border: 1px solid var(--border);
  width: calc(100% - 2rem);
  font-size: 1.5rem;
  font-family: inherit;
  color: inherit;
  max-width: 750px;
  text-align: left;
  position: relative;

  h1 {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 0rem;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 1.2rem;
}

/* Screen size adjustments */
@media (min-width: 701px) {
  .mobile {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    font-size: 12px;
    --padding: 1rem;
  }

  .desktop {
    display: none;
  }

  main {
    border-radius: 30px;
  }

  .headerWrap {
    min-height: 200px;
  }

  .topPart {
    margin-top: calc(50vh - 2rem);
  }

  .profile {
    width: 100%;
    height: 20rem;
  }

  .header {
    display: block;
    margin-bottom: var(--padding);
  }

  /* end simulate hover */
  .card i.fa-arrow-up-right-from-square {
    margin: .5rem;
  }
}

button.scroll {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

body.scrolled .scroll {
  display: none;
}