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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-size: 16px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


main{
    display: flex;
    flex-direction: row;
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
main section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 50vw;
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    align-self: stretch;
    position: relative;
}
main section img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
main section .content{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
main section .content a{
    color: #fff;
    border: solid 1px #fff;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    text-align: center;
}
main section .content span{
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
}
main .section-1{
    background-color: #000;
    width: 50%;
}
main .section-2{
    background-color: #000;
    width: 50%;
}
main section .abs-link{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

@media (min-width: 901px) {
    main section .content:hover a {
        background-color: #fff;
        color: #000;
    }
    main section .content:hover~img {
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }
    main section .abs-link:hover ~ .content a{
        background-color: #fff;
        color: #000;
    }
    main section .abs-link:hover ~ img{
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }
}

@media (max-width: 900px) {
    main{
        flex-direction: column;
    }
    main section{
        width: 100%;
        height: 50vh;
    }
    main section .content{
        width: 100%;
    }
    main section .content a{
        font-size: 14px;
    }
    main section .content span{
        font-size: 12px;
    }
    main .section-1,
    main .section-2{
        width: 100%;
    }
}