
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00755B;
}

body {
    font-family: 'Spectral', serif;
    display: flex;
    flex-direction: column;
    padding-top: 200px;
    min-height: 100vh;
    margin: 0;
}

.adriglam-font {
    font-family: 'Marck Script', sans-serif;
}

h1 {
    color: black;
    font-size: 8em; /* Adjust the multiplier based on your design */
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 5em; /* Adjust the font size for smaller screens */
    }
}

@media (max-width: 280px) {
    h1 {
        font-size: 3.5em; /* Adjust the font size for smaller screens */
    }
}

footer {
    background-color: #181616;
    color: #fff;
    padding: 2rem 1rem;
}

.hidden {
    opacity: 0;
    transition: opacity 1s;
}

.show {
    opacity: 1;
}

/*For services*/
.services {
    font-weight: 400;
    place-items: center;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    margin: 25px 0 5vw;
}

.services .service {
    flex: 0 0 200px;
    border-radius: 0.5rem;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #000000;
    position: relative;
    overflow: hidden;

    opacity: 0;
}

.services .service:nth-of-type(1) {
    background: url("https://1951880946.rsc.cdn77.org/resize?height=300&type=auto&url=https://reservio-static-production.s3.eu-central-1.amazonaws.com/businesses/68820084-fffc-4b34-b902-0f8d32ecce96.jpeg") no-repeat 50% / cover;
}

.services .service:nth-of-type(2) {
    background: url("/images/eyebrows.jpg") no-repeat 55% / cover;
}

/*řasy*/
.services .service:nth-of-type(3) {
    background: url("/images/lashes.jpg") no-repeat 38% / cover;
}

.services .service:nth-of-type(4) {
    background: url("https://cdn.myshoptet.com/usr/www.mobilnisalon.cz/user/shop/big/52-13_spolcenske-liceni.jpg?6561c331") no-repeat 50% / cover;
}

.services .service .content {
    color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    background: #000000;
    background: linear-gradient(0deg, #000000 0%, rgba(255, 255, 255, 0) 100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-align: center;

    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}


.services .service .content h2 {
    font-weight: bolder;
    font-size: 3.5rem;
}

.services .service:hover {
    flex: 0 0 calc(35% - 20px); /* Adjust the percentage on hover */
    box-shadow: 1px 3px 15px #000000;
}

.services .service:hover .content {
    opacity: 1;
    padding-bottom: 4rem;
    transform: translateY(0%);
    visibility: visible;
}

button {
    text-transform: uppercase;
    font-weight: bolder;
    align-items: center;
    background-clip: padding-box;
    background-color: var(--primary-color);
    border: 1px solid transparent;
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.01) 0 1px 3px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;

    transition: transform 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.05);
}

.line {
    width: 100%;
    margin: 20px auto;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.subtitle {
    font-size: 3rem;
    text-align: center;
    padding-top: 2px;
}

.contacts {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.contacts-info {
    width: clamp(250px, 75%, 450px);
}

.contact {
    text-align: left;
    cursor: pointer;
    display: block;
    padding-bottom: 20px;
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
    font-size: 1.5rem;
    font-weight: bold;
}

.contact:hover {
    color: var(--primary-color);
    transform: scale(1.03);
    transition: all .09s ease-in-out;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: right;
}

.card {
    width: clamp(250px, 50%, 500px);
    padding: 15px;
    color: white;
    background: var(--primary-color);
    box-shadow: 1px 3px 15px #000000;
    position: relative;
    overflow: hidden;

    opacity: 0;
}

.card p {
    margin: 0;
}

.card button {
    margin-top: 15px;
    background: white;
    color: var(--primary-color);
}

.card h3 {
    font-weight: bold;
    text-transform: uppercase;
}

.cosmetic-types {
    display: flex;
    flex-direction: column;
    justify-content: left;
    flex-wrap: nowrap;
    padding: 20px;
}

.cosmetic-type {
    padding: 20px;
}

@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px) {
    .services {
        height: auto;
        width: 80%;
        margin: 0 auto;
    }

    .services .service, .services .service:hover {
        flex: 5 5 100%; /* Adjust the percentage for smaller screens */
        transform: translateY(0);
    }

    .services .service .content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0%);
    }
}

@media (max-width: 480px) {
    .cards {
        justify-content: center;
    }

    .contacts {
        font-size: 1rem;
        text-align: center;
    }

    .contact {
        text-align: center;
        font-size: 1.3rem;
    }

    .services {
        height: auto;
    }

    .services .service .content h2 {
        font-size: 2.5rem;
    }

    .services .service, .services .service:hover {
        flex: 0 0 100%; /* Full width for even smaller screens */
        transform: translateY(0);
    }

    .services .service .content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0%);
    }
}


@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
