/* Windows ME / 360noscope era styling */
@font-face {
    font-family: 'MS Sans Serif';
    src: url('https://unpkg.com/98.css@0.1.16/dist/ms_sans_serif.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MS Sans Serif';
    src: url('https://unpkg.com/98.css@0.1.16/dist/ms_sans_serif_bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'MS Sans Serif', sans-serif;
    background: #008080 url('background.svg') no-repeat center center fixed;
    background-size: cover;
    color: #000000;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    cursor: url('cursor.svg'), auto;
    overflow-x: hidden;
    position: relative;
}

.window {
    background-color: #c0c0c0;
    border: 2px solid #000000;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #0a0a0a, 4px 4px 10px rgba(0, 0, 0, 0.5);
    width: 600px;
    max-width: 95%;
}

.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 2px 3px 3px;
}

.title-bar-text {
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    border: 1px solid #000000;
    background-color: #c0c0c0;
    margin-left: 2px;
    position: relative;
    display: block;
}

.title-bar-controls button:before {
    content: '';
    position: absolute;
    left: 4px;
    top: 3px;
    width: 6px;
    height: 2px;
    background: #000000;
}

.title-bar-controls button[aria-label="Close"]:before {
    content: '×';
    position: absolute;
    left: 3px;
    top: -2px;
    width: auto;
    height: auto;
    background: transparent;
    font-size: 12px;
}

.window-body {
    margin: 8px;
    padding: 10px;
    background-color: #c0c0c0;
}

.form-container {
    background-color: #c0c0c0;
    border: 1px solid #7b7b7b;
    padding: 15px;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 5px;
    border: 2px inset #a9a9a9;
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: 'MS Sans Serif', sans-serif;
}

.radio-group {
    margin-top: 5px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 5px 15px;
    border: 2px outset #a9a9a9;
    background-color: #c0c0c0;
    color: #000000;
    font-family: 'MS Sans Serif', sans-serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 1px 1px 0px #ffffff, inset 1px 1px 0px #ffffff;
}

button:active {
    border-style: inset;
    box-shadow: none;
}

#submit-btn {
    background-color: #00aa00;
    color: white;
    font-size: 14px;
    animation: pulse 2s infinite;
}

#reset-btn {
    background-color: #aa0000;
    color: white;
}

.status-bar {
    border-top: 1px solid #7b7b7b;
    padding: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.status-bar p {
    margin: 0;
}

/* Marquee and blinking text */
marquee {
    background-color: #ffff00;
    color: #ff0000;
    font-weight: bold;
    padding: 5px;
    margin-bottom: 15px;
    border: 2px inset #a9a9a9;
}

.blink {
    animation: blink 1s step-end infinite;
}

/* Popup styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #c0c0c0;
    border: 2px solid #000000;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #0a0a0a, 4px 4px 10px rgba(0, 0, 0, 0.5);
    width: 300px;
}

.popup-body {
    padding: 20px;
    text-align: center;
}

.error-icon, .success-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

/* Animations */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 360noscope era elements */
.form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('flame.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .window {
        width: 95%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        margin-bottom: 10px;
    }
}

/* Achtergrond objecten */
.bg-object {
    position: fixed;
    z-index: -1;
    display: none;
}

#airplane {
    width: 100px;
    height: 50px;
}

#ufo {
    width: 80px;
    height: 40px;
}

#bird {
    width: 60px;
    height: 40px;
}