/* General Styling*/
body {
    background-color: #000 !important;
    margin: 0;
}

header {
    color: white;
}

main {
    color: white;
    font-family: "Lato", sans-serif;
}

.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Show when active */
.visible {
    display: block !important;
}

/* Image hover */
.image-hover {
    width: 50px;
    /* Default width */
    height: auto;
    /* Maintain aspect ratio */
    transition: transform 0.3s ease;
    /* Smooth transition */
}

.image-hover:hover {
    transform: scale(1.3);
    /* Enlarges the image */
}

/* Intro Animation*/
#intro-animation {
    padding-top: 200px;
}

.ml4 {
    position: relative;
    font-weight: 900;
    font-size: 4.5em;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.ml4 .letters {
    position: absolute;
    margin: auto;
    left: 0;
    top: 0.3em;
    right: 0;
    opacity: 0;
    transform: scale(0.2);
}

.letters-1 {
    color: #fff;
}

.letters-2 {
    color: red;
}

.letters-3 {
    color: blue;
}

/* Headings*/
.heading-font {
    font-family: "Fredoka", sans-serif;
    font-weight: 100;
}

h1 {
    font-size: 100px;
}

/* Hero Section */
#hero {
    width: 100%;
    /* Full width of the page */
    height: 200px;
    color: white;
}

/* Introduction Section*/
#introduction {
    background-color: white;
    padding-top: 30px;
    padding-bottom: 20px;
}

#introduction-text {
    color: #000;
    text-align: center;
}

#arrow img {
    width: 35px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 10px;
}

/* Pick Gender Section*/
#pick-gender {
    text-align: center;
    border: 10px solid #000;
    background-color: #000;
}

/* Zoom-in effect */
#pick-gender.zoomed {
    transform: scale(1.2);
    /* Zoom in */
    opacity: 1;
    /* Optional: keep it fully visible */
}

#pick-gender img {
    width: 100%;
    /* Image will take up 100% of the container's width */
    height: auto;
    /* Maintain the aspect ratio */
    object-fit: cover;
    /* Ensure the image covers the container */
    display: block;
    /* Remove inline spacing from images */
}

#gender-male-container {
    background-color: blue;
}

#gender-female-container {
    background-color: red;
}

/* Modal Styles Avatar */
.modal.fade {
    --bs-modal-margin: 0;
    --bs-modal-padding: 0.4rem;
}

.modal-header {
    text-align: center;
    width: 100%;
    padding: 10px;
}

.modal-title {
    color: #000;
    font-family: "Fredoka", sans-serif;
    font-weight: 100;
    text-align: center;
    width: 100%;
}

.responsive-iframe-container {
    position: relative;
    width: 100%;
    /* Make the container flexible */
    height: 750px;
    overflow: hidden;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Make iframe fill container */
    height: 100%;
    border: 0;
    transform: none;
    /* Remove scaling */
}

/* Download Avatar Section */
#download-avatar {
    margin: 0;
    background-color: #000;
    text-align: center;
}

.collage-avatars {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.collage-avatars img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container */
    opacity: 0.5;
    /* Adjust transparency */
    z-index: 1;
    /* Place the image behind the content */
}

.collage-avatars .btn {
    position: relative;
    z-index: 2;
    /* Place the button above the image */
    height: 45px;
    width: 150px;
    transition: transform 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: white;
    border: none;
}

.collage-avatars .btn:hover {
    transform: scale(1.3);
}

/* Contact Section */

#contact {
    padding: 15px 0 15px 0;
    background-color: white;
    color: #000;
    text-align: center;
    flex-direction: row;
}

.blk-heading {
    color: #000;
    height: 50px;
}

#contact p {
    color: #000;
}

#button-contact {
    padding-top: 10px;
    padding-bottom: 15px;
}

/* Contact Modal Styles */

.modal-contact {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Ensure it's above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #000;
    /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contact Modal - Content Box */
.modal-content-contact {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    width: 320px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-modal-title {
    padding-bottom: 10px;
    font-size: 30px;
    font-family: "Fredoka", sans-serif;
    font-weight: 100;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: red;
}

/* Form Styling */
.modal-content-contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Input Fields */
.modal-content-contact input,
.modal-content-contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Textarea */
.modal-content-contact textarea {
    resize: vertical;
    height: 100px;
}

/* Submit Button */
.modal-content-contact .btn-primary {
    background-color: #007bff;
    color: #000;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-content-contact .btn-primary:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    margin-top: 0;
    background-color: white;
    bottom: 0;
    position: relative;
}

#social-links {
    background-color: white;
    font-size: 30px;
    padding: 10px 50px 20px 50px;
    gap: 40px;
    /* Add spacing between icons */
}

#social-links a {
    color: #000
}

/* 404 Page*/
.error-container {
    text-align: center;
    padding: 50px;
}

.error-container h1 {
    font-size: 80px;
    color: white;
}

.error-container p {
    font-size: 20px;
    color: white;
}

.error-container a {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: black;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid white;
}

/* Small devices (mobiles, 480px and down */
@media (max-width: 480px) {
    .modal-content-contact {
        width: 90%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {

    .responsive-iframe-container {
        height: 800px;
    }
}

.background-container .btn {
    height: 50px;
    width: 120px;
    font-size: 13px;
}

/* Medium devices (tablets, 1024px and up) */
@media screen and (min-width: 1024px) {
    #arrow img {
        transform: rotate(-90deg);
        /* Rotate the image */
        margin-bottom: -50px;
    }

    .responsive-iframe-container {
        height: 400px;
    }

    .modal.fade {
        --bs-modal-width: 1000px;
        /* Set the width */
    }

    .modal-title {
        font-size: 35px;
    }

    #introduction {
        scroll-margin-top: 70px;
        /* Adjust for smaller screens */
    }

    #button-contact button {
        width: 150px;
    }
}