
body {
    background: #b45f06;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.06) 3px,
        transparent 3px,
        transparent 8px
    );
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

/* CONTENITORE */
.page {
    max-width: 1000px;
    margin: 40px auto;
    background: #f4e1c1;
    border: 4px solid #000;
    padding: 20px;
}

/* HEADER */
header {
    background: #ffcc00;
    border: 3px dashed #000;
    padding: 15px;
    margin-bottom: 30px;
}

header a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

header h1 {
    font-family: "Comic Sans MS", Arial;
    font-size: 36px;
    margin-top: 10px;
}

/* BACHECA */
.board {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* === CARTOLINA === */
.card {
    width: 220px;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
    transform: rotate(-1deg);
}

.card:nth-child(2n) {
    transform: rotate(2deg);
}

.card:nth-child(3n) {
    transform: rotate(-3deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* FACCE */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid #000;
    box-shadow: 5px 5px 0 #000;
    padding: 10px;
}

/* FRONT */
.card-front {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front h2 {
    font-size: 18px;
    background: #ff6600;
    color: #fff;
    padding: 6px 8px;
}

/* BACK */
.card-back {
    background: #222;
    color: #f1f1f1;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 13px;
}

.card-text {
    margin-bottom: 10px;
}

/* LINK LIST */
.card-links {
    list-style: square;
    padding-left: 18px;
}

.card-links li {
    margin-bottom: 5px;
}

.card-links a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.card-links a:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    background: #000;
    color: #fff;
    padding: 10px;
    font-size: 12px;
}