*{
    margin: 0;
}

html{
    height: 100%;
    background-color: black;
}

@font-face{
    font-family: "Minecraft Seven v2";
    src:url(./assets/fonts/Minecraft-Seven_v2.ttf) format("truetype");
}

body{
    font:inherit;
    font-family:"Minecraft Seven v2", sans-serif;
    padding:40px;
    background-color:black;
    color:white;
}

/*Default hyperlink colors*/
a{color:lime;}
a:hover{color:deepskyblue;}
a:active{color:red;}
a:visited{color:yellow;}

.pickpocketerText {
    transition: opacity 0.6s ease;
    text-shadow: 2px 0 #555, -2px 0 #555, 0 2px #555, 0 -2px #555,
                 1px 1px #555, -1px -1px #555, 1px -1px #555, -1px 1px #555;
}

/*Changelog colors*/
.additions {
    list-style-type: "+ ";
    color: lime;
}
.changes {
    list-style-type: "* ";
    color: yellow;
}
.fixes {
    list-style-type: "- ";
    color:red;
}

/*Use for laying elements out horizontally*/
.row{
    display: flex;
    flex-direction: row;
}

/*For displaying items on the item page*/
.itemDiv {
    width: 46%;
    height: 250px;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: space-between;
    font-size: 1.5em;
    border-radius: 0;
    border: 3px solid white;
    transition: border 1s ease;
    padding: 20px;
    margin: 5px 5px;
    z-index: 2;
}
.description {transition: opacity 0.6s ease;}
.itemName {transition: opacity 0.6s ease;}
.itemImage {transition: opacity 0.6s ease;}
.mineButton {
    margin: auto 5px 5px;
    padding: 5px 5px;
    cursor: pointer;
    font: inherit;
    width:50%;
    align-self: center;
    background-color: #999999;
    color: black;
    text-align: center;
    text-decoration: none;
    border: none;
}
.mineButton:hover {
    background-color: #BBBBBB;
    color: black;
}
.mineButton:active {
    background-color: #777777;
}
.mineA{
    color: black;
    text-align: center;
    text-decoration: none;
}
.mineA:hover {
    color: black;
    background-color: #BBBBBB;
}
.mineA:active {background-color: #777777;}

.mineA:visited {color:black}

.fakeButton{
    width:50%;
    height: 88%;
    padding: 0;
    align-self: center;
    align-content: center;
    text-align: center;
    margin: auto 5px 5px;
    cursor: pointer;
    background:#999999;
}
.fakeButton:hover {background-color: #BBBBBB;}
.fakeButton:active {background-color: #777777;}

/*Main navigation buttons (not actually buttons, use this class for <a> tag)*/
.nav{
    font-size:48px;
    padding: 5px;
    border:3px solid white;
    color:white;
    text-decoration:none;
    margin: 10px 5px;
    z-index: 1;
}
.nav:hover{
    background: linear-gradient(to left, #f00,
    #ff2b00,
    #f50,
    #ff8000,
    #fa0,
    #ffd500,
    #ff0,
    #d4ff00,
    #af0,
    #80ff00,
    #5f0,
    #2bff00,
    #0f0,
    #00ff2a,
    #0f5,
    #00ff80,
    #0fa,
    #00ffd5,
    #0ff,
    #00d5ff,
    #0af,
    #0080ff,
    #05f,
    #002aff,
    #00f,
    #2b00ff,
    #50f,
    #8000ff,
    #a0f,
    #d400ff,
    #f0f,
    #ff00d4,
    #f0a,
    #ff0080,
    #f05,
    #ff002b,
    #f00);
    animation: rainbow-move-left-right 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav:visited{color:white}
@keyframes rainbow-move-left-right {
    0% {background-position: 0 0    }
    100% {background-position: -500px 0}
}

/*Temporary code until we debut the website*/
.construction{

    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color:mediumorchid;
    background-image: repeating-linear-gradient(
        45deg,
        yellow,
        yellow 10px,
        transparent 10px,
        transparent 20px
    );

}

/* === BOARD PAGE STYLES === */

.boardDiv {
    width: 46%;
    height: 350px;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: space-between;
    font-size: 1.4em;
    border: 3px solid white;
    transition: border 0.4s ease, box-shadow 0.4s ease;
    padding: 20px;
    margin: 5px 5px;
    z-index: 2;
    overflow: hidden;
}

/* Board image fits and crops properly */
.boardImage {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border: 2px solid white;
    background-color: black;
    display: block;
    margin-bottom: 10px;
}

/* Board name */
.boardName {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Board description (short blurb) */
.boardDescription {
    font-size: 0.9em;
    line-height: 1.3em;
    margin-bottom: 10px;
}

/* Button for full details */
.boardButton {
    width: 50%;
    padding: 6px;
    cursor: pointer;
    background-color: #999999;
    color: black;
    text-align: center;
    text-decoration: none;
    font: inherit;
    align-self: center;
    border: none;
}
.boardButton:hover { background-color: #BBBBBB; }
.boardButton:active { background-color: #777777; }

/* Glow effect on hover */
.boardDiv:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.boardDiv:hover .boardImage {
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

/* BOARD DETAILS PAGE STYLING */
.board-details {
    width: 80%;
    margin: 0 auto;
    color: white;
    text-align: center;
    padding-top: 40px;
}

.board-section {
    margin-bottom: 80px;
}

.board-header {
    border: 3px solid white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.board-image-large {
    width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.board-title {
    font-size: 2.5em;
    margin: 10px 0;
}

.board-description {
    text-align: left;
    font-size: 1.3em;
    line-height: 1.6em;
    margin-top: 20px;
}

/* Dual-image layout for Dusty Dunes */
.dual-image {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.board-image-half {
    width: 45%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Candyland special styling */
.candyTitle span:nth-child(odd) { color: #FF5555; }   /* red */
.candyTitle span:nth-child(even) { color: #FFFFFF; }  /* white */

.board-header.candyBorder {
    border: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF5555, #FFFFFF, #FF5555, #FFFFFF) 1;
}

/* Present palace special styling */
.presentTitle span:nth-child(odd) { color: #00AA00; }   /* green */
.presentTitle span:nth-child(even) { color: #AA0000; }  /* red */

.board-header.presentBorder {
    border: 3px solid transparent;
    border-image: linear-gradient(90deg, #00AA00, #AA0000, #00AA00, #AA0000) 1;
}

/* Fort Suits special styling */
.fortTitle span:nth-child(odd) {
    color: #000000;
    text-shadow:
            1px 1px 0 white,
            -1px 1px 0 white,
            1px -1px 0 white,
            -1px -1px 0 white;
}
.fortTitle span:nth-child(even) {
    color: #AA0000;
    text-shadow:
            1px 1px 0 white,
            -1px 1px 0 white,
            1px -1px 0 white,
            -1px -1px 0 white;
}

.fortTitle span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    display: inline;
}

.board-header.fortBorder {
    border: 3px solid transparent;
    border-image: linear-gradient(90deg, #3B3B3B, #AA0000, #3B3B3B, #AA0000) 1;
}

.outlined-black {
    color: #000000;
    text-shadow:
            1px 1px 0 white,
            -1px 1px 0 white,
            1px -1px 0 white,
            -1px -1px 0 white;
}

.outlined-red {
    color: #AA0000;
    text-shadow:
            1px 1px 0 white,
            -1px 1px 0 white,
            1px -1px 0 white,
            -1px -1px 0 white;
}

/* ============ MINIGAMES PAGE STYLING ============ */

.minigame-category {
    border: 3px solid var(--cat-color, white);
    border-radius: 12px;
    margin: 40px auto;
    padding: 25px;
    width: 85%;
    background-color: rgba(0, 0, 0, 0.4);
}

.category-title {
    font-size: 2em;
    text-align: center;
    color: var(--cat-color, white);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--cat-color, white);
}

.minigame-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.minigame-card {
    position: relative;
    width: 45%;
    min-height: 120px;
    perspective: 1000px;
}

.minigame-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--cat-color, white);
}

.minigame-name {
    font-size: 1.4em;
    color: var(--cat-color, white);
    margin-bottom: 5px;
}

.minigame-desc {
    font-size: 1.1em;
    color: #ddd;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    background-color: #111;
    border: 2px solid var(--cat-color, white);
    box-shadow: 0 0 0 var(--cat-color, white);
}

.minigame-card:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 15px var(--cat-color, white);
    transform-origin: center;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    box-sizing: border-box;
}

.card-front {
    color: #ddd;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #111;
    color: #ddd;
    overflow-y: auto;
}

.card-back img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 140px;
    margin: 150px 0 10px 0;
}

.card-back h4 {
    color: var(--cat-color, white);
    margin: 10px 0 5px;
    text-shadow: 0 0 8px var(--cat-color, white);
}

.card-back ul {
    margin-left: 18px;
    font-size: 0.95em;
}