@import url("fonts.css");
html {
  scroll-behavior: smooth;
}
:root {
  --delay_1: 2s;
  --delay_2: 3.2s;
  --delay_3: 5s;
 
  --color-background-default: #000000;
  --color-text-default: #ffffff;
  --color-button-background-default: #333;
  --color-shadow-default: #1c1c1c;
}

.body {
  position: relative;
  font-family: Tahoma, sans-serif;
  background-color: var(--color-background-default);
  margin: 0;
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;


  @media screen and (width > 440px) {
    padding-top: 8px; 
  }
  @media screen and (height > 600px) and (width > 700px) {
    justify-content: center;
    
  }
}

.main-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--color-background-default);
  padding: 64px 24px 24px 24px;
  border-radius: 10px;
  gap: 24px;
  max-width: 432px;
  width: 100%;
  box-sizing: border-box;
  

  @media screen and (width > 440px) {
    animation: fadeInBoxShadow 2s ease-in forwards;
    animation-delay: var(--delay_3);    
  }
}

.profile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.profile-wrapper__logo {
  width: 100px;
  z-index: 1;
  transform: translateY(60px);
  animation: slideUpLogo 3.2s ease-in-out forwards;
  animation-delay: var(--delay_1);
}

.profile-wrapper__text {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  background-color: var(--color-background-default);
  z-index: 2;
  position: relative;
}
.profile-wrapper__text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to top,
    var(--color-background-default),
    transparent
  );
  z-index: -1;
}

.profile-wrapper__text__name {
  font-family: "Fetish", sans-serif;
  font-weight: 800;
  line-height: 29px;
  letter-spacing: 0px;
  color: var(--color-text-default);
  margin: 0;
  font-size: 20px;
}
.profile-wrapper__text__slogan {
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 100;
  line-height: 16px;
  letter-spacing: 0px;
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-default);
  margin: 0;
  max-width: 230px;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: var(--delay_2);
}

.linked-icons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.linked-icon {
  display: block;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: var(--delay_3);
}

.buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button {
  display: block;
  background: var(--color-button-background-default);
  color: var(--color-text-default);
  text-decoration: none;
  padding: 16px;
  border-radius: 5px;
  transition: 0.3s;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: var(--delay_3);
}

.share-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: block;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: var(--delay_3);
  cursor: pointer;
  z-index: 1;
}

.more-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 8px;

  opacity: 0;
  max-height: 0;
  overflow: hidden;
  /* transition: max-height 2s ease-in-out, opacity 2s ease-in-out; */
}

.more-info-wrapper.expand {
  animation: expand 2s ease-in-out forwards;
}

.more-info-wrapper.collapse {
  animation: collapse 2s ease-in-out forwards;
}




.more-info-wrapper__text {
  font-weight: 100;
  line-height: 16px;
  letter-spacing: 0px;
  /* font-style: italic; */
  font-size: 14px;
  color: var(--color-text-default);
  margin: 0;
  text-align: justify;  

  
}



.svg-icon {
  width: 24px;
}
.info-icon {
  width: 22px;
}

.svg-share-icon {
  width: 24px;
}

.linked-icon:hover,
.share-button:hover {
  transform: scale(1.2);
}
.button:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUpLogo {
  to {
    transform: translateY(0); 
  }
}
@keyframes fadeInBoxShadow {
  from {
    border: transparent 2px solid;
    box-shadow: var(--color-shadow-default) 0px 0px 0px;
  }
  to {
    border: var(--color-shadow-default) 2px solid;
    box-shadow: var(--color-shadow-default) 0px 0px 16px;
  }
}

@keyframes expand {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 150px;
    opacity: 1;
  }
}

@keyframes collapse {
  from {
    max-height: 150px; 
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

/* Desactivar :hover en dispositivos táctiles */
@media (hover: none) {
  .linked-icon:hover,
  .share-button:hover {
    transform: none;
  }
  .linked-icon:active,
  .share-button:active {
    transform: scale(1.2);
  }
  .button:hover {
    transform: none;
  }
  .button:active {
    transform: scale(1.05);
  }
}
