:root {
    --main-bg: #0a0a23;
    --main-gold: #ffd700;
    --main-white: #f5f5f5;
    --shadow: 0 0 15px rgba(0,0,0,0.6);
}

body{
    margin: 0;
    font-family: "Libre Caslon Display", serif;
    font-weight: 400;
    font-style: normal;
    background: var(--main-bg);
    color: var(--main-white);
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar ul{
    display: flex;
    justify-content: center;
    padding: 10px;
    margin: 0;
    list-style: none;
}

.navbar a{
    color: var(--main-gold);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

section{
    padding: 50px 15px;
    text-align: center;
}

h1{
    color: var(--main-gold);
}

h2{
    color: var(--main-gold);
}

.navbar a:hover {
    color: var(--main-white);
}

.characters .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.card {
    width: 260px;
    height: 260px;
    perspective: 1000px;
}

.inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card:hover .inner {
    transform: rotateY(180deg);
}

.face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.front {
    background: gold;
    color: black;
    flex-direction: column;
}

.back {
    background: #222;
    color: white;
    transform: rotateY(180deg);
}

img{
    height: 200px;
    width: 200px;
    border: 0px solid #000000;
    border-radius: 10px;
}

.spells ul {
    list-style: none;
    padding: 0;
}
.spells li {
    margin: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--main-gold);
    transition: all 0.4s ease;
}
.spells li:hover {
    color: var(--main-gold);
    text-shadow: 0 0 10px var(--main-gold);
    transform: translateX(10px);
}

.sounds .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.snd {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    box-shadow: var(--shadow);
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.snd:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

audio {
    width: 200px;
    height: 30px;
    border: 2px solid var(--main-gold);
    border-radius: 20px;
    box-shadow: 0 0 10px var(--main-gold);
}


h1::after {
    content: "✨";
    color: var(--main-gold);
}
h2::after {
    content: "✨";
    color: var(--main-gold);
}

.fot::first-letter {
    font-size: 1.5em;
    color: var(--main-gold);
}

footer{
    text-align: center;
}