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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@media only screen and (max-width: 600px) {
    html {
        font-size: 50%;
    }
}
@media only screen and (min-width: 1600px) {
    html {
        font-size: 75%;
    }
}
body {
    background: #1b1b1b;
    color: #fff;
    font-family: "Roboto", sans-serif;
}

h2 {
    font-size: 4.5rem;
    font-weight: 300;
    margin: 1rem;
}

h2 span {
    font-size: 3rem;
}

p {
    font-size: 2rem;
}

@media only screen and (max-width: 600px) {
    h2 {
        font-size: 3rem;
    }
    h2 span {
        font-size: 2rem;
    }
    p {
        font-size: 1.5rem;
    }
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1.6rem;
}

.container > div {
    height: 20.5rem;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: 0.4s all ease-in;
}

.container > div:hover {
    opacity: 0.7;
    transform: scale(0.98);
}

.container > div:nth-of-type(1),
.container > div:nth-of-type(10) {
    grid-column: 1/3;
}

.container > div:nth-of-type(6),
.container > div:nth-of-type(9) {
    grid-column: 3/5;
}

.bg1 {
    background: url(./images/background1.jpg);
}
.bg2 {
    background-image: url(./images/background2.jpg);
    color: #1b1b1b;
}
