/* Ensure no horizontal scrolling */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: white;
    font-family: Arial, sans-serif;
}

canvas#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 1000;
    transition: opacity 0.5s;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

header nav .logo {
    width: 70px;
    margin-right: 20px;
}

header nav .nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav .nav-links li {
    display: inline;
}

header nav .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    padding: 10px 20px;
}

header nav .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    background: none; /* Remove background */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */
}

header nav .hamburger span {
    width: 25px;
    height: 3px;
    background-color: white; /* Ensure the lines are white */
    border-radius: 5px;
}

#full-size-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
    box-sizing: border-box;
}

#full-size-image-container.hidden {
    display: none;
}

.full-size-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 90%;
    max-height: 90%;
}

#full-size-image {
    max-width: 50%;
    max-height: 80%;
    object-fit: contain;
}

.full-size-description {
    max-width: 40%;
    color: white;
    text-align: justify;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Boton de favorito */
.styled-button {
    background-color: #379CAC;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em;
    transition: background-color 0.3s;
}

.styled-button:hover {
    background-color: #2a7a8a;
}

section {
    padding: 100px 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

#about, #contact {
    padding: 50px 10px;
}

#count-container {
    padding: 0; /* Remove padding */
    margin: 50px 0; /* Add margin to make the section bigger */
}

.stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px 0; 
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 90%;
}

#nasa-image {
    width: 65%;
    height: auto;
    cursor: pointer;
    border: 2px solid #379CAC;
}

.description-container {
    text-align: justify;
    max-width: 70%;
}

#favorites-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#favorites {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.favorite-item {
    position: relative;
    display: inline-block;
}

.favorite-item img {
    width: 250px;
    cursor: pointer;
}

.delete-button {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #379CAC;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 5px;
}

#additional-images-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.additional-image {
    text-align: center;
}

.additional-image img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    border: 2px solid #379CAC; 
}

#full-size-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#full-size-image-container.hidden {
    display: none;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

#additional-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#additional-image-container.hidden {
    display: none;
}

#additional-image {
    max-width: 70%;
    max-height: 70%;
    position: relative;
}

.additional-description {
    max-width: 70%;
    text-align: center;
    margin-top: 20px;
}

.additional-image-container .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* About Section */
.about-content {
    text-align: justify;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 90%;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    align-items: center;
    margin-top: 20px;
    height: auto;
}

#count-container {
    padding: 0; /* Remove padding */
    margin: 50px 0; /* Add margin to make the section bigger */
}

.stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px 0; 
}


.count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #379CAC;
    padding: 10px;
    border-radius: 10px;
    min-width: 150px;
}

.count {
    font-size: 3em;
    font-weight: bold;
    color: white;
}

.plus-sign {
    font-size: 3em;
    color: #379CAC;
    margin-left: 5px;
}

/* Gallery Images Hover Effect */
.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-image:hover {
    transform: scale(1.1);
}

.img-thumbnail {
    background-color: transparent;
    border: 2px solid #379CAC;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery {
    padding: 10px; 
    margin-top: 20px;
}

.gallery .container {
    padding: 0; 
}

/* Modal Styling */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body img {
    width: 100%;
    height: auto;
}

/* Custom styles for the contact form */
.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #379CAC;
    color: white;
}

.contact-form .form-control::placeholder {
    color: #ccc;
}

.contact-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #379CAC;
    box-shadow: none;
}

.contact-form .styled-button {
    background-color: #379CAC;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.contact-form .styled-button:hover {
    background-color: #2a7a8a;
}

.contact-text {
    text-align: justify;
}

/* Reduce gap between sections */
#additional-images-container {
    margin-bottom: 0;
}

#about {
    margin-top: 0;
    margin-bottom: 20px; /* Reduce the bottom margin */
}

.gallery {
    margin-top: 20px; /* Reduce the top margin */
}

/* Center the specific h2 element */
#about h2 {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Footer link color */
footer a {
    color: #379CAC; 
    text-decoration: none; 
}

footer a:hover {
    color: #2a7a8a; 
    text-decoration: underline; 
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    background-color: #379CAC;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTopBtn:hover {
    background-color: #2a7a8a;
}

#backToTopBtn:focus {
    outline: none;
}

header nav .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    background: none; 
    border: none; 
    padding: 0; 
}

header nav .hamburger span {
    width: 25px;
    height: 3px;
    background-color: white; 
    border-radius: 5px;
}

/* Counting numbers responsive styles */
@media (max-width: 768px) {
    .stats {
        flex-direction: column; /* Stack the stats vertically on smaller screens */
    }

    .count-container {
        flex-direction: column;
        padding: 5px;
        border: 1px solid #379CAC;
        border-radius: 10px;
        margin-bottom: 10px; 
        width: 100%; /* Make the count container take full width */
        text-align: center; 
    }

    .count {
        font-size: 2em; 
    }

    .plus-sign {
        font-size: 2em; 
    }

    .stat p {
        font-size: 1.2em; /* Adjust font size for the text underneath */
        padding: 0.5em; /* Adjust padding for the text */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header nav .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 20px;
        border-radius: 10px;
    }

    header nav .nav-links.active {
        display: flex;
    }

    header nav .hamburger {
        display: flex;
        right: 30px;
    }

    .about-content, .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text, .contact-text, .contact-form {
        max-width: 100%;
    }
}