* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
    user-select: none;
    cursor: default;
}

body {
    background: #008080 url('./images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Desktop */
#desktop {
    width: 100vw;
    height: calc(100vh - 40px);
    position: relative;
    padding: 20px;
}

.icon {
    position: absolute;
    width: 120px;
    text-align: center;
    color: white;
    cursor: pointer;
    padding: 8px 4px;
    border: 1px solid transparent;
    text-shadow: 1px 1px 0 #000;
}

.icon:hover {
    background: rgba(0, 0, 128, 0.3);
    border: 1px dotted white;
}

.icon img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 4px;
}

.icon span {
    font-size: 11px;
    font-weight: bold;
    display: block;
}

.danger span {
    color: #ff0000;
}

/* Icon positions */
#aboutIcon { top: 30px; left: 30px; }
#contractIcon { top: 130px; left: 30px; }
#galleryIcon { top: 230px; left: 30px; }
#dontClickIcon { top: 330px; left: 30px; }

/* Windows - Base style */
.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: flex;
    flex-direction: column;
    animation: popIn 0.2s ease-out;
    z-index: 100;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Titlebar variations */
.titlebar {
    padding: 3px 5px;
    font-size: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    cursor: move;
    font-weight: bold;
}

.close {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    color: black;
    border: 1px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    text-align: center;
    line-height: 12px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.close:hover {
    background: #ff0000;
    color: white;
}

/* Content variations */
.content {
    padding: 15px;
    flex-grow: 1;
    background: #ffffff;
    overflow: auto;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    margin: 1px;
    font-size: 24px;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 32px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 10000;
}

#startBtn {
    height: 28px;
    padding: 0 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

#startBtn:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

#startBtn img {
    width: 16px;
    height: 16px;
}

#systemClock {
    margin-left: auto;
    padding: 2px 10px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    font-size: 24px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

/* Button styles for different popups */
.btn-red {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 24px;
    color: #ff0000;
    font-weight: bold;
}

.btn-blue {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 24px;
    color: #0000ff;
    font-weight: bold;
}

.btn-green {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    color: #008000;
    font-weight: bold;
}

.btn-black {
    background: #000000;
    color: white;
    border: 2px solid #000000;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

.btn-yellow {
    background: #ffff00;
    color: #000;
    border: 2px solid #000000;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

/* Link styles */
.link-blue {
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.link-red {
    color: #ff0000;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.link-green {
    color: #008000;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

/* Popup type variations */
.popup-type1 .titlebar { background: #000080; } /* Blue */
.popup-type2 .titlebar { background: #800000; } /* Red */
.popup-type3 .titlebar { background: #008000; } /* Green */
.popup-type4 .titlebar { background: #808000; } /* Olive */
.popup-type5 .titlebar { background: #800080; } /* Purple */
.popup-type6 .titlebar { background: #008080; } /* Teal */
.popup-type7 .titlebar { background: #c0c0c0; color: #000; } /* Gray */
.popup-type8 .titlebar { background: #000000; } /* Black */

.popup-type1 .content { background: #ffffff; }
.popup-type2 .content { background: #fff0f0; }
.popup-type3 .content { background: #f0fff0; }
.popup-type4 .content { background: #fffff0; }
.popup-type5 .content { background: #fff0ff; }
.popup-type6 .content { background: #f0ffff; }
.popup-type7 .content { background: #f0f0f0; }
.popup-type8 .content { background: #000; color: #fff; }

/* Special window effects */
.window-glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

.window-blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Input styles */
.input-field {
    border: 2px inset;
    background: white;
    padding: 3px;
    font-size: 12px;
    width: 100%;
}

.input-field:focus {
    outline: none;
}

/* Radio and checkbox */
.radio-group {
    margin: 10px 0;
}

.radio-group label {
    display: block;
    margin: 3px 0;
    cursor: pointer;
}

/* Progress bar */
.progress-bar {
    height: 20px;
    background: #c0c0c0;
    border: 2px inset;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000080;
    width: 0%;
    transition: width 0.3s;
}

/* Meme gallery styles - MODIFICADO PARA SER MAIOR */
.meme-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.meme-item {
    border: 2px solid #c0c0c0;
    padding: 8px;
    background: white;
    text-align: center;
    border-radius: 3px;
    box-shadow: 2px 2px 0px #808080;
}

.meme-item img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border: 1px solid #000;
    background-color: #f0f0f0;
}

.meme-number {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    font-weight: bold;
}
