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

:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --background-color: #F0F8FF;
    --text-color: #333;
    --correct-color: #28a745;
    --incorrect-color: #dc3545;
    --syllable-bg: #fff;
    --syllable-border: #ddd;
    --syllable-hover-bg: #f0f0f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans', 'Cal Sans', 'Space Mono', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    user-select: none;
}

#game-container {
    width: 90%;
    max-width: 900px; /* antes 600px */
    padding: 30px;    /* mais espaçamento interno */
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 30px auto;
    transition: all 0.3s ease;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

#progress-bar {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

#progress-bar .star.filled {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

main {
    margin-bottom: 20px;
}

#instructions {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

#word-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.syllable {
    font-size: 2.5rem;
    font-weight: 400;
    padding: 15px 25px;
    background-color: var(--syllable-bg);
    border: 2px solid var(--syllable-border);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.syllable:hover {
    transform: translateY(-5px);
    background-color: var(--syllable-hover-bg);
}

#feedback {
    font-size: 1.5rem;
    font-weight: bold;
    height: 30px;
    margin-top: 15px;
}

#feedback.correct {
    color: var(--correct-color);
}

#feedback.incorrect {
    color: var(--incorrect-color);
}

footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#gallery-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#gallery-button:hover {
    background-color: #ffb300;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

#new-sticker-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-top: 15px;
}

/* ======== GALERIA DE ADESIVOS (CORRIGIDA) ======== */
#sticker-collection {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas fixas */
    gap: 12px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    justify-items: center;
    align-items: center;
    padding: 10px;
}

#sticker-collection img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

#sticker-collection img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ======== SÍLABAS ======== */
.syl-btn {
    font-size: 2rem;
    font-weight: 700;
    padding: 20px 30px;
    background-color: var(--syllable-bg);
    border: 3px solid var(--syllable-border);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.syl-btn:hover {
    transform: scale(1.1);
    background-color: var(--syllable-hover-bg);
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    .syl-btn {
        font-size: 2.2rem;
        padding: 15px 20px;
    }
    #instructions {
        font-size: 1rem;
    }
    #gallery-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }
    #sticker-collection {
        grid-template-columns: repeat(3, 1fr); /* reduz pra 3 colunas em telas pequenas */
    }
    #sticker-collection img {
        width: 70px;
        height: 70px;
    }
	
	/* Aumenta proporcionalmente em telas grandes */
@media (min-width: 1024px) {
  html {
    font-size: 18px; /* aumenta tudo (textos, botões, etc.) */
  }

  #game-container {
    max-width: 1100px;
    transform: scale(1.2);
    transform-origin: top center;
  }
}

	
}
