@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* DEFAULT VALUES */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav {
  user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  -o-user-select:none;
}

nav > ul,
nav > ul > li {
  outline: 0;
}

nav > ul > li > a {
 text-decoration: none;
}

body {
  min-height: 100vh;
  background: linear-gradient(90deg, #aea4e3, #d3ffe8);
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #272727;
}

::-webkit-scrollbar-thumb {
  background: #999;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4fd7b3;
}

/* WALLET BUTTON */
.btn-nav {
  width: calc(100% - 60px);
  position: fixed;
  top: 20px;
  left: 60px;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.2s;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.btn-nav.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
}

.button-container {
  position: fixed;
  top: 0;
  right: 0;
  margin: 25px;
}

.button {
  position: relative;
  width: 120px;
  height: 30px;
  background-color: #000;
  color: #40c9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 11px;
  cursor: pointer;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 128px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.button:hover::after {
  filter: blur(30px);
}

.button:hover::before {
  transform: rotate(-180deg);
}

.button:active::before {
  scale: 0.7;
}

/* MAIN MENU */

.main-menu {
  position:fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 60px;
  overflow:hidden;
  background: #0009;
  transition: width .05s linear;
  -webkit-transition: width .05s linear;
  z-index: 100;
  padding-top: 20px;
}

.main-menu:hover {
  width: 180px;
  overflow:visible;
}

.main-menu > ul > li {
  position: relative;
  display: block;
  width: 180px;
}

.main-menu > ul > li > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color:#999;
  font-size: 1rem;
  transition:all .1s linear;
  -webkit-transition:all .1s linear;
  padding: 10px 0;
}

.nav-icon {
  width: 60px;
  height: 20px;
  font-size: 20px;
  text-align: center;
}

.nav-text {
  width: 120px;
  height: 20px;
  font-family: "Mulish", sans-serif;
}

.logout {
  position: absolute;
  left: 0;
  bottom: 0;
}

.main-menu li:hover > a, .main-menu li.active > a, .main-menu li > a:focus {
  text-decoration: none;
  color: #fff;
  background-color: rgba(29, 79, 215, 0.702);
}

/* ANIMATED BACKGROUND */

.container {
	background:#1F2024;
	min-height: 100vh;
	overflow: hidden;
	position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-c {
	min-height: 100vh;
	overflow: hidden;
	position:absolute;
	width: 100%;
	filter: blur(40px);
}

.shape-blob {
	background:#26C3F9;
	height: 60px;
	width: 80px;
	border-radius: 40% 50% 30% 40%;
  	animation: 
		transform 18s ease-in-out infinite both alternate,
		movement_one 12s ease-in-out infinite both;
	opacity:.7;
	position: absolute;
	left: 75%;
	top: 40%;
}
.shape-blob.one{
	background:#0085FF;
	height: 150px;
	width: 200px;
	left: 10px;
	top: 10px;
	transform: rotate(-180deg);
	animation: transform 8s ease-in-out infinite both alternate, movement_two 20s ease-in-out infinite both;
}

.shape-blob.six{
	background:#0EAFFF;
	height: 70px;
	width: 100px;
	left: 160px;
	top: 400px;
	transform: rotate(-180deg);
	animation: transform 5s ease-in-out infinite both alternate, movement_two 7s ease-in-out infinite both;
}

.shape-blob.four{
	background:#4EAEFF;
	height: 100px;
	width: 80px;
	left: 350px;
	top: 60px;
	transform: rotate(-180deg);
	animation: transform 17s ease-in-out infinite both alternate, movement_two 13s ease-in-out infinite both;
}

.shape-blob.five{
	background:#0085FF;
	height: 100px;
	width: 80px;
	left: 480px;
	top: 250px;
	transform: rotate(-180deg);
	animation: transform 12s ease-in-out infinite both alternate, movement_two 18s ease-in-out infinite both;
}

.shape-blob.two{
	background:#4EAEFF;
	height: 150px;
	width: 150px;
	left: 600px;
	top: 250px;
	transform: rotate(-180deg);
	animation: transform 10s ease-in-out infinite both alternate, movement_two 10s ease-in-out infinite both;
}

.shape-blob.three{
	background:#0EAFFF;
	height: 150px;
	width: 150px;
	left: 800px;
	top: 30px;
	transform: rotate(-180deg);
	animation: transform 7s ease-in-out infinite both alternate, movement_two 23s ease-in-out infinite both;
}

@keyframes transform
{
    0%,
  100% { border-radius: 33% 67% 70% 30% / 30% 40% 70% 70%; } 
   20% { border-radius: 37% 63% 51% 49% / 37% 35% 35% 63%; } 
   40% { border-radius: 36% 64% 64% 36% / 64% 48% 52% 26%; } 
   60% { border-radius: 37% 63% 51% 49% / 30% 30% 70% 73%; } 
   80% { border-radius: 40% 60% 42% 58% / 51% 51% 49% 59%; } 
}

@keyframes movement_one
{
    0%,
  100% { transform: none; }
   50% { transform: translate(50%, 20%) rotateY(10deg) scale(1); }
}

@keyframes movement_two
{
    0%,
  500% { transform: none; }
   50% { transform: translate(50%, 100%) rotate(-200deg) scale(1.3);}
}

/* CARD */

section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px 40px 40px 80px;
}

.group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  /* margin-bottom: 20px; */
}

.card {
  width: min(100%, 500px);
  background: #00000015;
  border-radius: 17px;
  font-family: "Poppins", sans-serif;
  z-index: 5;
  cursor: pointer;
}

