html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.viewport-section,
#texture,
#buttons-viewport {
  max-width: 100%;
  overflow-x: clip; /* modern browsers support this better than hidden */
}


body {
  background-color: var(--blue);
  overflow-x: hidden;
  margin: 0;
}

body.at-bottom {
  background-color: var(--back); /* match footer bg */
}

/* Full viewport section */
.viewport-section {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--blue);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
#buttons-viewport {
  position: fixed;
  top: 0;
  background: none;
}
/* Global texture overrides */
#texture {
  background-image: url("/assets/textures/tf_rusted_copper_06.png") !important;
  mix-blend-mode: color-burn;
  position: absolute;
}

.button-texture {
  display: none !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Header container */
.header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  width: 100vw;
  position: fixed;
  top: -16px;
  z-index: 10;
}

#hidden-header {
  opacity: 0;
  z-index: 20;
}
#page-title {
  position: relative;
  top: 6.0px;
  right: 11.5px;
}
/* Main header text */
.header h1 {
  font-size: 6em;
  margin: 0;
  color: var(--white);
  position: relative;
  z-index: 10;
}
#erikA {
  top: -8px;
  left:-8px;
  position: relative;
}
/* Secondary header text */
.header h2 {
  font-size: 4em;
  margin: 0;
  color: var(--white);
  text-wrap: wrap;
  line-height: 0.85;
  padding-right: 30px;
  z-index: 10;
  position: relative;
}

.header h2:hover {
  cursor: pointer;
}

.Erik {
  position: relative;
  left: 0.7px;
}

/* Horizontal bars section */
#bars {
  position: fixed;
  top: 120px;
  left: 0;
  width: 100vw;
  height: 60px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  margin: 0;
}

#bar1 {
  height: 20%;
  background-color: var(--highlight);
}

#bar2 {
  height: 80%;
  background-color: var(--back);
}

/* Columns layout */
.columns {
  display: flex;
  /*! align-items: flex-end; */
  flex: 1;
  position: relative;
  overflow: visible;
  gap: 20px;
  flex-direction: row;
  justify-content: flex-end;
}

/* Button group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: calc(100vh - 180px);
  position: relative;
  top: 180px;
  align-items: center;
  z-index: 5;
  width: 40vw;
  padding: 2vh 0;
  box-sizing: border-box;
  /*! margin-right: 4vw; */
}

/* Buttons */
.columns a {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-color: var(--highlight);
  border-radius: 40px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, top 0.3s ease, left 0.3s ease;
  height: 60%;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.columns a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("/assets/textures/tf_rusted_copper_06.png") center/cover no-repeat fixed;
  mix-blend-mode: color-burn;
  opacity: 0.2 !important;;
  pointer-events: none;
  transform: none;
}

.columns a:hover {
  cursor: pointer;
  top: -.3vh;
  left: .3vh;
  box-shadow: -.3vh .3vh 0px rgba(148, 132, 155, 1);
  background-color: var(--white) !important;
  color: var(--highlight) !important;
}

/* Column button style */
.column-button {
  margin: auto;
  height: 60%;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4em;
  z-index: 5;
  box-shadow: 0px 0px 0px rgba(171, 218, 252, 1);
}

/* Image column */
.image-column {
  flex: 3;
  overflow: hidden;
  top: 60px;
  z-index: 1;
  isolation: isolate;
}

#main-image {
  position: absolute;
  bottom: 0;
  left: 9.5%;
  height: 94%;
  z-index: 1;
  isolation: isolate;
  transform: translateX(-20%);
}

@media (max-width: 564px) {
  h1 {
    display: none;
  }
  h2 {
    top: 17px;
  }
}
@media (max-width: 400px) {
  body{
    font-size: .7em
  }
  #page-title {
    top: 42.3px;
  }
  
}
