@font-face {
    font-family: 'Crang';
    src: url('images/fonts/Crang.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'editundo';
    src: url('images/fonts/editundo.ttf') format('truetype');
    font-weight: normal;
    font-style:inherit;
}

.contact-button-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none; /* Remove default underline from link */
}

.contact-button {
    padding: 10px 20px;
    font-family: editundo;
    font-size: 18px;
    color: #e3e6ff;
    background-color: #2c549e;
    border: 2px solid #338cca;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px #141013;
}

.contact-button:hover {
    background-color: #338cca;
    color: #ffcd75;
    border-color: #ffcd75;
}

/*Section Headers*/
.section-header {
    background-color: #2c549e;
    width: 100%;
    height: 96px;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
}
.section-header-image{
    width: 600px;
    height: 96px;
    image-rendering: pixelated;
}

/* Products Section */
/* For screens larger than 1200px */
@media screen and (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For screens between 900px and 1199px */
@media screen and (min-width: 900px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For screens between 600px and 899px */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens smaller than 600px */
@media screen and (max-width: 599px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product {
        max-width: 100%;
    }
}

.service-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #1a1c2c;
}
.service-card {
    width: 240px;
    background-color: #2c549e;
    border: 2px solid #338cca;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card-header {
    background-color: #338cca;
    padding: 5px 10px;
    font-weight: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.service-card-title {
    
    color: #e3e6ff;
    font-family: editundo;
    font-size: 24px;
    font-weight: 100;
    text-shadow: -2px 2px #2c549e;
    margin: 0;
}
.service-card-content {
    background-color: #141013;
    padding: 10px;
    display: flex;
}
.service-card-details p{
    text-align: left;
    font-size: 16px;
}
.service-card-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    width: 60px; /* Set a fixed width */
}
.service-card-image {
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    margin-bottom: 5px;
}
.service-card-price {
    color: #9cdb43;
    font-family: editundo;
    font-size: 32px;
    font-weight: 100;
    text-shadow: -1px 1px #141013;
    text-align: center;
    padding-top: 10px;
}
.service-card-details {
    flex: 1;
}
.service-card-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #e3e6ff;
}
.tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 5px;
}
.size-item {
    background-color: #1f7f51;
    border-radius: 4px;
    padding: 2px 5px;
    text-align: center;
    font-size: 16px;
}
.animation-item {
    background-color: #403353;
    border-radius: 4px;
    padding: 2px 5px;
    text-align: center;
    font-size: 16px;
}
.price-item {
    background-color: #1f7f51;
    border-radius: 4px;
    margin-top: 6px;
    padding: 2px 5px;
    text-align: center;
    font-size: 25px;
}
.order-button {
    background-color: #1f7f51;
    color: #e3e6ff;
    border: none;
    margin-top: 10px;
    border-radius: 4px;
    padding: 10px;
    font-family: 'editundo', Arial, sans-serif;
    font-size: 19px;
    text-shadow: -1px 1px #141013;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
}
.order-button:hover {
    background-color: #59c135;
}

.product-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    background-color: #1a1c2c;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product {
    width: 100%;
    max-width: 200px;
    height: 256px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1c2c;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

.product-content {
    position: relative;
    display: inline-block;
}

.product-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 25px;
    font-family: Crang;
    text-shadow: #000000 -2px 3px;
    color: #e3e6ff;
    margin: 0;
    padding: 5px 0;
    transition: all 0.3s ease;
    z-index: 1;
    background-color: rgba(26, 28, 44, 0.7); /* semi-transparent background */
    text-align: center;
}

.product:hover .product-image {
    transform: translate(-50%, -50%) scale(1.05);
    border: 1px solid #ffcd75;
}

.product:hover .product-title {
    color: #ffcd75;
}

.product:hover img{
    border: 1px solid #ffcd75;
}

/* Portfolio Section */
.portfolio-images {
    background-color: #1a1c2c;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 20px;
}

.portfolio-item {
    width: 400px; /* Adjust based on your image size */
    height: auto;
    border: 1px solid #1a1c2c;
    image-rendering: pixelated;
}

.portfolio-item:hover img{
    border: 1px solid #ffcd75;
}

/* Ensure pixel-perfect rendering */
img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}