﻿.gear-skin img {
    max-width: 100%;
    width: 245px;
    height: auto;
}

.card-top {
    width: 366px;
    height: 63px;
    background-color: #00bdcb;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: none;
}

/* Left text */
.left-text {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    font-family: Tahoma;
    text-shadow: -1px -1px 0px #1b6067, 1px -1px 0px #1b6067, -1px 1px 0px #1b6067, 1px 1px 0px #1b6067;
}

.icon-image {
    width: 30px;
    height: 30px;
}



/* Main container */
.card-second {
    width: 366px;
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid black;
    border-top: none;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: none;
    border-radius: 0px;
    position: relative;
    overflow: hidden;
}

/* Background Div */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/images/card_mid_bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
}

/* Left Section */
.left-section {
    width: 125px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 16px;
}

    /* Left Section Image */
    .left-section img {
        width: 98px;
        height: 96px;
        object-fit: contain;
    }

/* Right Section */
.right-section {
    width: calc(100% - 125px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 5px;
}

    .right-section .main-image {
        width: 241px;
        height: 54px;
        object-fit: contain;
        margin-top: -5px;
    }

    .right-section .text {
        color: #42efff;
        font-size: 17px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: 2px;
        margin-left: -20px;
        width: 100%;
        padding-left: 10px;
    }

        .right-section .text .small-icon {
            width: 26px;
            height: 28px;
            margin-right: 4px;
        }




/* Third Div */
.card-third {
    width: 366px;
    height: 305px;
    background-image: url('/resources/images/card_bg4.jpg');
    background-repeat: repeat-y;
    color: #d9fccf;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: flex-start;
    justify-content: left;
    text-align: left;
    padding: 10px;
    border: 1px solid black;
    border-top: none;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: none;
    border-radius: 0px;
    overflow-y: auto;
    padding-left: 25px;
    padding-right: 15px;
}

    .card-third p {
        font-size: 15px;
        font-weight: bold;
        margin: 0;
        line-height: 1.5;
        max-height: 100%;
    }


    .card-third::-webkit-scrollbar {
        width: 8px;
    }

    .card-third::-webkit-scrollbar-thumb {
        background-color: #00bdcb;
        border-radius: 4px;
    }

    .card-third::-webkit-scrollbar-track {
        background-color: #a0dde2;
        border-radius: 4px;
    }

    .card-third::-webkit-scrollbar-thumb:hover {
        background-color: #7ab9be;
    }




/* Fourth Div */
.card-fourth {
    width: 366px;
    height: 48px;
    background-image: url('/resources/images/card_bot_bg.jpg');
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 27px;
    border: 1px solid black;
    border-top: none;
    border-bottom: none;
    font-weight: bold;
    font-size: 20px;
}

    .card-fourth img {
        margin-left: 10px;
        padding-bottom: 4px;
    }

.gear-requirements {
    color: #41ef3a;
    font-weight: bold;
    font-family: Tahoma;
    margin-left: 6px;
}



/* Fifth Div */
.card-fifth {
    width: 366px;
    height: 49px;
    background-color: #00bdcb;
    display: flex;
    justify-content: left;
    text-align: left;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: none;
}

    .card-fifth img {
        margin-left: 10px;
        margin-top: 7px;
    }



.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    padding: 0 10px;
}


/* Each card wrapper */
.card-wrapper {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Ensure that the cards stack vertically on smaller screens */
@media (max-width: 800px) {
    .card-wrapper {
        width: 100%;
    }
}

/* To ensure no unwanted offset for smaller screens */
@media (max-width: 600px) {
    .card-container {
        padding-left: 0;
        padding-right: 0;
    }
}





.gear-skin {
    width: 366px;
    height: 575px;
    background-color: #00bdcb;
    background-image: url('/resources/images/skinbg.png');
    background-size: 352px 544px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    font-size: 18px;
    /* Centering content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid black;
    text-align: center;
    position: relative;
}

    .gear-skin.show {
        opacity: 1;
        visibility: visible;
    }

.gear-skin-close-img {
    width: 137px !important;
    height: 60px !important;
    cursor: pointer;
}


.card {
    position: relative;
    display: inline-block;
}

    .card img {
        cursor: pointer;
    }

.link-box {
    border-radius: 10px;
    border: 1px solid black;
    position: absolute;
    top: 140%;
    left: -215%;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 2px 2px 5px black;
    z-index: 10;
    width: 200px;
    padding-left: 10px;
    padding-top: 10px;
    height: 205px;
}

    .link-box img {
        display: block;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .link-box::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 90px;
        border-width: 12px;
        border-style: solid;
        border-color: transparent transparent white transparent;
    }


    .link-box a {
        padding: 10px;
        font-size: 16px;
        color: antiquewhite;
        cursor: pointer;
    }

        .link-box a:hover {
            text-decoration: none;
            color: #ffd800;
        }

@media (max-width: 960px) {
    .link-box {
        left: 0;
        top: 100%;
        width: max-content;
    }
}


.gearStats {
    width: 100%;
    padding-bottom: 5px;
}

.info-skin {
    width: 366px;
    height: 575px;
    background-color: #00bdcb;
    background-image: url('/resources/images/skinbg.png');
    background-size: 352px 544px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid black;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

    .info-skin.show {
        opacity: 1;
        visibility: visible;
    }

.info-skin-close-img {
    width: 137px !important;
    height: 60px !important;
    cursor: pointer;
}

.section1 {
    color: blue;
}

.section2 {
    color: green;
}

.section3 {
    color: yellow;
}

.section4 {
    color: lightpink;
}

.section5 {
    color: mediumpurple;
}

.section6 {
    color: black;
}

.section7 {
    color: red;
}


@media (max-width: 960px) {
    .card-second {
        margin: 0;
        padding: 0;
        width: 366px;
        height: 110px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid black;
        border-top: none;
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-bottom: none;
        border-radius: 0px;
        position: relative;
        overflow: hidden;
        box-sizing: border-box; /* Ensure everything is included in the width/height calculation */
    }

    .card-second, .card-wrapper {
        box-sizing: border-box;
    }

    .background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/resources/images/card_mid_bg.jpg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        z-index: -1;
    }

    .card-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        box-sizing: border-box; /* Add this for consistency */
    }

    .left-section {
        width: 125px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 16px;
    }

        .left-section img {
            width: 98px;
            height: 96px;
            object-fit: contain;
        }

    .right-section {
        width: calc(100% - 125px); /* Adjust the width based on the left-section */
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        padding-top: 5px;
    }

        .right-section .main-image {
            width: 241px; /* Adjust image width */
            height: 54px; /* Adjust image height */
            object-fit: contain;
            margin-top: -5px; /* Ensures proper positioning of the image */
        }
}