@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600&display=swap');

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

.controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

h1 {
    color: #0078d7;
}

#download-btn, #run-bsod-btn {
    background-color: #0078d7;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#download-btn:hover, #run-bsod-btn:hover {
    background-color: #005a9e;
}

.ai-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#ai-prompt {
    padding: 9px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 300px;
}

#ai-generate-btn {
    background-color: #f0ad4e; /* A nice orange */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ai-generate-btn:hover {
    background-color: #ec971f;
}

#ai-generate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

#color-picker {
    padding: 2px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 5px;
    vertical-align: middle;
    cursor: pointer;
}

#random-color-btn {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#random-color-btn:hover {
    background-color: #4cae4c;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

#bsod {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #0078d7;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    padding: 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

#bsod:fullscreen {
    cursor: none;
}

.sad-face {
    font-size: 6rem;
    margin: 0;
    line-height: 1;
    font-weight: 300;
}

.main-message {
    font-size: 1.25rem;
    margin-top: 2rem;
}

.progress-text {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.info-section {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

#qrcode-img {
    width: 120px;
    height: 120px;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-text p {
    margin: 0.5rem 0;
}

span[contenteditable="true"] {
    display: inline-block;
    min-width: 1ch;
}

[contenteditable="true"] {
    outline: 2px dashed rgba(255, 255, 255, 0.5);
    cursor: text;
    transition: outline 0.2s;
}

[contenteditable="true"]:focus {
    outline: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
}