html, body {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-image: url("minecraftbackground1.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.borderline-logo {
    margin: 40px auto 10px auto;
    align-content: center;
    justify-content: center;
    display: flex;
}


#navbar {
    background-color: #5a5a5a;
    height: 100px;
    width: 70%;
    margin: 50px auto 0 auto;
    border-radius: 10px;
}

#navbar ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 30px;
    padding-left: 20px;
    box-sizing: border-box;
}

#navbar a {
    color: #e7e7e7;
    font-size: 30px;
    text-decoration: none;
}

#navbar a:hover {
    color: #ffffff;
    padding: 6px 2px;
}

#navbar ul li:last-child {
    margin-left: auto;
}

#navmini {
    background-color: #3a3a3a;
    position: fixed;
    height: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    top: 0;
    z-index: 100;
    left: 0;
    padding: 0;
}

#navmini ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
}

#navmini a {
    color: white;
    font-size: 10px;
    text-decoration: none;
}

.hidden {
    display: none;
    visibility: hidden;
}

.hidden2 {
    display: none !important;
}

.footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background-color: rgb(90, 90, 90);
    padding: 15px 20px;
    box-sizing: border-box;
    margin-top: auto;
}

.footer p {
    color: white;
    font-size: 10px;
    margin: 4px 0;
}

.footer p:last-child {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.infobox {
    margin: 80px auto 60px auto;
    column-gap: 25px;
    position: relative;
    font-family: Arial, sans-serif;
    width: 70%;
    max-width: 1000px;
    display: flex;
    align-items: flex-start;
}

.testtextblock {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.testtextblock h4 {
    margin-top: 0;
    font-size: 1.2rem;
}

.infobox-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.testtextblock p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 10px;
    padding-right: 5px;
    
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.button-container {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    right: -90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
}

.button-container button {
    width: 100%;
    padding: 16px 0;
    background-color: #5a5a5a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button-container button:hover {
    background-color: #7a7a7a;
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .borderline-logo {
        width: 85%;
        max-width: 320px;
        height: auto;
        margin: 20px auto 10px auto;
    }

    .navbar {
        width: 92%;
        height: auto;
        margin: 15px auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 5px;
    }

    .navbar a {
        font-size: 16px;
    }

    .infobox {
        width: 92% !important;
        flex-direction: column;
        margin: 20px auto !important;
    }

    .testtextblock, 
    .news-container, 
    .text-box,
    .news-box,
    .content-box {
        position: static !important;
        width: 92% !important;
        max-width: 92% !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
        height: auto !important;
    }

    .button-container {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-top: 15px !important;
        gap: 8px !important;
    }

    .button-container button {
        flex: 1 1 calc(50% - 8px);
        padding: 10px 5px;
        font-size: 0.85rem;
    }

    .store-container {
        width: 92% !important;
        margin: 20px auto !important;
    }

    .product-track2 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .product-card2 {
        flex: 1 1 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .carousel-wrapper {
        width: 95% !important;
        margin: 20px auto !important;
        gap: 8px;
    }

    .carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .product-track {
        gap: 0px !important;
    }

    .product-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 15px;
    }

    .product-card .product-main-img, 
    .product-card2 .product-main-img {
        width: 100%;
        height: 160px;
        object-fit: contain;
    }

    .arrow-btn {
        padding: 10px 12px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .card-buttons {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 12px;
    }

    .product-read-more-btn, .order-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.9rem;
        text-align: center;
    }

    .footer {
        width: 100%;
        padding: 20px 15px;
        text-align: center;
        box-sizing: border-box;
    }

    .footer p {
        font-size: 12px;
    }
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 40px auto;
    position: relative;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.product-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.product-track2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    box-sizing: border-box;
}

.product-card, .product-card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 calc((100% - 60px) / 4);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    height: auto;
}

.product-card .product-main-img, 
.product-card2 .product-main-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.arrow-btn {
    background-color: #5a5a5a;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.arrow-btn:hover {
    background-color: #7a7a7a;
}

.diamond-icon {
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.12em;
    margin-right: 4px;
    display: inline-block !important;
    image-rendering: pixelated;
}

.text-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.text-content {
    font-size: 16px;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.read-more-btn, .product-read-more-btn {
    background-color: #5a5a5a;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.read-more-btn:hover, .product-read-more-btn {
    background-color: #7a7a7a;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: #2b2b2b;
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-body {
    font-size: 16px;
    line-height: 1.5;
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 15px;
}

.modal-body p {
    white-space: pre-line;
    text-align: left;
    line-height: 1.5;
    color: #ddd;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
}

.order-btn {
    background-color: #452a2a;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.order-btn:hover {
    background-color: #341a1a;
}

.product-card-popout {
    display: none;
}

.card-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.read-more-btn, .product-read-more-btn, .order-btn {
    align-self: auto;
    margin-top: 0;
}

.category-header {
    color: #ffffff;
    font-size: 1.8rem;
    font-family: Arial, sans-serif;
    border-bottom: 2px solid #5a5a5a;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-wrapper {
    width: 80%;
    max-width: 950px;
    margin: 40px auto;
}

.checkout-card {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-sizing: border-box;
}

.checkout-summary {
    flex: 1;
    border-right: 1px solid #444;
    padding-right: 20px;
}

.checkout-summary img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-summary h2 {
    margin: 15px 0 5px 0;
}

.checkout-summary .base-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ddd;
}

.checkout-desc {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bbb;
    white-space: pre-line;
}

.checkout-form-container {
    flex: 1.2;
}

.checkout-form-container h3 {
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.checkout-form-container label {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.checkout-form-container input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: #2a2a2a;
    border: 1px solid #555;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

.addons-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.addon-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.addon-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkout-total {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 20px 0;
    text-align: right;
    color: #fff;
}

.submit-order-btn {
    width: 100%;
    background-color: #452a2a;
    color: white;
    padding: 14px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-order-btn:hover {
    background-color: #5c3838;
}

.newstextbox {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newsbox {
    margin: 80px auto 60px auto;
    column-gap: 25px;
    position: relative;
    font-family: Arial, sans-serif;
    width: 70%;
    max-width: 1000px;
    display: block;
}

.newstextbox p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 10px;
    padding-right: 5px;
    
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newstextbox h4 {
    margin-top: 0;
    font-size: 1.2rem;
}

@media screen and (max-width: 900px) {
    .checkout-card {
        flex-direction: column;
    }
    .checkout-summary {
        border-right: none;
        border-bottom: 1px solid #444;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
    font-family: 'Consolas', 'Courier New', monospace;
}

.news-article h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.news-article h3 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-article p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #e0e0e0; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
