/* Basic Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Styling */
header {
    background-color: #007bff;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 28px;
}

/* Main Content Styling */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    flex-grow: 1;
    max-width: 1200px;
    margin: auto;
}

/* Section Styling */
.input-section, #map-container, #flight-info, #export-section, #text-output {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-weight: bold;
}

.input-group input, #address-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button Styling */
button {
    padding: 12px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background-color: #218838;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* Flight Info Styling */
#flight-info h2 {
    margin-top: 0;
    color: #007bff;
}

#orbit-info h3, #total-info h3, #additional-info h3 {
    color: #28a745;
    margin-bottom: 10px;
}

#orbit-info p, #total-info p, #additional-info p {
    margin: 5px 0;
}

#export-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#text-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#flight-plan-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Weather Info Styling */
#weather-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    main {
        padding: 10px;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    #flight-info, #flight-info * {
        visibility: visible;
    }
    #flight-info {
        position: absolute;
        left: 0;
        top: 0;
    }
}
