/*----------Global Styles----------*/
:root {
    --bg-main: #0f0202;
    --bg-secondary: #1a0505;
    --red-main: #5a0f0f;
    --red-strong: #8b1e1e;
    --gold: #c9a14a;
    --text: #f5e6c8;
}


* {
    image-rendering: pixelated;
    margin: 0;
    padding: 0;
    font-family: "Jersey 10", sans-serif;
}

/*Definir tamanho da fonte para o elemento html (global - De todo o site)*/
html {
    scroll-behavior: smooth;
    font-size: 20px; /* try 18–20px for Jersey 10 */
}

/*
/-------Responsive Design for Mobile Devices-------\    
Use media queries to adjust font sizes and layout for smaller screens. For example:
Não mexer ou trocar qualquer coisa deste comentário, usar de referencia para o desenvolvimento de responsividade do site, principalmente para mobile.
@media (max-width: 600px) {
    html {
        font-size: 18px;
    }

    .hero {
        padding: 20px;
    }
}
*/

/*Global background for the site*/
body {
    font-size: 1rem;
    background: radial-gradient(circle at top, #2b0a0a, #0f0202);
    color: var(--text);
}

/* Global font family for all text elements */
.jersey-10-regular {
  font-family: "Jersey 10", sans-serif;
  font-style: normal;
}  

/*-----------End Global Styles-----------*/

/* largura da barra */


::-webkit-scrollbar {
  width: 10px;
}

/* fundo */
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

/* "pegador" (thumb) */
::-webkit-scrollbar-thumb {
  background: var(--red-strong);
  border-radius: 20px;
  border: 1px solid var(--gold);
}

/* hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--red-main);
}


/*----------Header----------*/

/*Define tamanho, cor e espacaçamento ao background e aos elementos do header (Titulo)*/
header{
    background: linear-gradient(to right, #1a0505, #2b0a0a);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    color: white;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    text-size-adjust: 100%;
    font-size: 1.5rem;
}

/*definir tamanho para o elemento logo
/*Defines position and size*/
.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    filter: contrast(1.1) saturate(1.6);
}

/*Defines spacing and layout for the logo area*/
.logo-area{
    gap: 10px;
    display: flex;
    transition: 0.3s;
    cursor: pointer;
}
/*Responsible for the hover effect (Animation)*/
.logo-area:hover{
    scale: 1.10;
    transition: 0.3s;
}

/*The all might "Container" responsible for responsive and btt layout*/
.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--red-strong);
    border-radius: 10px;
    justify-content: center;
    margin-bottom: 4px;
    overflow: hidden;
}

@media (max-width: 600px) {

    
        .container .btt:nth-child(n+4) {
        display: none;
    }
}

/*btt - button of the container "item 1" "item 2" "..." "..."*/
.btt { 
    color: var(--text);
    background: #5a0f0f;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    font-size: 1rem;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 30px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    flex-grow: 2;
    gap: 8px;
    transition: all 0.5s ease;
}

.btt img {
    width: 20px;
    height: 20px;
    margin-right: 5px;

}

/*button animation (again)*/


.btt:hover {
    transform: translateY(-4px); /* sobe em vez de crescer */
    background: #8b1e1e;
    box-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff0000;        
}

.btt.click {
    transform: translateX(-4px);
}



a{
    text-decoration: none;
    color: white;
}


/*----------Header End----------*/


/*-----------Hero Section-----------*/
.hero {
    background: #1a0505;
    border-radius: 29px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    border: 2px solid var(--gold);

}   

.title {
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    padding: 1%;
    border-radius: 10px;
    border-radius: 29px 29px 0 0;
    background: #5a0f0f;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.hero h1 {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    padding: 1%;
    color:var(--text);
    text-shadow: black 1px 1px 2px;
}

.hero p {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    padding: 1%;
    color: rgb(255, 255, 255);
    text-shadow: black 1px 1px 2px;
}

@media(max-width: 600px){
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

        .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-content .post:nth-child(n+3) {
        display: none;
    }
}






.hero-content {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
}


.post{
    padding: 20px 10px;
    border-radius: 10px;
    background: #2b0a0a;

    margin: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid #5a0f0f;
    position: relative;
    transition: 0.3s;
}

.post:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.post img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-bottom: 2px solid var(--gold);
    filter: contrast(1.1) saturate(1.1);
}

/* Adjust the height as needed */
/*Create a space between sections*/
.space {
    height: 1px; 
}

/*--------------Category Section--------------*/
.category {
    flex-wrap: wrap;
    flex-grow: 2;
    justify-content: space-around;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--bg-main);
    padding: 10px 20px;
    border-radius: 29px;
    margin: 10px;
    gap: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    border-top: 2px solid var(--gold);
    color: var(--text);
    letter-spacing: 1px;
}



.Quiz {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid var(--gold);
    width: 500px;
    text-align: center;
    justify-content: center;
    border-radius: 29px;
}

@media (max-width: 600px) {
    .Quiz {
        width:90%;

    }

    .Quiz h2 {
        font-size: 1.5rem;
    }
    .Quiz p {
        font-size: 1rem;
    }

    .Quiz .btt-quiz {
        width: 50%;
    }
}

.btt-quiz {
    color: var(--text);
    background: #5a0f0f;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    font-size: 1rem;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 30px;
    margin: 10px auto;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btt-quiz:hover {
    transform: translatey(-4px);
    background: #8b1e1e;
    box-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000;  
}

/* Work with this later*/
/*
a:visited{

    color: green;
}
*/


/*


h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p, a {
    font-size: 1rem;
}

.btt {
    font-size: 1.1rem;
}*/
footer{
    border-radius: 50px; 
    padding: 2% ;
    margin: 10px;
    color: white;
    background: #1a0505;
    border-top: 2px solid var(--gold);
    text-align: center;
}

.B-cat{
    cursor: pointer;
    background-color: turquoise;
    border-radius: 10px;
    margin-top: -100px;
    margin-bottom: 5px;
    }

.B-cat:hover {
background-color: aqua;
    }

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