body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Background gradient */
    background: linear-gradient(to bottom right, #1A1718, #1D2766);
}


.container {
    text-align: center;
}

#dice-container {
    font-family: monospace;
}

#dice-container p {
    margin: 0;
}

/* CSS for the end of die roll notification */
.notificationfinal { /* Use lowercase for class name */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #4CAF50, #388E3C); /* Green gradient background */
    border-top: 2px solid #297B32; /* Darker gradient border */
    border-bottom: 2px solid #297B32; /* Darker gradient border */
    color: black; /* Black text color */
    text-align: center;
    padding: 10px;
    opacity: 0; /* Initially invisible */
    transition: opacity 0.5s ease-in-out; /* Animation for fading in/out */
    z-index: 9999; /* Ensure it's on top of other elements */
}

/* Animation for fading in */
.notificationfinal.fade-in {
    opacity: 1;
}

/* Animation for fading out */
.notificationfinal.fade-out {
    opacity: 0;
}


/* CSS for the streak losing notification */
.notificationstreakloss { /* Use lowercase for class name */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #FF9057, #FF5733); /* Red gradient background */
    border-top: 2px solid #FF9057; /* Darker gradient border */
    border-bottom: 2px solid #FF5733; /* Darker gradient border */
    color: black; /* Black text color */
    text-align: center;
    padding: 10px;
    opacity: 0; /* Initially invisible */
    transition: opacity 0.5s ease-in-out; /* Animation for fading in/out */
    z-index: 9999; /* Ensure it's on top of other elements */
}

/* Animation for fading in */
.notificationstreakloss.fade-in {
    opacity: 1;
}

/* Animation for fading out */
.notificationstreakloss.fade-out {
    opacity: 0;
}


/* Style for the dice images */
.dice-fade-in {
    max-width: 100px; /* Adjust the size as needed */
    transition: opacity 1s ease-in-out;
    opacity: 0;
    margin: 0 10px; /* Add spacing between dice images */
}

/* Style for the pick-a-die text */
#pick-a-die-text {
    color: white;
    font-family: 'Josefin Sans', sans-serif;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

   /* CSS for the image link icons */
        .image-link-icons {
            position: absolute;
            top: 10px; /* Adjust the top position as needed */
            right: 10px; /* Adjust the right position as needed */
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .image-link {
            margin-bottom: 10px; /* Adjust the spacing between icons */
        }


    /* Styles for the popup container */
    .popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    /* Styles for the popup content */
    .popup-content {
        background: linear-gradient(135deg, #1a1a1a, #000);
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        color: white;
    }

    /* Styles for the popup buttons */
    .popup-button {
        background-color: #007BFF;
        color: white;
        border: none;
        padding: 10px 20px;
        margin: 5px;
        border-radius: 5px;
        cursor: pointer;
    }

    /* Style for the popup buttons on hover */
    .popup-button:hover {
        background-color: #0056b3;
    }

/* Style for the backpack menu container */
.backpack-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black; /* Black background */
    color: white; /* White text */
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 100%; /* Stretch horizontally */
    width: 300px; /* Adjust the width as needed */
    text-align: center;
}

/* Style for the close button (x icon) */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px; /* Adjust the right position as needed */
    cursor: pointer;
    font-size: 20px;
}

/* Style for the dice skin container */
.dice-skin {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

/* Style for the dice skin image */
.dice-skin-image {
    width: 100px; /* Adjust the width as needed */
    height: 100px; /* Adjust the height as needed */
}

/* Style for the dice skin name */
.dice-skin-name {
    font-size: 14px; /* Adjust the font size as needed */
    margin-top: 5px;
}

/* Style for the "Shop" button */
.shop-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Hover effect for the backpack icon */
.backpack-icon:hover #backpack-menu {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 75%; /* Adjust the width as needed */
    height: 75%; /* Adjust the height as needed */
    overflow: auto;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
}
    
    .close:hover {
     color: black;
}

/* Style for the shop container (iframe) */
.shop-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black; /* Black background */
    color: white; /* White text */
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 100%; /* Stretch horizontally */
    width: 300px; /* Adjust the width as needed */
    text-align: center;
}

/* Style for the shop iframe */
.shop-menu iframe {
    width: 100%;
    height: 100%;
    border: none;
}
