/* -- root def -- */

:root {
  /* 1em = 16px */
  --content-width: 65rem;
  /* --image-width: 12.5rem; /* 200px */
  --image-width: 20vh; /* 200px */

  /* page variables */
  --color-primary: #2400ff; /* blue */
  --color-secondary: #fbff35; /* yellow */

  /* colours to store rainbow buttons */
  --rainbow-primary: #2400ff; /* blue */
  --rainbow-secondary: #fbff35; /* yellow */
  --hue: 0deg;
  --grayscale: 0;
  --brightness: 1;
  --top: 10vh;
  --border-radius: 40px;
  --round-radius: 9999px;

  --tablet: 35em; /* 560px */
  --desktop: 60em; /* 960 */
  --lg-desktop: 90em; /* 1440px */
}

/* tablet */
@media (min-width: 35em) {
  :root {
    --image-width: 30vh;
    --border-radius: 50px;
  }
}

/* large desktop */
@media (min-width: 90em) {
  :root {
    --image-width: 35vh;
    --border-radius: 50px;
  }
}

/* -- fonts -- */

@font-face {
  font-family: 'Melange';
  font-weight: 600;
  src: url(/assets/fonts/Melange-SemiBold.woff);
}

@font-face {
  font-family: 'Melange';
  font-weight: 600;
  font-style: italic;
  src: url(/assets/fonts/Melange-SemiBold-Italic.woff);
}

/* -- animations -- */

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  0% {
    transform: none;
  }
  100% {
    transform: rotate(45deg);
  }
}

@keyframes notification {
  100%,
  0% {
    bottom: -40px;
    opacity: 0;
  }
  10% {
    opacity: 1;
    bottom: 0;
  }
  90% {
    opacity: 1;
    bottom: 0;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes translate {
  to {
    transform: translateX(100vw);
  }
}

@keyframes upDown {
  to {
    transform: translateY(50px);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes expand {
  to {
    transform: scale(90%);
  }
}

@keyframes fly-one {
  100%,
  0% {
    transform: translate(-100%, 100%) rotate(0deg);
  }

  20% {
    transform: translate(90vw, -100%) rotate(180deg);
  }

  40% {
    transform: translate(-80vw, -30%) rotate(0deg);
  }

  60% {
    transform: translate(40vw, 100%) rotate(180deg);
  }

  80% {
    transform: translate(-20vw, -100vh) rotate(-180deg);
  }
}

@keyframes fly-two {
  100%,
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(50%, -50%) rotate(45deg);
  }

  50% {
    transform: translate(0, -100%) rotate(0deg);
  }

  75% {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@keyframes fly-three {
  100%,
  0% {
    transform: matrix(1, 0, 0, 1, 0, 0) rotate(0deg);
  }

  50% {
    transform: matrix(-1, 0, 0, 1, 0, 0) rotate(180deg);
  }
}

@keyframes fly-four {
  100%,
  0% {
    transform: translate(20%, 10%) skew(0, 0) scale(1) rotate(30deg);
  }

  10% {
    transform: translate(40%, 20%) skew(20deg, 20deg) scale(0.4) rotate(45deg);
  }

  20% {
    transform: translate(-50%, 120%) skew(0, 0) scale(1) rotate(-20deg);
  }

  30% {
    transform: translate(-20%, 130%) skew(40deg, -20deg) scale(0.5)
      rotate(10deg);
  }

  40% {
    transform: translate(120%, -100%) skew(0, 0) scale(1) rotate(-90deg);
  }

  50% {
    transform: translate(130%, -80%) skew(30deg, 20deg) scale(0.5)
      rotateZ(90deg);
  }

  60% {
    transform: translate(0%, 60%) skew(0, 0) scale(1) rotateZ(10deg);
  }

  70% {
    transform: translate(20%, 100%) skew(20deg, 30deg) scale(0.5) rotateZ(40deg);
  }

  80% {
    transform: translate(130%, 80%) skew(0, 0) scale(1) rotateZ(10deg);
  }

  90% {
    transform: translate(120%, 100%) skew(20deg, 30deg) scale(0.5)
      rotateZ(40deg);
  }
}

/* -- general -- */

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-smooth: always;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Melange', 'Monument Grotesk Medium', helvetica, arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: var(--color-primary);
  background-color: var(--color-secondary);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  body {
    font-size: 21px;
  }
}

p {
  margin-bottom: 20px;
}

p:last-of-type {
  margin-bottom: 0;
}

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

strong,
b {
  font-weight: 500;
}

h1,
.h1 {
  font-size: 25px;
  margin-bottom: 20px;
}

/* tablet */
@media (min-width: 35em) {
  h1,
  .h1 {
    font-size: 30px;
  }
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  h1,
  .h1,
  .lg-h1 {
    font-size: 30px;
  }
}

svg path,
object svg path {
  fill: var(--color-primary);
}

.pt-2 {
  padding-top: 20px;
}

.pt-3 {
  padding-top: 30px;
}

.pt-8 {
  padding-top: 80px;
}

.pt-20 {
  padding-top: 200px;
}

.pb-2 {
  padding-bottom: 20px;
}

.pb-8 {
  padding-bottom: 80px;
}

.pb-18 {
  padding-bottom: 180px;
}

.pb-20 {
  padding-bottom: 200px;
}

.pb-24 {
  padding-bottom: 240px;
}

.-mt-20 {
  margin-top: -20px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-10 {
  margin-top: 100px;
}

.mt-14 {
  margin-top: 140px;
}

.mt-16 {
  margin-top: 160px;
}

.mt-18 {
  margin-top: 180px;
}

.mt-20 {
  margin-top: 200px;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-8 {
  margin-bottom: 80px;
}

.absolute {
  position: absolute;
}

.overflow-hidden {
  overflow: hidden;
}

.mobile {
  display: block;
}

/* tablet and desktop */
@media (min-width: 35em) {
  .mobile-only {
    display: none !important;
  }
}

div.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform .5s;
}

div.loader.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

div.loader img {
  animation: loader 3s infinite linear;
  color: var(--color-secondary);
  max-height: 10rem;
}

header {
  width: 100%;
  z-index: 9999;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--color-secondary);
}

nav#menu {
  display: none;
  background-color: var(--color-primary);
  min-height: 60px;
  align-items: center;
}

nav#menu a {
  display: inline-block;
  padding: 5px 20px 3px;
  border-radius: var(--round-radius);
  margin: 10px 0px;
}

nav#menu a:hover {
  cursor: pointer;
}

nav#menu a:after {
  clear: both;
  content: '';
  display: block;
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  header {
    transform-origin: left top;
    transform: rotate(-90deg) translateX(-100%);
  }

  nav#menu {
    display: flex;
    position: absolute;
    right: 0;
    background-color: var(--color-primary);
    width: 100vh;
    z-index: 1;
    text-align: right;
    padding-right: 20px;
    padding-left: 20px;
    justify-content: space-between;
  }

}

