@import url('style-menu.css');
@import url('style-rodape.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Areas Principais:  */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

main {
    padding-top: 110px;
}

/* Section */
.section {
    padding: 150px 50px;
    text-align: center;
}

/* Section 1:  */
#section_1 {
    display: flex;
    flex-direction: row;
    min-height: 60vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(233, 237, 201, 1);
}

/* Lado Esquerdo: Text  */
#section_1 .left_text {
    width: 48%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../../imgs/imgs-sobre-jogo/Rectangle\ 1147.png);
}

#section_1 .left_text p{
    width: 80%;
    max-width: 500px;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    color: white;
    margin: 0;
}

/* Lado Direito: Img e button  */
#section_1 .right_logo {
    width: 52%;
    min-height: 60vh;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Animação Logo  */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
  
#section_1 .right_logo img {
    max-width: min(350px, 80%);
    height: auto;
    margin-bottom: 15px;
    animation: float 4s ease-in-out infinite;
}

#section_1 .right_logo button {
    background-color: #3a4c38;
    border: 1.5px solid white;
    color: white;
    padding: 10px 60px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 18px);
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    white-space: nowrap;
}

#section_1 .right_logo button:hover {
    background-color: white;
    color: #3a4c38;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(58, 76, 56, 0.4);
}


/* Section 2:  */
#section_2{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    min-height: 40vh;
    padding: 80px 20px;
}

#section_2 h2{
    font-size: clamp(20px, 3vw, 24px);
    margin: 0;
}

#section_2 p{
    width: 90%;
    max-width: 800px;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin: 0;
}


/*Section 3 */
.filter_section{
    background-color: #3A5A40;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 40vh;
    gap: 30px;
    padding: 80px 20px;
}

.filter_section h2{
    font-size: clamp(20px, 3vw, 24px);
    margin: 0;
}

.filter_section p{
    width: 90%;
    max-width: 800px;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin: 0;
}

.filter_section .buttons_container {
    margin-top: 20px;
    display: flex;          
    justify-content: center; 
    gap: clamp(20px, 8vw, 100px);
    flex-wrap: wrap;
}

.filter_section button {
    width: clamp(50px, 8vw, 65px);
    height: clamp(50px, 8vw, 65px);
    padding: 0;
    background: white;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    perspective: 600px;
    flex-shrink: 0;
}

.filter_section button img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.filter_section button:hover img {
    transform: rotateY(360deg);
}

.filter_section button:hover {
    border-color: #3a6b33;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    background-color: #e7f0de;
}


/* Section 4: Cards */
.cards_section {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

/* Container dos Cards:  */
.cards_box {
    background: #f2f2f2;
    padding: 20px;
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    border-radius: 10px;
}

.card {
    width: 100%;
    max-width: 320px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    justify-self: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: white;
    position: relative;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22.5%;
}

.card-content {
    padding: 20px;
    text-align: center;
    background-color: white;
}

.card-title {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.card-subtitle {
    font-size: clamp(12px, 2vw, 14px);
    color: #666;
    font-weight: 400;
    word-wrap: break-word;
}

.card-footer {
    background: linear-gradient(135deg, #8B5A96, #9B6BA6);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    background-color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.avatar:hover img {
    transform: rotate(5deg); 
}

/* Section 5:  */
#section_5 {
    background-color: rgba(233, 237, 201, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    max-height: 400px; 
    padding: 80px 20px;
    box-sizing: border-box;
}

.container_logo {
    width: 50%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.img_logo {
    width: 100%;
    max-width: 450px; 
    max-height: 320px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.img_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.container_text {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    gap: 12px;
    padding: 20px;
}

.container_text h2 {
    font-size: clamp(20px, 3vw, 24px);
    color: #39573F;
    margin: 0;
}

.container_text p {
    font-size: clamp(14px, 2vw, 16px);
    width: 90%;
    font-weight: 500;
    max-width: 400px;
    color: #39573F;
    line-height: 1.6;
    margin: 0;
}

.container_text button {
    padding: 10px 60px;
    background-color: #3a4c38;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    margin-top: 25px;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 16px);
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    white-space: nowrap;
}

.container_text button:hover {
    background-color: white;
    color: #3a4c38;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(58, 76, 56, 0.4);
}

/* Section 6: Jogo Unity */
#section_game {
    display: none; /* Oculta a seção do jogo inicialmente */
    position: relative;
    padding: 20px;
    text-align: center;
}
#unity-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
#unity-canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9; /* Mantém a proporção */
    background: #231F20;
}
#close-game {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}
#close-game:hover {
    background-color: #cc0000;
}
.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

/* Responsividades: */
@media (max-width: 320px) {
    #section_1 .right_logo button,
    .container_text button {
        padding: 8px 30px;
    }
    
    .filter_section button {
        width: 45px;
        height: 45px;
    }
}


@media (max-width: 480px) {
    .section {
        padding: 40px 15px;
    }

    #section_1 .left_text,
    #section_1 .right_logo {
        padding: 30px 15px;
        min-height: 40vh;
    }

    .filter_section .buttons_container {
        gap: 15px;
    }

    .cards_box {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .card {
        max-width: 100%;
    }

    .container_logo,
    .container_text {
        padding: 20px 15px;
    }

    .img_logo {
        max-width: 250px;
    }
}


@media (max-width: 768px) {
    main {
        padding-top: 80px;
    }

    .section {
        padding: 60px 20px;
    }

    #section_1 {
        flex-direction: column;
        min-height: auto;
    }

    #section_1 .left_text,
    #section_1 .right_logo {
        width: 100%;
        min-height: 50vh;
        padding: 40px 20px;
    }

    #section_1 .left_text {
        order: 2;
    }

    #section_1 .right_logo {
        order: 1; 
    }

    #section_2,
    .filter_section {
        min-height: auto;
        padding: 60px 20px;
    }

    .cards_box {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 15px;
    }

    #section_5 {
        flex-direction: column;
        min-height: auto;
    }

    .container_logo,
    .container_text {
        width: 100%;
        padding: 30px 20px;
    }

    .img_logo {
        max-width: 300px;
    }
}


@media (max-width: 1024px) {
    .section {
        padding: 100px 30px;
    }

    main {
        padding-top: 100px;
    }

    .cards_box {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Matheus Manja  */