:root {
    --main-purple: #7b61ff;
    --light-purple: #e6e0ff;
    --dark-blue: #1d1d42;
    --light-bg: #f0f0f4;
    --info-bg: #e6e0ff;
    --convert-bg: #7b61ff;
    --text-color: #444;
    --text-light-color: #999;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 16px;
    display: flex; position: relative;
    flex-direction: column;
    align-items: center;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 600px;
    padding: 12px 24px 5px 24px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ccc;
}

/*@media (max-width: 480px) {*/
/*    .container {*/
/*        margin: 16px;*/
/*        padding: 20px;*/
/*    }*/
/*}*/

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.info-button {
    background-color: var(--info-bg);
    color: var(--main-purple);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.intro {
    font-size: 0.95rem;
    color: #444;
    margin-top: 16px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    max-width: 80%;
    margin: 20px auto;
}

.input-row {
    display: flex;
    border: 2px solid var(--main-purple);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.input-row input,
.input-row select {
    padding: 10px;
    border: none;
    font-size: 1rem;
    width: 50%;
}

.input-row select {
    border-left: 1px solid var(--main-purple);
    background: var(--light-purple);
    border-radius: 0;
}

.convert-btn {
    background-color: var(--convert-bg);
    color: white;
    padding: 12px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
}

.result {
    font-size: 1.4rem;
    margin-top: 12px;
    color: var(--dark-blue);
    font-weight: bold;
}

.stadium-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.stadium-icon {
    height: auto;
}

.mes-estadis {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-light-color);
    width: 100%;
    grid-column: 1 / -1; /* Si uses grid */
}

.screenshots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.screenshots button {
    background-color: var(--convert-bg, #6c63ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.1s;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshots button:hover,
.screenshots button:focus {
    background-color: #554fd8;
    transform: translateY(-2px) scale(1.03);
}

.url-footer{
    color: var(--text-light-color);
    margin-top: 10px;
}

.authorCredit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #999;
    text-align: center;
}
.authorCredit a {   
    color: #999;
    text-decoration: underline;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 12px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    text-align: left;
    font-size: 0.95rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

#stickyBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

#stickyBanner.ocult {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

#stickyBanner a {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}
#stickyBanner img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}

#stickyBanner div {
    position: absolute;
    top: -20px;
    right: 20px;
    background: black;
    color: white;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    padding: 4px 12px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .input-row select {
        font-size: small;
    }

    .input-group {
        max-width: 100%;
    }
}