/* ------------------------------
   body
------------------------------ */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0d0d0d;
    color: white;
    position: relative;
}

body, p, h1, h2, h3, h4, h5, h6, a {
    line-height: 1.6;
}

a {
    color: #c43b66;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------
   body text
------------------------------ */
.body-text p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.body-text a:visited {
    color: #5e1c31;
}

/* ------------------------------
   background
------------------------------ */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ------------------------------
   header n' text
------------------------------ */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    z-index: 1;
}

.text-box {
    background-color: rgb(22, 22, 22);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}

/* ------------------------------
   image buttons
------------------------------ */
.image-button {
    position: fixed;
    top: 10px;
    left: 10px;
    display: inline-block;
}

.image-button img {
    width: 50px;
    height: auto;
    cursor: pointer;
}

/* ------------------------------
   grid
------------------------------ */
.grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.grid-item {
    width: 120px;
    height: 120px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ------------------------------
   credits / disable background
------------------------------ */
.credits-section {
    position: fixed;
    bottom: 0;
    right: 0;
    width: fit-content;
    text-align: center;
    font-size: 12px;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.credits-section a:hover {
    text-decoration: underline;
}

/* ------------------------------
   mobile message
------------------------------ */
.mobile-message {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.mobile-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    padding: 0 10px;
}

.mobile-message button {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #c43b66;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* ------------------------------
   media styles
------------------------------ */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .text-box {
        padding: 20px;
        width: 90%;
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .mobile-message {
        padding: 10px;
    }

    .mobile-message p {
        font-size: 12px;
    }

    .mobile-message button {
        padding: 8px 12px;
    }

    .text-box {
        padding: 15px;
        font-size: 14px;
    }

    .image-button img {
        width: 40px;
    }
}
