* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    font-family: Arial, Helvetica, sans-serif;
    background: #8CC641;
}

h1 {
    text-align: center;
    color: black;
}

.input-area {
    text-align: center;
    margin: 10px 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

input {
    color: black;
    background: whitesmoke;
    padding: 12px;
    width: 220px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

.card {
    background: #a9e45d;
    color: black;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.card h2 {
    margin-top: 0;
}

ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 6px;
    line-height: 24px;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #0d6138;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    font-size: 15px;
}

button:hover {
    opacity: .85;
}

.full {
    background: #999;
    cursor: not-allowed;
}

.remove {
    float: right;
    width: auto;
    padding: 2px 6px;
    margin: 0;
    background: #d62828;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
}

.timestamp {
    font-size: 0.75em;
    color: #333;
    margin-left: 4px;
    opacity: 0.8;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teams {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.bottom-section {
    display: flex;
    gap: 20px;
    width: 100%;
}

.bottom-section .card {
    flex: 1;
    max-width: calc(50% - 10px);
}

@media (max-width: 1100px) {
    .teams {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .teams {
        grid-template-columns: 1fr;
    }
    .bottom-section {
        flex-direction: column;
    }
    .bottom-section .card {
        max-width: 100%;
    }
}

#gifBackground {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-auto-rows: 90px;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

#gifBackground img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    align-self: center;
    justify-self: center;
}

body > *:not(#gifBackground) {
    position: relative;
    z-index: 1;
}

.admin-banner {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.editable-field {
    transition: background 0.2s, outline 0.2s;
    border-radius: 4px;
    padding: 2px 4px;
}

.editable-field:hover {
    background: rgba(255, 255, 255, 0.5);
    outline: 1px dashed #0d6138;
    cursor: pointer;
}

[contenteditable="true"] {
    outline: 2px solid #0d6138 !important;
    background: #ffffff !important;
    color: #000 !important;
    white-space: pre-wrap;
}

#infoTextSection p {
    margin-top: 0;
    margin-bottom: 12px;
}