/* Background setup */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000; /* To match the black background of the screenshot */
}

/* Add wave background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: url('/images/Screenshot\ 2024-10-21\ at\ 22.16.14.png');
    background-size: cover;
    background-position: 50% 50%;
    animation: wave 10s infinite linear;
    z-index: -1;
    pointer-events: none;
}

/* Wave animation keyframes */
@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5%);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Position the logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 30px;
    z-index: 1;
}

/* Style for the password input field to look like the media player */
.styled-input {
    background: linear-gradient(145deg, #333, #444); /* Dark gradient background */
    border: none;
    border-radius: 50px; /* Rounded edges similar to the media player */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), -4px -4px 8px rgba(255, 255, 255, 0.1); /* Inset shadow for 3D effect */
    width: 30%; /* Similar width to the media player */
    padding: 20px; /* Padding for inner space */
    color: #fff; /* White text color */
    font-size: 18px; /* Font size to match the style */
    text-align: center; /* Center the text */
    outline: none; /* Remove the default input outline */
}

/* Style for the submit button similar to play/pause button */
.styled-submit {
    background: linear-gradient(145deg, #333, #444); /* Dark gradient background */
    border: none;
    border-radius: 50px; /* Rounded button */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), -4px -4px 8px rgba(255, 255, 255, 0.1); /* Similar shadow effect */
    padding: 15px 40px; /* Padding for button size */
    margin-top: 20px;
    color: #fff; /* White text color */
    font-size: 16px;
    cursor: pointer; /* Change cursor to pointer on hover */
}

/* Hover effect for the button */
.styled-submit:hover {
    background: linear-gradient(145deg, #444, #555); /* Slightly lighter on hover */
}

/* Style for the title text */
.title {
    font-size: 82px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: rgba(6, 6, 6, 0.508);
    margin-bottom: 20px; /* Space between title and the glass container */
}

.title2 {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 50px;
    margin-bottom: 30px; /* Space between title and the glass container */
}

/* Typewriter effect styling */
.typewriter {
    font-size: 85px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: rgba(20, 20, 20, 0.907);
    border-right: 2px solid black; /* Cursor effect */
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    width: 0; /* Start hidden */
    margin-top: 30px;
}

/* Typewriter animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Run the typing animation */
.typewriter.active {
    animation: typing 4s steps(23, end) forwards; /* Steps(12) for each letter */
    border-right: none; /* Remove cursor once typing is done */
}

/* Show full text immediately when needed (after refresh) */
.typewriter.show-full {
    width: 100%; /* Ensure full text is visible */
    border-right: none; /* Remove the cursor */
}

/* Style for the glass container (glass boxes are aligned horizontally) */
.glass-container {
    display: flex;
    justify-content: space-around;
    width: 50%;
    max-width: 1200px;
    margin-top: 40px;
}

/* Glass box hover effect */
.glass-box {
    width: 30%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    margin: 0 10px;
    transition: transform 0.3s ease; /* Smooth enlargement */
}

/* Hover effect on glass box */
.glass-box:hover {
    transform: scale(1.1); /* Enlarges the glass box */
}

/* Style for the text inside glass box */
.glass-box h3 {
    font-size: 25px;
    font-weight: 400; /* Lighter font weight */
    color: #73899A;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth text enlargement */
}

/* Text hover effect */
.glass-box:hover h3 {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 255, 0.3), rgba(255, 0, 255, 0.3));
    background-clip: text;
    color: transparent; /* Text becomes gradient */
    animation: waveEffect 2s infinite; /* Apply wave motion effect */
}

/* Wave motion effect for the text */
@keyframes waveEffect {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Footer styling */
footer {
    background-color: transparent;
    padding: 30px 0;
    font-size: 13px;
    color: #333;
}

footer img {
    margin-top: 5px;
}

/* Ensures responsive design */
@media (max-width: 768px) {

    .title {
        display: none;
    }

    .glass-container {
        flex-direction: column;
        width: 40%;
    }

    .glass-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .glass-box h3 {
        font-size: 24px; /* Slightly smaller text on mobile */
    }
}

/* For screens between 768px and 1024px (tablets) */
@media (min-width: 768px) and (max-width: 1024px) {
    
    .title {
        font-size: 70px;
    }

    .glass-container {
        width: 80%;
    }

    .glass-box {
        width: 45%;
    }

    .glass-box h3 {
        font-size: 28px;
    }
}

