:root {
  --body-link-fs: max(3.6vw, 1.3rem);
  --fs-large: max(3.6vw, 2rem);
  --fs-medium: max(1.4vw, 0.9rem);
  --fs-small: max(1.1vw, 0.7rem);
  --bg-img-width: max(40vw, 40vh);
  --light-bg-color: #003550;
  --dark-bg-color: #072839;
  --font-family: "Averia Serif Libre", serif;
  --off-white: #e3eef4;
  --nav-border-color: #e3eef49a;
  scroll-behavior: smooth;
}

* {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  color: var(--off-white);
}

/* NAVBAR PAGE SPECIFIC STYLING */
.navbar {
  border-color: var(--nav-border-color);
  padding-top: 0;
  margin: 0;
  margin-top: -12px;
}

/* LINKS HIGHLIGHTS */
a {
  color: inherit;
}
a:hover {
  text-decoration: underline;
}
body {
  background-color: var(--light-bg-color);
}
.navbar {
  padding-top: 2rem;
}
.navbar__menu-item a {
  color: #e3eef4;
}
.layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 25vh;
  overflow-y: visible;
  height: auto;
  padding-top: 15vh;

  /* background-image: url(./assets/bg/blob.svg); */
  /* animation: 20s bg-animate infinite alternate;
    -webkit-animation: 20s bg-animate infinite alternate; */
}

/* BACKGROUND IMAGE ANIMATION */
/* @keyframes bg-animate {
    from {
        background-position-x: 0%;
        background-position-y: 0%;
    }
    to {
        background-position-x: 100%;
        background-position-y: 80%;
    }
} */

h1 {
  font-size: var(--fs-large);
  font-weight: 500;
}
h2 {
  font-size: var(--fs-medium);
  font-weight: 200;
  opacity: 0.6;
}

/* CLUB - LOGO */
.club-logo {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 1vw;
  right: 3vw;
  z-index: 10;
}
.club-logo > * {
  width: 100%;
  height: 100%;
}

/* CENTERS ALL THE RESOURCES LINKS */
.content {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  max-width: min-content;
  height: fit-content;
  gap: var(--body-link-fs);
  animation: fade-in 1s ease-in-out;
}

/* RESOURCES STYLING */
.resources {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  width: fit-content;
}

.title-text {
  display: inline;
  color: inherit;
  font-size: var(--body-link-fs);
  font-weight: 100;
  line-height: calc(var(--body-link-fs) * 1.1);
  opacity: 0.9;
  text-wrap: nowrap;
  overflow-x: visible;
  background-color: #00000000;
}

.description-text {
  /* border: 2px red solid; */
  max-width: fit-content;
  display: none;
  background-color: #00000000;
  color: inherit;
  padding: 0;
  margin-left: 5px;
  font-size: var(--fs-small);
}

.bg-svg {
  position: fixed;
  height: inherit;
  bottom: 0;
  right: 0;
  width: var(--bg-img-width);
  z-index: -3;
  opacity: 0.5;
  transform: translateX(var(--bg-img-width));
  -webkit-transform: translateX(var(--bg-img-width));
  -moz-transform: translateX(var(--bg-img-width));
  -ms-transform: translateX(var(--bg-img-width));
  -o-transform: translateX(var(--bg-img-width));
  transition: 0.5s ease-out;
  -webkit-transition: 0.5s ease-out;
  -moz-transition: 0.5s ease-out;
  -ms-transition: 0.5s ease-out;
  -o-transition: 0.5s ease-out;
}

/* RESOURCES INTERACTIVE EFFECTS */
.resources:hover {
  opacity: 1;
  color: #003550;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: rgba(240, 248, 255, 0.702);
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}
.resources:hover .bg-svg {
  opacity: 0.61;
  transform: translateX(0vh) scale(3);
  -webkit-transform: translateX(0vh);
  -moz-transform: translateX(0vh);
  -ms-transform: translateX(0vh);
  -o-transform: translateX(0vh);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -ms-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
}

/* ONCLICK STYLING FOR DESCRIPTION TEXT */
.open {
  opacity: 1;
  color: #003550;
  background-color: rgba(240, 248, 255, 0.702);
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

@keyframes fade-in {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
