:root {
  --primary-color: #595959;
  --secondary-color: #2c2c2c;
  --background-color: #fefbf1;
  --button-focus: #fffffd;
}

html {
  height: 100%;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

body {
  background-image: url(./images/talie-site-bg-new.jpg);
  background-position: center;
  background-size: cover;
  white-space: none;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

#header-container {
  display: grid;
  grid: 100% / 1fr 1fr 1fr;
  width: 100%;
  height: 12.5%;
}

#back-container {
  grid-column: 1 / 2;
  display: flex;
  height: auto;
}

#back-contents-container {
  align-items: start;
}

#back-contents-container a {
  display: flex;
  color: var(--secondary-color);
}

#back {
  display: inline-block;
  margin-left: 0.2rem;
}

#logo-container {
  grid-column: 2 / 3;
  height: auto;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

#logo-img {
  width: auto;
  height: 100%;
  transition: opacity 300ms ease-out;
}

#logo-img:hover {
  opacity: 0.5;
  transition: opacity 300ms ease-out;
  cursor: pointer;
}

.icons-group {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: end;
  align-content: end;
}

.icon {
  height: 20px;
  width: 20px;
  margin-left: 18px;
}

.icon-svg {
  height: 100%;
  width: auto;
  opacity: 1;
  transition: opacity 300ms ease-out;
}

.icon-svg:hover {
  opacity: 0.5;
  transition: opacity 300ms ease-out;
}

#fb-icon {
  margin-left: 0;
}

#main-container {
  width: 100%;
  height: 87.5%;
  display: flex;
  justify-content: center;
}

#grid-container {
  display: grid;
  grid: auto / 1fr 2fr;
  width: 75%;
  max-height: 100%;
  column-gap: 2rem;
}

#profile-container {
  grid-column: 1 / 2;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
}

#img-box {
  height: auto;
  max-width: 100%;
}

#pfp {
  width: 100%;
}

#info-container {
  grid-column: 2 / 3;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}

#info-container h1 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
  #header-container {
    display: grid;
    grid: auto / 1fr;
    width: 100%;
    row-gap: 1.25rem;
    margin-bottom: 2.5rem;
    height: auto;
  }

  #back-container {
    grid-column: 1 / 2;
    display: flex;
    height: auto;
    align-items: center;
    margin-left: 0;
  }

  #back-contents-container {
    display: inline-flex;
    align-items: center;
  }

  #back-contents-container a {
    color: var(--secondary-color);
    margin-left: 2px;
    height: auto;
    width: auto;
  }

  #logo-container {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #logo-img {
    width: 70%;
    height: auto;
  }

  .icons-group {
    justify-content: space-between;
  }

  .icon {
    margin-left: 0;
  }

  #main-container {
    height: auto;
  }

  #grid-container {
    grid: auto / 1fr;
    width: 100%;
    row-gap: 1.25rem;
    text-align: center;
  }

  #profile-container {
    grid-row: 1 / 2;
    flex-direction: row;
    justify-content: center;
    align-content: center;
  }

  #profile-container img {
    width: 60%;
  }

  #info-container {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    width: 80%;
    text-align: center;
    margin: 0 auto;
    line-height: 1.8rem;
  }
}
