/* Grundinställningar för mörkt tema */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container för att centrera innehållet */
.container {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    text-align: center;
}

/* Stilar för rubriker */
h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

h2 {
    margin-top: 20px;
    font-size: 20px;
    color: #ffffff;
}

/* Snabblänkar */
.quick-links {
    margin-bottom: 20px;
}

.links a {
    margin: 5px;
    display: inline-block;
    padding: 5px 10px;
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.links a:hover {
    background-color: #555555;
}

/* Formulär med knapp till höger */
.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.input-group input {
    padding: 10px;
    border: 1px solid #444444;
    border-radius: 4px 0 0 4px;
    background-color: #333333;
    color: #e0e0e0;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.input-group button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.input-group button:hover {
    background-color: #0056b3;
}

/* Stilar för output */
.output {
    text-align: left;
    margin-top: 20px;
}

pre {
    background-color: #2e2e2e;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container för METAR och ikon */
#metarOutputContainer {
    display: block;
    align-items: center;
}

/* Stilar för tidsstämpel */
.timestamp {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

/* Media queries för responsiv design */
@media (max-width: 768px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    form input {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
        margin-top: 10px;
        border-radius: 4px;
    }

    #metarOutput {
        flex-direction: column;
        align-items: flex-start;
    }

    .timestamp {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }
}
