.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.store-header {
    margin-bottom: 40px;
    background: hotpink;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.store-header h1 {
    color: white;
    font-weight: bold;
    font-size: 2.5em;
}

.login-cart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-container {
    display: flex;
    align-items: center;
    background-color: #f6d0e2;
    border: 2px solid #fbc2de;
    padding: 10px;
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.player-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

#player-head {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

#welcome-text,
#guest-text {
    font-weight: bold;
    color: #444444;
    font-size: 1.2em;
    text-align: center;
}

.login-button,
.logout-button {
    background-color: #ff69b4;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    margin-left: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-button:hover,
.logout-button:hover {
    background-color: rgb(117, 17, 119);
}

.cart-container {
    display: flex;
    align-items: center;
    background-color: #f6d0e2;
    border: 2px solid #fbc2de;
    padding: 10px;
    border-radius: 8px;
}

#cart-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#cart-button .icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

#cart-count {
    background: #ff69b4;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
}

.store-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.store-main {
    flex: 0 0 70%;
    padding-right: 20px;
}

.store-sidebar {
    flex: 0 0 28%;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.store-category {
    margin-bottom: 40px;
}

.store-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.store-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    flex: 0 0 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.store-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.store-item-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.store-item-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #666;
}

.store-item-price {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff69b4;
}

.store-item-button {
    background-color: #ff69b4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.store-item-button:hover {
    background-color: rgb(117, 17, 119);
}

.donation-goal-container {
    background-color: #f6d0e2;
    padding: 20px;
    border: 2px solid #fbc2de;
    border-radius: 8px;
    margin-bottom: 20px;
}

.progress {
    background-color: #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 30px;
    text-align: center;
}

.progress-bar {
    background-color: #ff69b4;
    transition: width 0.4s ease;
    border-radius: 15px;
    line-height: 30px;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

.progress-bar.active {
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 40px 0;
    }
    100% {
        background-position: 0 0;
    }
}

.top-donor {
    text-align: center;
}

.top-donor h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.top-donor img {
    width: 130px;
    height: 200px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.top-donor p {
    font-size: 1em;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .store-main, .store-sidebar {
        flex: 0 0 100%;
        padding-right: 0;
    }

    .store-items {
        justify-content: center;
    }

    .store-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 480px) {
    .store-item {
        flex: 0 0 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #ffffff;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh; /* Adjust to screen size */
    overflow-y: auto; /* Enables scrolling if content overflows */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    text-decoration: none;
}

.modal-logo {
    width: 300px;
    height: 300px;
    margin-bottom: 15px;
}

.modal-content input[type="text"] {
    width: 80%;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    margin-top: 15px;
    margin-bottom: 15px;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.modal-content .modal-price h4 {
    font-size: 1.7em;
    margin-bottom: 20px;
    margin-top: 30px; 
    font-weight: bolder;
}


.success-message,
.error-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}

.success-message {
    background-color: #28a745;
    color: white;
}

.error-message {
    background-color: #dc3545;
    color: white;
}

.success-message .close-btn,
.error-message .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

.success-message .close-btn:hover,
.error-message .close-btn:hover {
    color: #ddd;
}

/* Custom styling for the cart items */
.cart-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f6d0e2;
    border: 2px solid #fbc2de;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.cart-item-image {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.cart-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 10px;
}

.cart-item-name {
    font-size: 1em;
    font-weight: bold;
}

.cart-item-price {
    font-size: 1em;
    margin-left: 10px;
}

.cart-item-quantity {
    width: 50px;
    padding: 5px;
    margin-left: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.info-button {
    background-color: #ff69b4;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
}

.info-button i {
    margin-right: 5px;
}

.info-button:hover {
    background-color: rgb(117, 17, 119);
}


.delete-button {
    background-color: lightcoral;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

.delete-button i {
    font-weight: bold;
}

/* Content Container for Previews and In-Game Commands */
.content-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.preview-heading {
    background-color: #f6f6f6;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.preview-heading h4 {
    margin: 0;
    font-size: 1.2em;
    color: #444;
}

.preview-heading .arrow {
    transition: transform 0.3s ease;
}

.preview-content {
    padding: 15px;
    display: none;
    background-color: #fff;
}

.preview-content img, 
.preview-content video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.preview-content p {
    margin: 0;
    font-size: 1em;
    color: #666;
}

/* Open the preview content */
.preview-content.open {
    display: block;
}

.preview-heading.active .arrow {
    transform: rotate(90deg);
}

#cart-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cart-items-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

.checkout-button {
    background-color: #ff69b4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.checkout-button:hover {
    background-color: rgb(117, 17, 119);
}

.store-item-button {
    background-color: #ff69b4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    margin-top: 5px;
}

.store-item-button:hover {
    background-color: rgb(117, 17, 119);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .store-main, .store-sidebar {
        flex: 0 0 100%;
        padding-right: 0;
    }

    .store-items {
        justify-content: center;
    }

    .store-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .store-item {
        flex: 0 0 100%;
    }
}