.marquee-wrapper {
  position: sticky;
  top: 0;
  width: 100vw;
  background-color: var(--color-secondary);
  height: 66px;
  overflow: hidden;
  display: flex;
}

.marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100%;
}

.track:hover {
  animation-play-state: paused;
}

.track {
  position: relative;
  white-space: nowrap;
  will-change: transform;
  padding-top: 17px;
  background-color: var(--color-secondary);
}

.segment svg {
  padding-right: 20px;
}



.link {
  text-transform: uppercase;
  font-size: 26px;
}

/* short desktop */
@media (min-width: 60em) and (min-height: 40em) and (max-height: 45em) {
  .link {
    font-size: 20px;
  }
}

.yellow {
  color: var(--color-secondary);
}

.menu-selected {
  transition: color 0.3s ease-in-out;
  color: var(--color-primary);
}

.selected-bg {
  background-color: var(--color-secondary);
  position: absolute;
  height: 38px;
  width: 118px;
  top: 11px;
  right: 20px;
  z-index: -1;
  display: inline-block;
  border-radius: var(--round-radius);
  transition: right 0.3s ease-in-out, height 0.3s ease-in-out;
}

.menu a[aria-current] {
  border-bottom: 2px solid #000;
}

.anchor::before {
  display: block;
  content: ' ';
  margin-top: -60px;
  height: 60px;
  visibility: hidden;
  pointer-events: none;
}

