body {
    font-family: Arial, sans-serif;
    background: url('deep-field.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    text-align: center;
}

.container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

h1,
h2 {
    margin-bottom: 20px;
}

#timeForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#timeForm2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


label {
    font-weight: bold;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.radio-container {
    margin-top: 2000px;
}

.row input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    width: 60px;
    /* Increased width for text fields */
    box-sizing: border-box;
}

.row span {
    font-size: 1.2rem;
    font-weight: bold;
}

input[type="button"] {
    padding: 15px;
    background-color: #0044cc;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 10px;
}

input[type="button"]:hover {
    background-color: #0033aa;
}

#haResult,
#outputResult {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

/* Overlay Menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Enable vertical scrolling */
}

.overlay-content {
    text-align: center;
    color: white;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    max-height: 90vh; /* Limit height to 90% of the viewport */
    position: relative;
}

#messier-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.object-container {
    display: flex;
    align-items: center; /* Vertically center align the radio and label */
}

.object-container input[type="radio"] {
    margin-right: 10px; /* Add space between radio button and label */
}

.object-container label {
    text-align: left; /* Ensure text alignment is left */
    margin: 0; /* Remove any default margin */
}

.overlay-content h2 {
    margin-bottom: 20px;
}

/* Prevent background scrolling when overlay is active */
body.no-scroll {
    overflow: hidden;
}


.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}
