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

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: Arial, sans-serif; */
    font-family: "Exo", sans-serif;
    background-color: #0A2F88;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 20px;
    background-color: #0A2F88;
}

header .logo img {
    width: 100px;
}

header .logo img:hover {
    transform: scale(1.05);
    transition: 0.3s all;
}

header .logo img:active {
    transform: scale(1.02);
    transition: 0.3s all;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    font-weight: 800;
    margin-bottom: 0;
    margin-right: 35px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    color: #00A550;
    transition: 1s all;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px;
    transition: 0.3s;
}

.home {
    text-align: center;
    padding: 50px;
    background-color: #041946;
}

.home .logo-large {
    width: 100%;
    max-width: 500px; 
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto; 
}

.home h1 {
    font-size: 2.5rem;
    font-family: "Exo", sans-serif;
    font-weight: 800;
    letter-spacing: 10px;
    /* margin-top: 20px; */
}

/* Estado inicial antes da animação */
.home .logo-large, 
.home h1 {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

/* Estado final após a animação */
.home.animate .logo-large, 
.home.animate h1 {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    font-size: 2rem;
    animation: pulse 0.9s alternate infinite ease-in-out;
}

@keyframes pulse {
    to {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.jogos {
    text-align: center;
    background-color: #00A550;
    padding: 35px 0 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.jogos h2 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: "Exo", sans-serif;
    color: #fff;
    margin-bottom: 20px;
}

/* Estado inicial antes da animação */
.jogos h2,
.jogos img {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

/* Estado final após a animação */
.jogos.animate h2,
.jogos.animate img {
    opacity: 1;
    transform: scale(1);
}

.jogos h2,
.noticias h2,
.contato h2,
.noticias-todas h2 {
    display: inline-block;
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.jogos img {
    max-width: 300px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

.jogos img:hover {
    transform: scale(1.05);
}

.jogo-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.jogo-container img {
    width: 100%;
    transition: opacity 0.3s ease;
}

.jogo-container:hover img {
    opacity: 0.7;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2686c7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: #543200 4px 4px 0 0;
    cursor: pointer;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jogo-container:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.noticias {
    background-color: #00205B;
    padding: 50px 20px 25px 20px;
    text-align: center;
}

.noticias-todas {
    background-color: #00205B;
    padding: 60px 20px;
    text-align: center;
}

.noticias h2, .noticias-todas h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: "Exo", sans-serif;
    color: #fff;
}

.container-noticias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Estado inicial antes da animação */
.noticias h2, .noticias-todas h2 {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.noticias .container-noticias, .noticias-todas .container-noticias {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out 0.3s;
}

/* Estado final após a animação */
.noticias.animate h2, .noticias-todas.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.noticias.animate .container-noticias, .noticias-todas.animate .container-noticias {
    opacity: 1;
    transform: translateX(0);
}

.noticias .noticia, .noticias-todas .noticia {
    display: block;
    width: 300px;
    margin: 5px 20px 15px 20px;
    text-align: center;
    background-color: #0041AB;
    padding: 20px;
    border-radius: 10px;
}

.noticias .noticia img, .noticias-todas .noticia img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.noticias .titulo-noticia, .noticias-todas .titulo-noticia {
    margin-top: 10px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.noticias .descricao-noticia, .noticias-todas .descricao-noticia {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limita o texto a 3 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 70px;
}

.noticias button,
.ver-mais,
.noticias-todas button {
    background-color: #00A550;
    color: #fff;
    border: none;
    padding: 12px 28px;
    margin-top: 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: Arial;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.noticias button:hover,
.ver-mais:hover,
.noticias-todas button:hover {
    background-color: #00833B;
}

.noticias button:active,
.ver-mais:active, 
.noticias-todas button:active {
    position: relative;
    top: 1px;
}

.ver-mais {
    /* display: none; */
    display: inline-block;
    margin: 20px auto;
    text-decoration: none;
    color: #fff;
}

/* Estado inicial antes da animação */
.noticias .ver-mais {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out 0.3s;
}

/* Estado final após a animação */
.noticias.animate .ver-mais {
    opacity: 1;
    transform: translateY(0);
}

.contato {
    background-color: #068AE1;
    padding: 40px 20px 50px 20px;
    text-align: center;
}

.contato h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: "Exo", sans-serif;
    color: #fff;
}

.container-contato {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estado inicial antes da animação */
.contato h2 {
    opacity: 0;
    transform: translateY(0px);
    transition: all 0.8s ease-out;
}

.contato .container-contato {
    opacity: 0;
    transform: translateX(0px);
    transition: all 0.8s ease-out 0.3s;
}

/* Estado final após a animação */
.contato.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.contato.animate .container-contato {
    opacity: 1;
    transform: translateX(0);
}

.contato form {
    max-width: 600px;
    background-color: #f7f7f7;
    box-shadow: 5px 5px 19px 5px rgba(0, 0, 0, 0.75);
    border: 2px solid #090a0f;
    padding: 15px 18px;
    border-radius: 25px;
    margin-top: 3px;
}

.contato input,
.contato textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    outline: none;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 15px;
    background-color: rgba(230, 230, 230, 0.6);
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: 0.3s;
    font-family: 'Roboto', sans-serif;
    color: #000;
}

.contato input:hover, 
.contato textarea:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.contato input:focus,
.contato textarea:focus {
    background-color: #fff;
    border: 2px solid rgb(15, 19, 27, 0.47);
}

.contato button {
    background-color: #00A550;
    color: #fff;
    border: none;
    padding: 12px 28px;
    margin-top: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-family: Arial;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contato button:hover {
    background-color: #00833B;
}

.contato button:active {
    position: relative;
    top: 1px;
}

footer {
    background-color: #0A2F88;
    text-align: center;
    padding: 5px 0 20px 0;
    margin-top: 20px;
    font-family: "Exo", sans-serif;
}

footer p {
    margin-bottom: 10px;
}

footer .social-media a {
    cursor: default;
}

footer .social-media i {
    width: 30px;
    margin: 0 10px;
    color: gray;
    font-size: 1.2rem;
    cursor: pointer;
}

footer .social-media i:hover {
    transition: 0.4s;
    transform: scale(1.3);
}

.fa-facebook:hover {
    color: #3b5998;
}

.fa-instagram:hover {
    color: #c13584;
}

.fa-youtube:hover {
    color: #f70000;
}

/* Modal Notícias */
.modal-header {
    padding: 20px 20px 5px 20px;
    border-bottom: 1px solid rgb(128, 128, 128, 0.5);
}

.modal-title {
    color: #000;
    font-size: 2rem;
    font-weight: 800;
}

.modal-body {
    color: #000;
    border-bottom: 1px solid rgb(128, 128, 128, 0.5);
}

.modal-body img {
    border: 1px solid gray;
}

.modal-footer button {
    padding: 8px 20px;
    border-radius: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-footer button:active {
    position: relative;
    top: 1px;
}

@media (max-width: 768px) {

    header nav ul {
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #0A2F88;
        width: 100%;
        max-width: 100%;
        display: none;
        padding: 20px;
    }

    header nav ul.show {
        display: flex;
        z-index: 1;
    }

    .hamburger {
        display: flex;
    }

    .noticias .descricao-noticia, .noticias-todas .descricao-noticia {
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .noticias .descricao-noticia, .noticias-todas .descricao-noticia {
        min-height: 40px;
    }
}