@import 'https://kit-pro.fontawesome.com/releases/v5.9.0/css/pro.min.css';
@import 'https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap';

*,
:after,
::before {
    box-sizing: border-box;
}

html,
body {
    cursor: url('https://cdn.codeine.space/cursor.cur'), auto;
    height: 100%;
    width: 100%;
    margin: 0;
    color: #fff;
    background-color: #151515;
    line-height: 1.5;
    font-family: 'Josefin Sans', sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.9)), url("https://64.media.tumblr.com/896b21ac5f8ad4b46cfac9a216b0657a/tumblr_ogqsxoRtme1rldv4go1_1280.gifv");
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    user-select: none;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    /* Higher than other elements */
    pointer-events: none;
    /* Ignore mouse events */
}


a {
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 500px) {
    img {
        width: 200px;
        height: 200px;
    }
}

h1 {
    font-size: 45px;
    margin-top: 20px;
    margin-bottom: -30px;
}

p {
    color: white;
    line-height: 1.5;
}

.tools {
    padding: 75px;
    max-width: 1000px !important;
    margin: 0 auto;
    /* Center the tools */
    opacity: 1;
    box-shadow: 0 0px 45px 0px rgba(0, 0, 0, 0.8);
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    /* Full width */
}

.center-content {
    text-align: center;
    /* Center text */
    padding: 20px;
    /* Padding for spacing */
}


.button {
    display: inline-block;
    background-color: transparent;
    border: 1px solid white;
    padding: 10px 15px;
    font-size: .9rem;
    font-weight: bold;
    max-width: 150px;
    border-radius: 2px;
    color: #f8f9fa;
    margin: 5px;
    transition: 0.5s;
    cursor: pointer;
}

.button:hover {
    color: #212529;
    border-color: #f8f9fa;
    background-color: #f8f9fa;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


.fade-in.visible {
    opacity: 1;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

/* The text inside the overlay */
#overlay-text {
    font-size: 24px;
    text-align: center;
    filter: blur(10px);
    opacity: 0;
    animation: unblurText 1s ease-out forwards;
    animation-delay: 0.3s;
    /* Delay so it feels nice */
}

#overlay-text2 {
    font-size: 24px;
    text-align: center;
    filter: blur(10px);
    opacity: 0;
    animation: unblurText 2s ease-out forwards;
    animation-delay: 1.5s;
    /* Delay so it feels nice */
}

/* Keyframes for unblurring and fading in */
@keyframes unblurText {
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Box container without static border */
.trace-box {
    position: relative;
    padding: 1rem 2rem;
    display: inline-block;
}

/* SVG line tracer */
.tracer-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Rectangle path for the tracer line */
.tracer-svg rect {
    fill: none;
    stroke: white;
    stroke-width: 4;
    /* Thicker line for better visibility */
    stroke-dasharray: 300;
    /* Perimeter of the rectangle (width + height * 2) */
    stroke-dashoffset: 300;
    /* Start hidden */
    animation: drawBox 4s linear infinite;
    /* Continuous loop animation */
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px white);
    /* Subtle glow effect */
}

#overlay-text2 {
    font-size: 24px;
    text-align: center;
    filter: blur(10px);
    opacity: 0;
    animation: unblurText 2s ease-out forwards;
    animation-delay: 1.5s;
    /* Delay so it feels nice */
}

/* Smooth, continuous animation */
@keyframes drawBox {
    0% {
        stroke-dashoffset: 300;
        /* Full perimeter length hidden at start */
    }

    50% {
        stroke-dashoffset: 80;
        /* Tail is short here */
    }

    100% {
        stroke-dashoffset: 300;
        /* Line traced all around the perimeter */
    }
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

video {
    transition: filter 0.3s ease;
}

.bright {
    filter: brightness(30%);
    /* Adjust brightness (1 is normal) */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
        /* Smaller font size for mobile */
    }

    .tools {
        padding: 50px;
        /* Adjust padding for mobile */
    }

    .center-content {
        padding: 20px;
        /* Add padding for mobile */
    }

    .button {
        width: 100%;
        /* Make buttons full width */
        margin: 10px 0;
        /* Add margin between buttons */
    }

    #myVideo {
        object-fit: cover;
        /* Ensure the video covers the entire area */
    }
}

/* Modal overlay */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black background */
    display: none;
    /* Initially hidden */
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1001;
    /* Higher than the content */
    opacity: 0;
    /* Start with zero opacity for fade-in effect */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    /* Add transition for opacity and visibility */
}

