:root {
    --primary-color: #E7792A;
    --secondary-color: #83C5BE;
    --accent1-color:#1C3041;
}


body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

header {
    background: var(--accent1-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

header img {
    width: 500px;
    height: auto;
    vertical-align: left;
    margin-right: 10px;
}

.designer {
    background-color: var(--secondary-color);
}

.catalog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
    background-color: var(--secondary-color);
}

.catalog img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background-color: transparent;
}

.shirt-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.2s;
    text-align: center;
    width: 280px;
    margin: 1rem;
}

.shirt-card:hover {
    transform: scale(1.05);
}

.shirt-card img {
    width: 200px;
    height: auto;
}

#shirtBase {
    z-index: 1;
}

.designer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}


.shirt-preview {
    position: relative;
    width: 300px;
    height: 350px;
    margin-bottom: 1rem;
}

.shirt-preview img, #colorOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

#colorOverlay {
    z-index: 2;
    mix-blend-mode: multiply;
    opacity: 0.6;
    pointer-events: none;
    transition: background-color 0.4s ease;
}

#designOverlay {
    position: absolute;
    z-index: 3;
    width: 46%;
    max-width: 220px;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    mix-blend-mode: multiply; 
    opacity: 1;
    pointer-events: none;
    border-radius: 4px;;
    
    /* -webkit-mask-image: url('images/design1.png');
    -webkit-mask-image: url('images/design2.png');
    -webkit-mask-image: url('images/design3.png');

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('images/design1.png');
    mask-image: url('images/design2.png');
    mask-image: url('images/design3.png');

    mask-size: contain;
    mask-repeat: no-repeat; */
}

.controls {
    margin-top: 2rem;
    text-align: center;
    border: 1px solid black;
    flex-wrap: wrap;
}

.designs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.designs img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.colors button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    margin: 0.3rem;
    cursor: pointer;
}

.back-link {
    color: #fff;
    text-decoration: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
}



@media (max-width: 600px) {
    .shirt-preview {
        width: 220px; 
        height: 260px;
    }
    #designOverlay {
        width: 56%;
        max-width: 160px;
        transform: translate(-50%, -54%);
    }
}

@media screen and (max-width: 400px) {
    .catalog {
        flex-wrap: wrap;
        align-items: center;
    }
    
}

@media screen and (min-width: 1000px) {
    .catalog {
        /* align-items: center; */
        gap: 10rem;
    }
    
}