.intro {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Fix to hide the svg filter height */
svg.gradient-img {
  height: 0;
  max-height: 0;
}

.intro-images {
  /* display: none; */
  pointer-events: none;
  overflow: hidden;
}

/* tablet */
@media (min-width: 35em) {
  .intro {
    min-height: 100vh;
  }

  .intro-images {
      display: block;
    }
}

.img-container {
  pointer-events: none !important;
  transform: translateX(0) translateY(0) rotateZ(0);
  position: absolute;
  z-index: 8888;
}

.intro-img {
  position: relative;
  pointer-events: none;
  max-width: var(--image-width);
  max-height: var(--image-width);
}

/* t shirt */
.img-container:first-child {
  animation: fly-one 40s linear infinite;
}

/* cat */
.img-container:nth-child(2) {
  animation: fly-two 10s linear infinite;
}

.img-container:nth-child(2) img {
  animation: expand 1s alternate infinite;
}

/* vine */
.img-container:nth-child(3) {
  animation: fly-three 5s linear infinite;
}

/* flower */
.img-container:nth-child(4) {
  animation: fly-four 20s ease infinite;
}

/* finger */
.img-container:nth-child(5) {
  animation: upDown 1s alternate linear infinite;
}

#intro-logo {
  max-width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  #intro-logo {
    width: 60%;
    height: 30%;
  }
}

.marquee3k {
  height: 60px;
  display: flex;
  align-items: center;
}

.marquee3k__copy {
  margin-right: 20px;
}

main {
  pointer-events: none;
  background-color: var(--color-secondary);
  position: relative;
  z-index: 2;
}

main *,
footer * {
  pointer-events: auto;
}

.container {
  margin: 0 20px;
}

section#contact {
  padding-top: 60px;
  padding-bottom: 60px;
}

footer {
  z-index: 1;
  position: sticky;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 60px 20px 140px;
}

footer > div > div > p {
  grid-column: span 2;
}

footer a{
  position: relative;
}

footer a:after{
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  /* margin-top: 2px; */
  right: 0;
  background: var(--color-secondary);
  transition: width .5s ease-in-out;
  -webkit-transition: width .5s ease-in-out;
}

footer a:hover:after{
  width: 100%;
  left: 0;
  background: var(--color-secondary);
}


/* tablet */
@media (min-width: 35em) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
    margin: 0;
  }

  footer {
    padding: 60px 60px 140px;
  }
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .container {
    padding-left: 60px;
    padding-right: 40px;
    margin: 0 104px 0 120px;
  }

  section#contact {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .trunk {
    max-width: 1600px;
    margin: auto;
  }

  footer {
    padding: 80px 60px 60px;
    margin: 0 90px 0 120px;
  }
}

.sidebar {
  z-index: 9999;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  background-color: var(--color-secondary);
  align-items: center;
  width: 100%;
  padding: 20px 20px 22px;
  justify-content: space-between;
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .sidebar {
    background-color: transparent;
    flex-direction: column;
  }
}

.colors {
  display: flex;
}

.colors div {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.social {
  display: none;
}

/* tablet and above */
@media (min-width: 35em) {
  .social {
    display: block;
  }
}

.instagram {
  margin: 20px 10px 0;
}

.instagram a {
  padding: 7.5px 25px 5.5px;
  background-color: var(--color-secondary);
}

/* tablet */
@media (min-width: 35em) {
  .colors div {
    width: 40px;
    height: 40px;
  }

  .sidebar {
    flex-direction: row;
    padding: 10px 50px;
  }

  .instagram {
    margin-bottom: 20px;
  }
}

.colors div:nth-child(4) {
  margin-left: 20px;
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .sidebar {
    right: 0;
    top: 20px;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: column;
    padding: 0 0 0 20px;
    align-items: baseline;
  }

  .colors:first-of-type {
    margin-bottom: 20px;
  }

  .colors {
    display: block;
  }

  .colors div {
    margin: 10px 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
  }

  .colors div:nth-child(4) {
    margin-top: 40px;
    margin-left: 0px;
  }
}

/* short desktop */
@media (min-width: 60em) and (min-height: 40em) and (max-height: 45em) {
  .colors div {
    width: 45px;
    height: 45px;
  }
}

.secondary-rainbow,
.primary-rainbow {
  background-image: url('../img/colour-wheel.svg');
  background-size: 100%;
  cursor: pointer;
}

.secondary-rainbow,
.primary-rainbow,
.primary-white,
.secondary-white {
  margin-right: 10px;
}

.rainbow input {
  position: relative;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  opacity: 0;
  border-radius: 50%;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* short desktop */
@media (min-width: 60em) and (min-height: 40em) and (max-height: 45em) {
  .sidebar {
    right: 8px;
  }

  .rainbow input {
    width: 45px;
    height: 45px;
  }
}

.rainbow input:focus {
  outline: none;
}

.primary-black,
.secondary-black {
  background-color: #000000;
}

.primary-white,
.secondary-white {
  background-color: #ffffff;
}

.primary-black {
  margin-right: 20px !important;
}

/* smaller than desktop */
@media (max-width: 60em) {
  .instagram a {
    border-radius: var(--round-radius);
    padding: 7.5px 25px 5.5px;
    text-transform: uppercase;
    font-size: 22px;
  }
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .social {
    right: 63px;
    bottom: 40px;
    position: fixed;
  }

  .instagram {
    transform-origin: bottom right;
    transform: rotate(90deg);
    bottom: 0;
    margin: 0;
  }

  .instagram a {
    border-radius: var(--round-radius);
    padding: 7.5px 25px 5.5px;
    /* margin: 10px; */
    text-transform: uppercase;
  }
}

#events {
  padding-bottom: 100px;
}

.event {
  margin: 0 0 30px;
  padding: 20px 30px;
  cursor: pointer;
  transition: all 0.4s;
}

.no-event {
  margin: 0 0 30px;
  padding: 20px 30px;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
}

/* tablet */
@media (min-width: 35em) {
  #events {
    padding-bottom: 180px;
  }

  .event,
  .no-event {
    padding: 20px 40px;
  }
}

