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

body {
    font-family: 'Inter', sans-serif;
    background-color:#0f0f0f;
    color:#d1d1d1;
    text-align: justify;
    line-height:1.6;
}

header{
    background: linear-gradient(#1c1c1c,#111);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #DEB371;
}

.layout-principal {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    padding: 20px;
    gap: 40px;
}


/* Estilos para o conteúdo central */

.inicio{
    max-width: 750px;
    margin: 20px auto 60px;
    color: #d1d1d1;
    font-size: 1.1rem;
}

.magias_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
}

.card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:#181818;
    border-radius: 10px;
    border: 2px solid #DEB371;
    padding: 25px;
    transition: all 0.35s ease;
}

.card a{
    color: inherit;
    text-decoration: none;
}

.card h2:hover {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: scale(1.1);
}

.card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    image-rendering: pixelated;
}


.feiticos{
    color: #74ACDF;
}

.milagres{
    color: #DEB371;
}

.piromancias{
    color: #FF4500;
}

.sortilegios{
    color: #8A2BE2;
}

.card.feiticos:hover {
    box-shadow: 0 0 20px rgba(116, 172, 223, 0.6);
    border-color: #74ACDF;
}

.card.milagres:hover {
    box-shadow: 0 0 20px rgba(222, 179, 113, 0.6);
    border-color: #DEB371;
}

.card.piromancias:hover {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    border-color: #FF4500;
}

.card.sortilegios:hover {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    border-color: #8A2BE2;
}

/* Estilos para as sidebars */

.sidebar {
    background:#181818;
    border-radius:8px;
    border:1px solid #DEB371;
    padding: 20px;
    align-self:start;
}

.sidebar h3 {
    color: #DEB371;
    margin-bottom: 15px;
    border-bottom: 1px solid #c9a227;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #DEB371;
}

.sidebar.navegacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar.navegacao ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.curiosidades {
    font-size: 1rem;
}

/* Estilos para footer e redes sociais */

footer {
    background: linear-gradient(#1c1c1c, #111);
    border-top: 2px solid #DEB371;
    padding: 35px 20px;
    margin-top: 60px;
}

.footer-redes-sociais {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-redes-sociais a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #222;
    border: 2px solid #DEB371;
    transition: all 0.3s ease;
}

.footer-redes-sociais a:hover {
    background: #DEB371;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(222, 179, 113, 0.3);
}

.footer-redes-sociais img {
    width: 28px;
    height: 28px;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.footer-redes-sociais a:hover img {
    filter: brightness(0.1);
}


/* Estilos pre definidos para as paginas das magias */


.secao{
    display: flex;
    margin: 10px 100px 50px 100px;
    border: 3px solid;
    background-color: #1a1a1a;
    padding: 20px;
    gap: 30px;
}

.lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, 256px);
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    width: 100%;
}

.lista div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    padding: 15px;
    background-color: #121212;
    transition: transform 0.2s ease;
    height: 280px;
}

.lista img{
    width: 150px;
    height: 150px;
    object-fit: contain;
    image-rendering: pixelated;
}

.conteudo-magias {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.iframe-detalhes {
    width: 100%;
    min-height: 70vh;
    border: 2px solid;
    border-radius: 5px;
    background-color: #121212;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Estilos compartilhados para páginas de detalhes dentro do iframe */
.iframe-body {
    background-color: #121212;
    color: #d1d1d1;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 15px;
}

.cabecalho-magia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #74ACDF;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cabecalho-magia h2 {
    color: #DEB371;
    font-family: 'Cinzel', serif;
    margin: 0;
    font-size: 1.5rem;
}

.requisitos {
    background-color: #121212;
    border: 1px solid #E0681D;
    padding: 5px 10px;
    color: #E0681D;
    font-weight: bold;
    border-radius: 4px;
}

.info-magia {
    display: flex;
    gap: 20px;
}

.texto-magia {
    flex: 1;
}

.texto-magia p {
    margin-top: 10px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.destaque {
    color: #74ACDF;
    font-weight: bold;
}

.gif-magia {
    max-width: 620px;
    height: auto;
    border: 2px solid #E0681D;
    border-radius: 5px;
    align-self: flex-start;
    object-fit: contain;
}

.link-magia {
    text-decoration: none;
    color: inherit;
}