/* Add this to your existing CSS */
@font-face {
    font-family: 'luckiest-guy';
    src: url('fonts/luckiest-guy.ttf');
}

@font-face {
    font-family: 'desc-font';
    src: url('fonts/desc-font.ttf');
}

@font-face {
    font-family: 'roboto';
    src: url('fonts/roboto.ttf');
}

@font-face {
    font-family: 'futura';
    src: url('fonts/Futura Bold.otf');
}
@font-face {
    font-family: 'mc10';
    src: url('fonts/MinecraftTen.otf')
}
@font-face {
    font-family: 'mc5';
    src: url('fonts/MinecraftFive.ttf')
}
@font-face {
    font-family: 'mc5bold';
    src: url('fonts/MinecraftFiveBold.otf')
}
.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}
:root{
    --base-color: #07090c;
    --text-color: #d1d7e2;
    --secondary-text-color: #858992;
    --secondary-color: #1e232b;
    --bright-shine: #4b5869;
    --t-secondary-color: #1e232b83;
    --main-gradient: linear-gradient(to bottom right, #44bdff, #0071FF);
    --background: linear-gradient(60deg, #023b85, #1661ec);
    --background-bottom: rgb(41, 39, 39);
    --main-color: #0071FF;
    --t-main-color: hsla(213, 100%, 50%, 0.15);
    --accent-color: #ffd044;
    --50-accent-color: rgba(255, 208, 68, 0.5);
    --t-accent-color: rgba(255, 208, 68, 0.1);
    --primary-font: mc5bold;
    --secondary-font: mc5;
    --third-font: luckiest-guy;
    --last-font: desc-font;
    --card-background: linear-gradient(60deg, #0a7be6, #003dc2);
  }
body {
    background: var(--background);
    padding: 10px;
    opacity: 0;
    transition: opacity 2s;
    font-family: 'roboto'; /* Set default font family */
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}

.round {
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.round:hover {
    animation: spin 2s linear infinite;
}

.big-text {
    font-size: 50px;
    background: linear-gradient(#000022, #00004d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: mc10;
    font-weight: bold;
    text-shadow: 0 0 5px #000022b4, 0 0 10px #00004db4;
    margin-bottom: 40px;
    margin-top: 7.5px;
}

.small-text {
    font-size: 30px;
    background: linear-gradient(#88ff00, #bbff01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: var(--secondary-font);
    font-weight: bold;
    margin-top: -30px;
    text-shadow: 0 0 5px #88ff00b4, 0 0 10px #bbff01b4;
}
.icon:hover {
    transform: scale(1.2);
}

.line {
    width: 100%;
    height: 5px;
    background: black;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 200px;
}

.icon {
    width: 50px;
    height: 50px;
    margin: 10px;
    margin-top: -5px;
    transition: transform 0.3s;
    /* box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); */
    filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.6));
}

.icon:hover {
    transform: scale(1.2);
}

.project-card {
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    max-width: 700px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.project-image {
    height: 400px;
    background-image: url(images/first-image.png);
    background-size: cover;
    position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.project-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.project-info h2, .project-info p {
    margin: 0;
}

.project-info h2 {
    font-family: var(--third-font);
    font-size: 31px;
    color: black;
}

.project-info p {
    font-family: var(--last-font);
    font-size: 16px;
    color: black;
}

.skills {
    text-align: center;
    margin: 20px auto;
    font-family: var(--primary-font);
    font-size: 50px;
}

.progress-bar {
    width: 80%;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin: 10px auto;
    overflow: hidden;
}

.progress {
    height: 20px;
    background-color: #76c7c0;
    border-radius: 25px;
}

.skills-text {
    font-family: 'futura';
    font-size: 100px;
    color: black;
    text-align: center;
}

#play-button {
    background-color: transparent;
    border: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: linear-gradient(60deg, #420285, #08BDBD);
    cursor: pointer;
}

#play-button svg {
    fill: #fff;
    width: 30px;
    height: 30px;
}

#play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#play-button:active {
    transform: scale(1.05);
}
/* Styles for Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.blur {
    filter: blur(5px);
    pointer-events: none; /* Prevent interaction with blurred content */
}
/* Add media queries for phone screens */
@media (max-width: 600px) {
    body {
        padding: 5px;
        font-size: 14px;
    }

    .center {
        width: 60%;
    }

    .big-text {
        font-size: 30px;
    }

    .small-text {
        font-size: 14px;
        margin-top: -20px;
    }

    .icon {
        width: 30px;
        height: 30px;
        margin: 5px;
    }

    .project-card,
    .card {
        max-width: 100%;
        margin: 10px auto;
        padding: 10px;
    }

    .project-image,
    .card .project-image {
        height: 200px;
    }

    .project-info h2 {
        font-size: 20px;
    }

    .project-info p {
        font-size: 12px;
    }

    .skills-text {
        font-size: 50px;
    }

    .scrolling-wrapper .card {
        width: 150px;
        height: 200px;
    }

    .scrolling-wrapper .card .project-image {
        height: 150px;
    }

    #play-button {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }

    #play-button svg {
        width: 20px;
        height: 20px;
    }

    .modal-content {
        width: 90%;
    }
}
@keyframes slide-right {
    0% {
        transform: translateX(-100%); /* Start from the left, out of view */
        opacity: 1;
    }
    100% {
        transform: translateX(100%); /* Move to the right, out of view */
        opacity: 1;
    }
}

/* Apply the animation to cards */
.card {
    opacity: 0;
    animation: slide-right 25s linear infinite;
}

.hidden {
    display: none;
}
/* Container styling */
/* Container to hide overflow and center the carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 300px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carousel that holds the cards */
.carousel {
    display: flex;
    position: relative;
    width: 100%;
}

/* Style for individual cards */
.card {
    flex: 0 0 33.33%; /* 3 cards visible at a time */
    text-align: center;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 0;
}

/* Keyframes for sliding and fading in/out cards */
@keyframes slide-cards {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    30% {
        opacity: 1;
        transform: translateX(0);
    }
    40% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Applying animation to cards in sequence */
.card:nth-child(1) {
    animation: slide-cards 9s linear infinite;
}

.card:nth-child(2) {
    animation: slide-cards 9s linear infinite;
    animation-delay: 3s;
}

.card:nth-child(3) {
    animation: slide-cards 9s linear infinite;
    animation-delay: 6s;
}

/* Hidden class for initially hiding cards */
.hidden {
    display: none;
}
.spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    width: 50px;
    height: 50px;
    
    & .path {
      stroke: hsl(210, 70, 75);
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
    }
    
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(180deg);
    }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
  }
  .gradient-text{
    background: var(--main-gradient);
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px var(--t-main-color);
  }
  .content {
    align-items: center;
    font-family: var(--secondary-font);
    font-weight: bold;
    text-shadow: 0 0 5px #000022b4, 0 0 10px #00004db4;
    background: linear-gradient(#000022, #00004d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-size: 100px;
}
.content-category { 
    align-items: center;
    font-family: var(--secondary-font);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(1, 0, 44, 0.795), 0 0 10px rgb(2, 0, 77, 0.795);
    background: linear-gradient(rgb(1, 0, 44), rgb(2, 0, 77));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-size: 60px;
    margin-bottom: 20px;
}

.yt-content {
    display: flex;
    flex-wrap: wrap; /* Allows items to move to the next line on smaller screens */
    justify-content: center; /* Centers the content */
    gap: 20px; /* Adds spacing between video cards */
    flex-direction: row;
    padding: 20px;
    grid: row;
}

.video-container {
    display: flex;
    max-width: 560px; /* Prevent stretching */
    flex-direction: column;
    align-items: center;
    background: rgb(0, 0, 8);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 0px 10px rgb(1, 0, 44, 0.795);
    transition: box-shadow 0.3s ease-in-out;
    text-align: center;
}

.video-container iframe {
    border-radius: 10px;
    width: 100%; /* Make the video responsive */
    height: auto;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}
.video-title {
    color: white;
    font-weight: bold;
    font-size: 40px;
    margin-top: 15px;
}
.video-description {
    color: white;
    font-size: 29px;
    opacity: 0.8;
    margin-top: -30px;
}
.twitch-live {
    display: flex;
    max-width: 560px; /* Prevent stretching */
    flex-direction: column;
    align-items: center;
    background: rgb(0, 0, 8);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 0px 10px rgb(1, 0, 44, 0.795);
    transition: box-shadow 0.3s ease-in-out;
    text-align: center;
    margin: 0 auto;
    height: 370px;
}
.image-button {
    display: inline-block;
    cursor: pointer;
    line-height: 60px; /* Centers text vertically */
    text-decoration: none; /* Removes underline */
    width: 50%;
    position: relative; /* Ensures positioning works */
    bottom: 20px;
    right: 20px;
    background: linear-gradient(rgb(79, 76, 245), rgb(149, 145, 255));
    background-size: 200%; /* Zoom effect */
    font-size: 60px; /* Unified font size */
    border-radius: 20px;
    padding: 40px 60px; /* More reasonable padding */
    margin: 50px auto; /* Centers element horizontally */
    display: flex; /* Enables alignment */
    justify-content: center; /* Centers content */
    align-items: center; /* Centers text */
    font-family: var(--secondary-font);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(1, 0, 44, 0.795), 0 0 10px rgba(2, 0, 77, 0.795);
    text-align: center;
}
.content-container {
    display: flex;
    max-width: 560px; /* Prevent stretching */
    flex-direction: column;
    align-items: center;
    background: linear-gradient(#aac9ff, #6fa3fc);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 0px 10px rgb(1, 0, 44, 0.795);
    transition: box-shadow 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
    flex-direction: row;
    max-height: 315px;
    transition: transform 0.2s ease-in-out;
}

.content-container:hover {
    transform: scale(1.15);
}
.content-container h1 {
    position: relative;
}

.content-container img {
    border-radius: 10px;
    width: 100%; /* Make the video responsive */
    height: auto;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}
.nolink {
    text-decoration: none;
    align-items: center;
}
.text-container {
    display: flex;
    position: fixed;
}
.fire {
    position: fixed;
    bottom: 0;
    left: 0; /* Change this to 'right: 0;' for the right side */
    width: 100px; /* Adjust size as needed */
    height: auto;
    z-index: 1000;
}
.play-button { 
    width: 600px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: fixed; /* Fixed position */
    bottom: 20px; /* Distance from the bottom */
    left: 20px;   /* Distance from the left */
    z-index: 1000; /* Ensure it's on top of other content */
    transition: transform 0.2s;
}

.play-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    display: none;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.play-button img[data-state="play_unhighlight"],
.play-button img[data-state="pause_unhighlight"] {
    display: block;
}

.play-button:hover img[data-state="play_highlight"] {
    display: block;
}

.play-button:hover img[data-state="play_unhighlight"] {
    display: none;
}

.play-button:hover img[data-state="pause_highlight"] {
    display: block;
}
.mo-title {
    font-family: Cal Sans;
    font-weight: bold;
    font-size: 200px;
    text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}
.mo-small-title {
    font-family: var(--secondary-font);
    font-size: 110px;
    color: white;
    text-shadow: 5px 5px 15px rgba(133, 133, 133, 0.5);
}
.mo-paragraph {
    font-family: var(--third-font);
    font-size: 70px;
    color: white;
    text-shadow: 5px 5px 15px rgba(133, 133, 133, 0.5);
}
.concratulations {
    background: linear-gradient(rgb(255, 251, 0), rgb(236, 70, 70)); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 5px 5px 15px rgba(133, 133, 133, 0.5); 
    font-size: 80px;
    font-family: var(--third-font);
    text-align: center;
}
.desc-yt {
    display: flex;
    flex-wrap: wrap; /* Allows items to move to the next line on smaller screens */
    justify-content: center; /* Centers the content */
    gap: 20px; /* Adds spacing between video cards */
    flex-direction: row;
    padding: 50px;
    bottom: 50px;
    grid: row;
    position: relative;
}