/* Main */
main > * {
    margin: 0 auto 132px;
    max-width: 1300px;
}

/* Hero section */
.hero {
    display: flex;
}

.hero .text-box {
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-grow: 1;
}

.hero .text-box h1 {
    font-size: 100px;
    font-weight: 500;
}

.hero .text-box p {
    max-width: 500px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero .text-box button {
    margin-top: 48px;
}

.hero .image-box {
    max-width: 400px;
}

.hero .image-box img {
    margin-top: 72px;
}

/* Treatments section */
.treatments {
    display: flex;
    flex-direction: column;
}

.treatments .boxes {
    display: flex;
    justify-content: space-evenly;
    gap: 4rem;
}

.treatments .boxes .box {
    padding: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-basis: 100%;
    color: #ffffff;
    font-size: 22px;
    border-radius: 15px;
    height: 500px;
    transition: .5s;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.treatments .boxes .box:hover {
    transform: scale(0.9);
}

.treatments .boxes .box1 {
    background-image: url(/static/images/reinforcement.png);
}

.treatments .boxes .box2 {
    background-image: url(/static/images/gellak-nailart.png);
}

.treatments .boxes .box3 {
    background-image: url(/static/images/biab-treatment.png);
}

.treatments button {
    margin-top: 3rem;
    align-self: center;
}

/* About me */
.about-me {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me > * {
    width: 500px;
    height: 500px;
}

.about-me .image-box {
    border-radius: 15px;
    background-image: url(/static/images/amy-working.jpg);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.about-me .text-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: #ffffff;
    border-radius: 15px;
}

.about-me .text-box h2 {
    text-align: center;
}

.about-me .text-box button {
    background-color: #f5dade;
}

/* Location */
.location {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 275px);
    gap: 24px;
}

.location img {
    height: 100%;
}

.salon {
    grid-column: 1;
    grid-row: 1;
}

.amy-working {
    grid-column: 1;
    grid-row: 2;
}

.amy-in-front-of-store {
    grid-column: span 2;
    grid-row: span 2;
}

.chair {
    grid-column: span 2;
} 

.amy-in-salon {
    grid-column: span 2;
}

.location .text-box {
    display: flex;
    align-items: center;
    grid-column: span 4;
}

.location .text-box p {
    font-size: 50px;
    font-weight: 300;
    text-align: center;
}

/* Responsiveness */
@media (max-width: 1160px) {
    .hero .text-box h1 {
        font-size: 80px;
        font-weight: 500;
    }

    .hero .image-box {
        max-width: 350px;
    }
}

@media (max-width: 1000px) {
    main > * {
        margin: 0 auto 2rem;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero .text-box {
        padding-right: 0;
    }

    .hero .text-box button {
        align-self: center;
    }

    .hero .image-box {
        display: none;
    }

    .treatments .boxes {
        gap: 3rem;
    }

    /* .about-me .text-box {
        gap: 2rem;
    } */

    .location {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: -100px;
    }

    .amy-in-front-of-store {
        grid-column: 1;
        grid-row: span 2;
    }
    
    .location .salon, .location .amy-working {
        display: none;
    }
}

@media (max-width: 900px) {
    .treatments .boxes .box {
        height: 400px;
    }
}

@media (max-width: 800px) {
    .treatments .boxes {
        gap: 1rem;
    }

    .treatments .boxes .box {
        height: 350px;
    }

    .about-me p, .about-me button, .about-me span {
        font-size: 16px;
    }

    .about-me span {
        font-weight: 300;
    }

    .location {
        grid-template-rows: 1fr;
    }

    .location img {
        display: none;
    }
}

@media (max-width: 700px) {
    .treatments .boxes .box {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .hero .text-box h1 {
        font-size: 45px;
    }
    
    .treatments .boxes .box {
        height: 200px;
    }

    .treatments .boxes .box p {
        font-size: 14px;
    }

    .treatments button {
        margin-top: 2rem;
    }

    .about-me .text-box {
        gap: 1rem;
    }

    .about-me h2 {
        font-size: 35px;
    }

    .location .text-box p {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .about-me p, .about-me button {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .about-me h2 {
        font-size: 30px;
    }
}