/* Modal content with shadow effect */
.confirmation-content {
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark see-through background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    /* Light shadow around the modal */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    /* Light glow for the text */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal text container with scrolling */
.modal-text {
    flex-grow: 1;
    /* Allow the text container to take the remaining space */
    max-height: 300px;
    /* Limit the height of the text area */
    overflow-y: auto;
    /* Enable scrolling for the text */
    margin-bottom: 20px;
    /* Space between text and the button */
    padding-right: 10px;
    /* Adds padding to the right */
}

/* Buttons inside the modal (styled like your other buttons) */
.confirmation-buttons {
    margin-top: 20px;
}

.confirmation-button {
    display: inline-block;
    background-color: transparent;
    border: 1px solid white;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    max-width: 150px;
    border-radius: 5px;
    color: #f8f9fa;
    margin: 5px;
    transition: 0.5s;
    cursor: pointer;
}

.confirmation-button:hover {
    color: #212529;
    border-color: #f8f9fa;
    background-color: #f8f9fa;
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    visibility: visible;
}

/* Close button fixed at the top right */
#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* For desktop view, use flexbox for side-by-side display */
.banner-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Allows wrapping for smaller screens */
    gap: 10px;
    /* Adds space between items */
    margin-bottom: 20px;
    /* Adds space below */
}

/* Each banner item should take up 48% of the container width */
.banner-item {
    width: 48%;
    text-align: center;
    /* Center the text and image inside the item */
}

.banner-text {
    font-size: 14px;
    /* Adjust text size */
    font-weight: bold;
    /* Make the text bold */
    color: #ffffff;
    /* Text color */
    margin-bottom: 10px;
    /* Add space between text and image */
}

.discord-banner {
    width: 100%;
    height: auto;
    transition: box-shadow 0.3s ease;
}

.discord-banner:hover {
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    /* Cyan glow */
}

/* For mobile view, make the banners stack */
@media (max-width: 768px) {
    .banner-item {
        width: 100%;
        /* Full width on mobile */
        margin-right: 0;
        /* No margin on mobile */
    }
}

.video-container {
    width: 100%;
    max-width: 100%;
    /* ensures the video doesn't exceed its container's width */
    height: auto;
    position: relative;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
    /* This helps the video scale without distortion */
}

/* Ensure the body takes up the full height */
body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}


/* Bottom container */
.bottom-container {
    position: fixed;
    bottom: 10px;
    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    /* Centers the container horizontally */
    text-align: center;
    width: 100%;
}

/* Style the buttons/links */
.bottom-container a {
    color: white;
    /* White text color */
    text-decoration: none;
    /* Remove underline by default */
    margin: 0 10px;
    /* Space between the links */
}

/* Underline on hover */
.bottom-container a:hover {
    text-decoration: underline;
    /* Underline on hover */
}

.url-box {
    background-color: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white background */
    border: 1px solid #f8f9fa;
    /* Border color similar to your button */
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    word-wrap: break-word;
    /* Ensures the URL wraps inside the box */
    text-align: center;
    /* Centers the link inside the box */
}

.url-box a {
    color: #f8f9fa;
    /* Matches the text color of your buttons */
    font-weight: bold;
    text-decoration: none;
    word-break: break-word;
    /* Breaks long URLs if necessary */
}

.url-box a:hover {
    color: #212529;
    border-color: #f8f9fa;
    background-color: #f8f9fa;
}

.typewriter {
    white-space: nowrap;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 1.0rem;
}

#typed-text {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
}

.typewriter-animate {
    animation: typing 4s steps(30, end) forwards;
}

.cursor {
    display: inline-block;
    color: rgb(255, 255, 255);
    margin-left: 2px;
    animation: blink 0.7s step-end infinite;
}

@keyframes typing {
    to {
        max-width: 30ch;
        /* match character count of your text */
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.snowflake {
  position: absolute;
  color: white;
  opacity: 0;
  font-size: 8px;
  user-select: none;
  animation-name: driftFall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes driftFall {
  0% {
    transform: translateX(0px) translateY(0);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  25% {
    transform: translateX(-20px) translateY(25vh) rotate(90deg);
  }
  50% {
    transform: translateX(20px) translateY(50vh) rotate(180deg);
  }
  75% {
    transform: translateX(-15px) translateY(75vh) rotate(270deg);
  }
  100% {
    transform: translateX(0px) translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
