/* Import custom font from the media folder */
@font-face {
    font-family: 'Giarek';
    src: url("/media/giarek.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'etw';
    src: url("/media/etw.ttf") format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Apply global styling */
#content{
  height: 130vh;
}


.name {
    position: absolute;
    font-size: 48px;
    z-index: 2;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    color whitesmoke;
    top: 12vh;
    font-family: 'Giarek', sans-serif;
}

.name .undername{
  margin-top: 0;
  font-weight: bold;
  text-decoration: none;
  font-style: italic;
  width: 30vw;
}

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

/* cards container */
.cards {
    position: absolute;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    top: 40vh;
    animation: fadeIn 0.5s ease-in-out;
    width: 80vw;
}

/* ASCII container settings */
.ascii-container {
    font-size: 3px; /* Further reduce font size to fit ASCII art in the card */
    line-height: 3px; /* Match line height to font size for proper spacing */
    font-family: monospace; /* Ensure monospace font for ASCII art */
    white-space: pre; /* Preserve newlines and whitespace */
    overflow: hidden; /* Hide overflow if the frame is too large */
    text-align: center; /* Center the ASCII art */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
    padding: 5px;
    color: #fff; /* Optional: Adjust color for better contrast */
}

.card {
    width: 400px;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease,border-radius 0.6s ease;
    border-radius: 40px;
    mix-blend-mode: darken;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); /* Initial shadow */
}

/* Hover effect for cards */
.card:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.7); /* Shadow on hover */
    border-radius: 10px;
}

.card:hover .cardTitle{
    mix-blend-mode: difference;
}

.cardImage {
    width: 90%;
    height: 90%;
    object-fit: cover; /* Ensures the image covers the entire card area */
    border-radius: 30px; /* Optional: Match the border radius of the card */
    transition: width 0.4s ease, height 0.4s ease, border-radius 0.4s ease;
}

.card:hover .cardImage {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover; /* Ensures the image covers the entire card area */
}

.cardTitle{
    color: white;
    position: absolute;
    bottom: -30px;
    font-size: 4em;
    font-family: 'Giarek', sans-serif;

}

.arrow {
    width: 4vw;
    height: 6.5vh;
    position: absolute;
    top: 88vh;
    left: 50%;  /* Center the arrow horizontally */
    transform: translateX(-50%);  /* Ensure perfect centering */
    opacity: 0.8;
    cursor: pointer;
    animation: fadeIn 2s ease-in-out;
    transition: transform 0.3s ease, opacity 0.3s ease;  /* Smooth transition on hover */
}

.arrow:hover {
    transform: translate(-50%, 10px);  /* Move down slightly on hover */
    opacity: 1;
    mix-blend-mode: difference;
}

.smallBioT{
    width: 20vw;
    margin: 0 40vw 5vh 40vw;
    display: block;
    position: absolute;
    top: 106vh;
    font-size: 3em;
    text-align: center;
    mix-blend-mode: difference;
}

.smallBio{
    display: block;
    width: 80vw;
    position: absolute;
    top: 115vh;
    font-size: 1.2em;
    color: white;
    mix-blend-mode: lighten;
}


.typer {
  height: 12vh;  /* Adjust the height of the container */
  display: grid;
  place-items: center;
}

.typing {
  width: 23vw;  /* Set the width of the text */
  height: auto;  /* Let the height adapt to the font size */
  line-height: 0.8em;
  animation: typing 2s steps(7), blink .7s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid;  /* Reduce the thickness of the blinking cursor */
  font-family: 'Giarek', sans-serif;
  font-size: 2em;
  text-decoration: underline;
}





.netWrap{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 50%;
  margin: 0 25%;
  position: relative;
  top: 117vh;
  height: 10vh;
}


.netLink img{
  width: 100px;
  height: 100px;
  padding: 5%;
}




@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media screen and (max-width: 1500px){
  .name .undername{
      font-size: 0.8em;
      font-weight: bold;
    }
  .name {
    width: 23vw
  }

  .card {
      width: 350px;
      height: 350px;

  }
}

