/******************************  

FONTS

******************************/

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans_regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans_regular-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans_bold.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/open-sans_bold-italic.woff2') format('woff2');
}





/******************************  

HTML

******************************/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans';
    font-size: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    appearance: none;
    background-color: transparent;
    border: none;
}

img {
    display: block;
    width: 100%;
}





/******************************  

GRID

******************************/

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    padding: 20px;
}

img {
    width: 300px;
    margin: auto auto;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    margin: 0 auto;
    width: 100%;
}

.grid__item {
    align-items: center;
    background: center/cover no-repeat;
    border: 1px solid #000;
    display: flex;
    font-size: 1.25rem;
    height: 100%;
    justify-content: center;
    position: relative;
    width: 100%;
}

.grid__item span {
    background-color: #fff;
    border: 1px solid #000;
    padding: 15px 25px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.grid__item:hover span {
    background-color: #000;
    color: #fff;
    text-align: center;
}





/******************************  

MEDIA QUERIES

******************************/

@media screen and (min-width: 768px) {

    body {
        padding: 40px;
    }

    .grid {
        flex-direction: row;
        gap: 40px;
    }

    .grid__item {
        height: 100%;
    }

}