body {
    font-family: 'Source Code Pro', monospace;
    background-color: #f5f8fa;
    color: #333333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #007acc;
    font-weight: 700;
    text-align: left;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

.uitleg {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #222222;
}

.uitleg-extra {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
    background-color: #f9f9f9;
    border-left: 4px solid #007acc;
    padding: 12px 16px;
    border-radius: 4px;
}

.alert-banner {
    background-color: #ffdddd;
    border-left: 6px solid #d9534f;
    color: #a94442;
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 4px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #007acc;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: #f8f8f8;
    color: #333;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.datetime {
    font-size: 1rem;
    margin: 10px 0;
    background: #f8f9fa;
    padding: 8px 12px;
    border-left: 4px solid #007BFF;
    border-radius: 4px;
}

#like-button {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
}

#like-button:hover {
    transform: scale(1.2);
}

#like-count {
    font-weight: bold;
    margin-left: 10px;
}

#like-button.liked {
    opacity: 0.5;
    pointer-events: none;
}

#dislike-button {
    font-size: 2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.1s ease;
}

#dislike-button:hover {
    transform: rotate(10deg);
}

#joke-box {
    margin-top: 15px;
    padding: 12px 16px;
    background-color: #f0f0f0;
    border-radius: 10px;
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
    max-width: 600px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#joke-box.visible {
    opacity: 1;
    pointer-events: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1rem;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #007acc;
}

thead {
    background-color: #007acc;
    color: white;
}

thead th {
    padding: 12px 10px;
    text-align: left;
    border: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f2f8ff;
}

tbody td {
    padding: 12px 10px;
    border: 1px solid #ddd;
}

.good {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
}

.moderate {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
}

.poor {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
}

.no-data {
    color: orange;
    font-style: italic;
}

.noaa-alert-toggle {
    background-color: #fdd;
    border: 1px solid #f99;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
    color: #900;
    border-radius: 4px 4px 0 0;
}

.noaa-alert-content {
    display: none;
    background-color: #fff0f0;
    border: 1px solid #f99;
    border-top: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 0 0 4px 4px;
}

.noaa-alert-container {
    margin-bottom: 20px;
}

.mode-info-block h3 {
    margin-top: 0;
}

#decoded-text {
    white-space: pre-wrap;
    font-size: 1rem;
    background: #f0f0f0;
}

.control-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #222;
    font-size: 1rem;
}

select#mode,
textarea#inputText {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

select#mode:focus,
textarea#inputText:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 6px #1e90ff66;
}

.button-group {
    max-width: 400px;
    display: flex;
    gap: 1rem;
}

.button-group button {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background-color: #1e90ff;
    color: white;
    transition: background-color 0.25s ease;
    box-shadow: 0 3px 6px rgb(30 144 255 / 0.4);
}

.button-group button:disabled {
    background-color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.button-group button:hover:not(:disabled) {
    background-color: #1c7ed6;
    box-shadow: 0 4px 10px rgb(28 126 214 / 0.6);
}

.cmd-directory {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 1.5rem 2rem;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 6px;
    box-shadow:
        0 0 10px #0f0,
        inset 0 0 30px #004400;
}

.cmd-category {
    margin-bottom: 2rem;
}

.cmd-prompt {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    user-select: none;
}

.cmd-list {
    list-style: none;
    padding-left: 1.5rem;
}

.cmd-list li {
    margin: 0.4rem 0;
}

.cmd-list li a {
    color: #0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cmd-list li a:hover,
.cmd-list li a:focus {
    color: #afffaf;
    text-decoration: underline;
    outline: none;
}

.cmd-cursor {
    font-weight: 900;
    font-size: 1.5rem;
    user-select: none;
    animation: blinkCursor 1.2s steps(1) infinite;
    margin-left: 0.2rem;
    color: #0f0;
}

@keyframes blinkCursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