@media screen and (max-width: 1500px){
  .card {
      width: 300px;
      height: 300px;

  }
}


/* Base styles (already present) */

/* Media query for smaller screens (phones and small devices) */
@media screen and (max-width: 900px) {

  .cards {
      flex-direction: column;
      gap: 20px;
      width: 100%;
      align-items: center;
      top: 20vh;
  }

  /* Shrink the cards to fit the screen */
  .card {
      width: 80%;  /* Make cards take up most of the width */
      height: auto; /* Auto-adjust height to maintain aspect ratio */
      background-color: transparent;
  }

  .cardImage {
      width: 100%;  /* Image should fill the entire card */
      height: auto; /* Auto-adjust height */
  }

  /* Shrink wide text elements */
  .name {
      font-size: 36px;  /* Reduce the name font size */
      margin: 0;
      top: 2vh;
  }

  .typer {
      width: 60vw;  /* Shrink the width to fit mobile screens */
      height: auto;
      border: none;
  }

  .name .undername {
    display: none;
  }

  /* Adjust Bio Title and Text */
  .smallBioT {
      width: 80vw;
      margin: 0 10vw 5vh 10vw;
      font-size: 2em;  /* Smaller font size for phones */
      mix-blend-mode: lighten;
      top: 195vh;
  }

  .smallBio {
      width: 90vw;
      top: 203vh;  /* Adjust position */
      font-size: 1em;  /* Reduce font size */
  }

  /* Adjust arrow size and position */
  .arrow {
    position: absolute;
    top: 86vh;
    width: 10vw;
  }

  /* Shrink footer */
  .footer {
    width: 100vw;
      font-size: 12px;
      padding: 1vh 0 3vh 0;
      top: 230vh;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e0e0e0;
}

/* Mobile-specific styles (phones) */
@media screen and (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

    .smallBioT{
        top: 99vh;

    }

    .footer{
      top: 142vh;
      height: 15vh;
    }



  /* Name and typing animation adjustments */
  .name {
    width: 100vw;
    top: 2vh;
    left: 0;
    text-align: center;
  }

  .typing {
    width: 90vw;
    font-size: 2.5em;
    margin: 0 auto;
  }

  .name .undername {
    font-size: 1em;
    width: 100%;
    margin-top: 1vh;
  }

  /* Cards adjustments */
  .cards {
    flex-direction: column;
    align-items: center;
    top: 13vh;
    width: 100vw;
    gap: 2vh;
    padding: 0 5vw;
  }

  .card {
    width: 90vw;
    height: 21vh;
    margin: 0;
    border-radius: 20px;
  }

  .cardImage {
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }

  .cardTitle {
    font-size: 3.6em;
    bottom: auto;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* About section adjustments */
  .smallBioT {
    width: 90vw;
    margin: 0 5vw;
    font-size: 2em;
  }

  .smallBio {
    width: 90vw;
    margin: 0 5vw;
    top: 105vh;
    font-size: 1em;
    line-height: 1.4;
    text-align: justify;
  }

  /* Social media links adjustments */
  .netWrap {
    width: 90vw;
    margin: 0 5vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4vw;
  }

  .netLink img {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  /* Footer adjustments */
  .footer {
    padding: 2vh 5vw;
    font-size: 0.8em;
    line-height: 1.4;
  }

  /* Card hover effects for touch devices */
  .card:hover {
    transform: none;
    background-color: rgba(0, 0, 0, 0.6);
  }

  .card:hover .cardImage {
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }



  /* Active state for touch devices */
  .card:active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
  }
}

/* Additional adjustments for very small phones */
@media screen and (max-width: 360px) {
  .typing {
    font-size: 2em;
  }

  .cardTitle {
    font-size: 2em;
  }

  .smallBioT {
    font-size: 1.8em;
  }

  .netLink img {
    width: 35px;
    height: 35px;
  }
}
