/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { font-family: "bf"; src: url("../assets/fonts/Buche-FREE.otf"); }
@font-face { font-family: "ef"; src: url("../assets/fonts/ElvishForce.ttf"); }
@font-face { font-family: "mc"; src: url("../assets/fonts/MouldyCheeseRegular-WyMWG.ttf"); }
@font-face { font-family: "rr"; src: url("../assets/fonts/RumRaisin-Regular.ttf"); }
@font-face { font-family: "cb"; src: url("../assets/fonts/ChargerBold-gXaY.otf"); }



/* ---------------- */
html {
    height: 100%;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("../assets/bgs/rune-bg.png");
    background-color: rgb(148, 106, 0);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.backBtn {
    position: absolute;
    top: 15px;
    left: 18px;
    font-family: "bf";
    text-decoration: none;
    font-size: 26px;
    border: 2px solid;
    padding: 10px 15px;
    background-color: rgb(37, 37, 37);
    color: rgb(255, 236, 187);
}

.container {
    background-color: rgba(0, 0, 0, 0.937);
    width: 70%;
    justify-content: center;
    text-align: center;
    align-items: center;
    min-height: auto;
    height: auto;
}

.title {
    margin-top: 40px;
    font-family: "ef";
    font-size: 70px;
    color: rgb(226, 226, 226);
    text-shadow: 2px 2px 4px rgb(3, 3, 3),
    -2px -2px 4px rgb(0, 0, 0);
    filter: drop-shadow(0 0 15px rgb(139, 118, 0))
    drop-shadow(0 0 25px rgba(197, 168, 0, 0.915))
}

.userInput {
    margin-top: 30px;
    font-family: "cb";
    font-size: 22px;
}

#runeCount,
#drawRunesBtn {
    margin-top: 30px;
    font-family: "mc";
    font-size: 24px;
    padding: 14px;
}

#runeCount {
    margin-right: 20px;
    background-color: rgb(235, 235, 235);
    color: rgb(156, 112, 0);
}

#drawRunesBtn {
    border: 2px solid;
    border-radius: 3px;
    margin-left: 20px;
    color: rgb(231, 231, 231);
    background-color: rgb(148, 106, 0);
    cursor: pointer;
}

.outputBox {
    width: 90%;
    margin: 50px auto 0 auto;
}

.outputBox p {
    padding: 10px;
    border-radius: 6px;
    justify-content: center;
    margin-bottom: 1rem;
}

#runeOutput {
    display: flex;
    flex-direction: row;
    gap: 25px;
    font-family: "rr";
    font-size: 24px;
    color: rgb(240, 240, 240);
    margin: 20px 0px;
}

.rune-card {
    animation: fadeIn 1.2s ease-out forwards;
    background: rgb(26, 26, 26); /* Slightly lighter so Firefox doesn't darken PNG edges */
    border: 3px solid rgba(255, 200, 50, 0.4);
    border-radius: 12px;
    padding: 23px;
    margin: 20px 4px;
    width: 90%;
    max-width: 300px;
    text-align: center;

    /* FIREFOX-SAFE GLOW */
    box-shadow:
        0 0 15px rgba(255, 200, 50, 0.25),
        0 0 25px rgba(255, 200, 50, 0.15),
        0 0 10px rgba(255, 200, 50, 0.45);
}

.rune-card img.runePic {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 15px;

    /* FIREFOX COLOR FIX */
    image-rendering: auto;
    color-interpolation-filters: sRGB;
}


.rune-card .name {
    font-family: "rr";
    font-size: 32px;
    color: rgb(241, 200, 36);
    margin: 12px 0px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.rune-card .meaning {
    font-family: "bf";
    font-size: 20px;
    line-height: 1.5;
    color: white;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .backBtn {
        font-size: 18px;
        top: 5px;
        left: 22px;
    }

    .container {
        width: 90%;
        min-height: auto;
        height: auto;
    }

    .title {
        margin-top: 78px;
        font-size: 54px;
        line-height: 0.95;
        padding: 0px 30px;
    }

    .userInput {
        margin-top: 22px;
        font-size: 20px;
    }

    #runeCount,
    #drawRunesBtn {
        margin-top: 18px;
        font-size: 19px;
    }

    #runeCount {
        margin-right: 10px;
    }

    #drawRunesBtn {
        margin-left: 10px;
    }

    .outputBox {
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 20px auto 0 auto;
    }

    #runeOutput {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-direction: column;
    }

    .rune-card {
        max-width: 200px;
        margin: 10px 4px;
        text-align: center;
    }

    .rune-card img.runePic {
        width: 85px;
    }

    .rune-card .name {
        font-size: 30px;
    }

    .rune-card .meaning {
        font-size: 19px;
        font-weight: bold;
        line-height: 1.2;
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    .backBtn {
        font-size: 26px;
        top: 12px;
        left: 70px;
    }

    .title {
        font-size: 68px;
        padding: 0px 30px;
        margin-top: 95px;
    }

    .container {
        width: 85%;
    }

    #runeOutput {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-direction: column;
    }
}