/* General Page Styling */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Georgia, serif;
}

/* Remove padding and margin from all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background image styling */
.background {
    background-image: url('PurpleBinary.png');
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

/* Overlay behind the text */
.overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Wrapper for moving all content down (up in this case) */
.content-wrapper {
    position: relative;
    top: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; /* Add padding for better spacing on mobile */
}

/* Title Styling */
.title {
    color: rgb(202, 170, 233);
    font-size: 8em;
    font-weight: bold;
    margin-bottom: 10px;
    transform: scaley(1.15);
}

/* Subtitle Styling */
.subtitle {
    color: rgb(202, 170, 233);
    font-size: 2.2em;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    padding-bottom: 15px;
    text-align: center;
    width: 100%;
}

/* Form Styling */
form {
    background-color: rgba(255, 255, 255, 0.69);
    padding: 15px;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 25px;
    margin-top: 30px;
}

/* Form Header Styling */
form h2 {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(24, 24, 24);
    font-weight: normal;
    font-size: 1.8em;
    transform: scalex(1.10);
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Input Fields Styling */
input[type=text],
input[type=email],
input[type=submit] {
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #e7e7e7;
    background-color: rgba(255, 255, 255, 0.556);
    box-sizing: border-box;
    border-radius: 40px;
}

input[type=submit] {
    background-color: rgb(182, 154, 211);
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    border-radius: 40px;
    width: 150px;
}

input[type=submit]:hover {
    opacity: 0.8;
}

/* Image Styling */
.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 0px;
}

/* Mobile Responsive Styling */
@media only screen and (max-width: 768px) {
    .title {
        font-size: 4.5em; /* Smaller title for smaller screens */
    }

    .subtitle {
        font-size: 1.6em; /* Smaller subtitle for smaller screens */
    }

    form {
        width: 85%; /* Form takes more width on smaller screens */
    }

    .logo {
        width: 90px;
        height: 90px; /* Smaller logo for smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .title {
        font-size: 2.9em; /* Further reduce title size */
    }

    .subtitle {
        font-size: 1.2em; /* Further reduce subtitle size */
    }

    form {
        padding: 10px; /* Reduce padding on the form */
    }

    .content-wrapper {
        padding: 10px; /* Reduce padding around content */
    }
}