.small { 
  width: 180px;
  height: 180px;
  margin-bottom: 0.5vw;
}
.large { 
  width: 320px;
  height: 320px;
  margin-bottom: 0.5vw;
}

.card > img {
  display: block;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 16px 16px 0 0;
  filter: contrast(70%);
  transition: all 0.6s cubic-bezier(0.43, 0.41, 0.22, 0.91);
  animation-iteration-count: infinite;
}

.card > img:hover {
  filter: contrast(100%);
}

.card > iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  background: rgb(0, 0, 0);
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 16px 16px 0 0;
  filter: contrast(70%);
  transition: all 0.6s cubic-bezier(0.43, 0.41, 0.22, 0.91);
  animation-iteration-count: infinite;
}

.card > iframe:hover {
  filter: contrast(100%);
}

.card-content {
  display: flex;
  flex-direction: column;
  padding: 20px 15px 20px;
}

.card-content > p {
  margin-bottom: 10px;
}

.card-content > p:nth-child(1) {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  /* color: #1e40af; */
  color: #ffffff;
}

.small .card-content {
  padding: 15px 15px 15px;
}

.small .card-content > p:nth-child(1) {
  font-size: 0.7rem;
}

.card-content > p:nth-child(2) {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
}

/* Style of modal window */
.modal {
  display: none;
  position: fixed;
  z-index: 7;
  left: 60px;
  top: 0;
  width: calc(100% - 60px);
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  background-color: #22222200;
  margin: auto;
  padding: 0;
  border: none; /* 1px solid #888 */
  width: 100%;
  height: 99%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

.modal-iframe {
  width: 100%;
  height: 100%;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close-button:hover {
  color: #1d4fd7b3;
}

@media (max-width: 900px) {
  section {
     grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  section {
     grid-template-columns: repeat(1, 1fr);
  }

  ::-webkit-scrollbar {
    width: 4px;
  }

  ::-webkit-scrollbar-track {
    background: #3a3a3a;
  }

  ::-webkit-scrollbar-thumb {
    background: #888;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  body {
    background: linear-gradient(90deg, #b4a8d1, #c4ffde);
  }

  .btn-nav {
    width: calc(100% - 20px);
    top: 20px;
    left: 10px;
    padding: 20px;
  }

  .button-container {
    margin: 10px;
    top: 17px;
  }

  .button {
    width: 110px;
    height: 25px;
    padding: 8px;
    gap: 8px;
    border-radius: 8px;
  }

  .button::before {
    width: 114px;
    height: 29px;
    border-radius: 10px;
    left: -2px;
    top: 0;
  }

  .blob-c {
    height: 100%;
    position: absolute;
  }
  
  .shape-blob {
    height: 40px;
    width: 60px;
    animation: 
      transform 18s ease-in-out infinite both alternate,
      movement_one_mobile 12s ease-in-out infinite both;
  }
  .shape-blob.one {
    height: 100px;
    width: 150px;
    left: 5%;
    top: 5%;
    animation: 
      transform 8s ease-in-out infinite both alternate, 
      movement_two_mobile 20s ease-in-out infinite both;
  }

  .shape-blob.two {
    height: 100px;
    width: 100px;
    left: 75%;
    top: 40%;
    animation: 
      transform 10s ease-in-out infinite both alternate, 
      movement_two_mobile 10s ease-in-out infinite both;
  }

  .shape-blob.three {
    height: 100px;
    width: 100px;
    left: 90%;
    top: 10%;
    animation: 
      transform 7s ease-in-out infinite both alternate, 
      movement_two_mobile 23s ease-in-out infinite both;
  }

  .shape-blob.four {
    height: 70px;
    width: 60px;
    left: 45%;
    top: 10%;
    animation: 
      transform 17s ease-in-out infinite both alternate, 
      movement_two_mobile 13s ease-in-out infinite both;
  }

  .shape-blob.five {
    height: 70px;
    width: 60px;
    left: 60%;
    top: 40%;
    animation: 
      transform 12s ease-in-out infinite both alternate, 
      movement_two_mobile 18s ease-in-out infinite both;
  }
  
  .shape-blob.six {
    height: 50px;
    width: 70px;
    left: 20%;
    top: 60%;
    animation: 
      transform 5s ease-in-out infinite both alternate, 
      movement_two_mobile 7s ease-in-out infinite both;
  }

  @keyframes movement_one_mobile {
    0%, 100% { transform: none; }
    50% { transform: translate(30%, 10%) rotateY(10deg) scale(0.8); }
  }

  @keyframes movement_two_mobile {
    0%, 100% { transform: none; }
    50% { transform: translate(30%, 50%) rotate(-200deg) scale(0.8); }
  }

  .card {
    width: 100%;
    max-width: none;
    background: #00000015;
  }

  .card > img, .card > iframe {
    max-width: none;
  }

  .card-content > p:nth-child(1) {
    font-size: 1.2rem;
    color: #ffffff;
  }

  .card-content > p:nth-child(2) {
    display: none;
    font-size: 1rem;
  }

  .modal {
    left: 60px;
    width: calc(100% - 60px);
    height: 100%;
    top: 0;
    overflow: hidden;
  }

  .modal-content {
    margin: 0;
    height: 100%;
    box-shadow: none;
  }

  .close-button {
    font-size: 40px;
    top: 5px;
    right: 10px;
  }

  .modal-iframe {
    height: 100%;
  }

  @keyframes animatetop {
    from {
      top: -300px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }
}