.event-title {
  margin-bottom: 0;
}

.event-description {
  transition: all 0.5s ease-in-out;
}

.active,
.event:hover {
  color: var(--color-secondary);
  background-color: var(--color-primary);
}

@media (max-width: 60em) {
  .accordion {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.panel {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, dislay 0.2s ease-in-out;
}

.panel-content {
  padding-bottom: 20px;
  grid-auto-rows: min-content;
  grid-template-rows: min-content 1fr;
}

.close-panel {
  display: flex;
  position: relative;
  align-items: center;
}

.display {
  display: block;
}

.hide {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}
.x {
  position: absolute;
  right: 0;
  height: 25px;
  width: 25px;
  transition: transform 0.2s ease-in-out;
}

/* mobile & tablet only */
@media (max-width: 60em), (max-width: 60em) and (min-height: 40em) {
  .event-date {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .close-panel {
    grid-column: 3;
    grid-row: 1 / span 1;
  }

  .event-title {
    grid-row: 3;
  }
}

.line {
  position: absolute;
  width: 25px;
  height: 3px;
  top: 11px;
  background-color: var(--color-primary);
}

.line:first-child {
  height: 25px;
  width: 3px;
  left: 11.5px;
  top: 0;
}

.event:hover .line,
.active .line {
  background-color: var(--color-secondary);
}

.event-meta {
  margin-bottom: 20px;
}

.event-rsvp {
  align-items: flex-start;
}

.event-rsvp a {
  display: flex;
  align-items: center;
}

/* mobile only */
@media (max-width: 35em) {
  .event-rsvp a {
    margin-top: 20px;
  }
}

/* desktop only */
@media (min-width: 60em) and (min-height: 40em) {
  .event-meta {
    margin-bottom: 20px;
  }
}


/* mobile & tablet only */
@media (max-width: 60em) {
  .event-rsvp {
    grid-row: 3;
  }
}

.event-rsvp:hover .arrow-circle {
  background-color: var(--color-secondary);
}

.event-rsvp:hover .arrow,
.event-rsvp:hover .arrow::after,
.event-rsvp:hover .arrow::before {
  background-color: var(--color-primary);
}

.icon-arrow {
  display: inline-block;
  margin-right: 10px;
}

.arrow-circle {
  width: 43px;
  height: 43px;
  cursor: pointer;
  border-radius: var(--round-radius);
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.arrow {
  position: relative;
  width: 20px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: auto;
}

.arrow::after,
.arrow::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 3px;
  right: -2px;
  background-color: var(--color-secondary);
}

.arrow::after {
  top: -4px;
  transform: rotate(45deg);
}

.arrow::before {
  top: 4px;
  transform: rotate(-45deg);
}

.description {
  font-size: 18px;
  position: relative;
  padding: 30px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  border-radius: var(--border-radius);
}

.description-bg {
  display: none;
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .description {
    font-size: 30px;
    cursor: help;
  }

  .description-bg {
    display: block;
    width: 100%;
    position: absolute;
    border-radius: var(--border-radius);
    height: 100%;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 20%;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    cursor: help;
    -webkit-filter: url(#duotone);
    filter: url(#duotone);
  }

  .description:hover .description-bg {
    visibility: visible;
    opacity: 1;
  }
}

/* tablet */
@media (min-width: 35em) {
  .description {
    padding: 40px;
  }

  .event-meta {
    grid-column: 1 / span 1;
  }

  .event-rsvp {
    grid-column: 1 / span 1;
    grid-row: 2;
  }

  .event-description {
    grid-column: 2 / span 1;
    grid-row: 1 / span 2;
  }
}

#boys {
  padding-bottom: 0px;
}

.member-image {
  width: 100%;
}

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

.border {
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease-in-out;
}

.border:hover {
  color: var(--color-secondary);
  background-color: var(--color-primary);
}

.team {
  margin-top: 80px;
}

.link-outline,
.link-filled {
  padding: 7px 9px 5px;
}

.link-outline {
  margin: 15px 0;
}

.link-filled:hover {
  color: var(--color-primary);
  background-color: var(--color-secondary);
}

.member-ig {
  padding: 7px 6px 5px;
  color: var(--color-secondary);
  background-color: var(--color-primary);
}

.member-ig:hover {
  color: var(--color-primary);
  background-color: var(--color-secondary);
}

.grid {
  display: grid;
}

.grid-gap-6 {
  grid-gap: 60px 20px;
}

.no-grid-gap {
  grid-row-gap: 0 !important;
}

/* tablet */
@media (min-width: 35em) {
  #boys {
    padding-bottom: 80px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px 20px;
  }

  .grid-span-2 {
    grid-column: span 2;
  }

  .grid-span-3 {
    grid-column: span 3;
  }

  .event-meta {
    grid-column: 1 / span 2;
  }

  .event-rsvp {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .event-description {
    grid-column: 3 / span 3;
    grid-row: 1 / span 2;
  }
}

section#contact {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.contact-links {
  flex-grow: 1;
}

.contact-link {
  display: block;
  font-size: 20px;
  padding: 21px 30px 19px;
  margin: 15px 0;
  border: 2px solid var(--color-primary);
  border-radius: var(--round-radius);
  transition: background-color 0.3s ease-in-out;
}

.contact-link:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.contact-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* don't display inline notification unless desktop */
.copy-button {
  display: none;
}

/* mobile and tablet only */
@media (max-width: 60em) {
  /* styling the pop-up notification */
  .copied {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 20px;
    font-size: 18px;
    padding: 7px 9px 5px;
    border-radius: var(--round-radius);
    color: var(--color-secondary);
    background-color: var(--color-primary);
  }
}

/* desktop */
@media (min-width: 60em) {
  /* don't show the pop-up notification */
  .copied {
    display: none;
  }

  /* styling the inline notification */
  .copy-button {
    display: none;
    font-size: 18px;
    padding: 7px 9px 5px;
    border-radius: var(--round-radius);
    justify-content: center;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transition: display 0.3s ease-in-out;
  }

  /* show inline notification on hover */
  .contact-link:hover .copy-button {
    display: flex;
  }
}

.impressum {
  padding: 40px;
  margin: 15px 0;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  min-width: 180px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.opaque {
  opacity: 1;
}

.impressum-link {
  line-height: 1;
}

.impressum:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.impressum-modal {
  position: fixed;
  color: var(--color-secondary);
  width: calc(100% - 40px);
  background-color: var(--color-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, 100vh);
  padding: 30px;
  margin-right: 40px;
  margin-bottom: 60px;
  border-radius: var(--border-radius);
  transition: all 0.5s ease-in-out;
  z-index: 99999;
  grid-template-columns: auto auto;
}

.impressum-content {
  height: 60vh;
  overflow-y: scroll;
  margin-top: 40px;
}

.impressum-bg {
  position: fixed;
  padding: 0;
  margin: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.impressum-close {
  display: flex;
  justify-content: end;
  position: absolute;
  cursor: pointer;
  right: 40px;
  top: 20px;
}

.impressum-close .x {
  transform: rotate(45deg);
}

.impressum-close .line {
  background-color: var(--color-secondary);
}

/* tablet */
@media (min-width: 35em) {
  .impressum-modal {
    padding: 40px;
  }

  .impressum-close {
    right: 60px;
    top: 30px;
  }

  .impressum-content {
    height: 70vh;
    margin-top: 40px;
  }

  .contact-link {
    padding: 21px 40px 19px;
  }

  .contact-links {
    padding-right: 20px;
  }

  .impressum-modal {
    width: calc(100% - 120px);
  }
}

/* desktop */
@media (min-width: 60em) and (min-height: 40em) {
  .contact-link {
    font-size: 30px;
  }

  .impressum {
    /* padding: 20px 40px; */
    /* margin: 10px 0; */
  }

  .impressum-modal {
    max-width: 50%;
  }
}
