@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

* {
    box-sizing: border-box;
}

html {
    overflow: hidden;
    width: 100%;
    height: 100dvh;
}

body {
    width: 100%;
    background: #eadeae;
    text-align: center;
    min-height: 100dvh;
    font-family: "Nunito", sans-serif;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body:before {
    content: '';
    display: block;
    width: 600px;
    height: 460px;
    background: url('img/lines.png') no-repeat center/cover;
    position: absolute;
    top: -150px;
    right: -100px;
    z-index: -1;
}

body:after {
    content: '';
    display: block;
    width: 600px;
    height: 460px;
    background: url('img/lines.png') no-repeat center/cover;
    position: absolute;
    bottom: -100px;
    left: -150px;
    z-index: -1;
    transform: rotate(180deg);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
}

img {
    max-width: 100%;
}

.capybara-logo {
    width: 450px;
    height: 450px;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

h1 {
    font-size: 55px;
    line-height: 40px;
    margin: 0 0 0px;
    text-transform: uppercase;
}

p {
    font-size: 20px;
    line-height: 30px;
    
    margin: 0 0 40px;
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.links a {
    margin: 0 20px;
}

svg {
    width: 75px !important;
    height: 75px !important;
}

svg path {
    fill: #562433;
    transition: all .3s ease-in-out;
}

nav {
    margin: 20px 0 0;
    padding: 20px 0;
    border-top: 1px solid #bfb487;
    background: #eadeae;
}

nav br {
    display: none;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
    padding: 0 20px;
    font-size: 16px;
    line-height: 24px;
    position: relative;
}

nav ul li:after {
    content: '';
    display: block;
    width: 1px;
    height: calc(100%);
    background: #bfb487;
    position: absolute;
    top: 0px;
    right: 0;
}

nav ul li:last-child:after {
    display: none;
}

nav ul li a {
    color: #a54b2c;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

.modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out 0s, visibility 0.05s ease-in-out 0.55s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transition: visibility 0s ease-in-out 0s, opacity 0.3s ease-in-out 0.05s;
}

.modal-container {
    width: 800px;
    max-width: 95%;
    max-height: 80%;
    background: #eee4bd;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transform: translate(0, 50%);
    transition: transform 0.3s ease-in-out;
}

.modal.open .modal-container {
    transform: translate(0, 0);
}

.modal .title {
    height: 70px;
    border-bottom: 1px solid #bfb487;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 30px;
    line-height: 36px;
    padding: 17px 30px;
    background-color: #eadeae;
    border-radius: 20px 20px 0 0;
}

.modal .close {
    position: relative;
    width: 30px;
    height: 30px;
    margin-top: 5px;
    cursor: pointer;
}

.modal .close:before, .modal .close:after {
    content: '';
    display: block;
    width: 2px;
    height: 36px;
    transform: rotate(45deg);
    position: absolute;
    top: -4px;
    left: 12px;
    background: #562433;
}

.modal .close:after {
    transform: rotate(-45deg);
}

.modal .content {
    flex: 1;
    overflow: auto;
    padding: 20px 30px;
}

.book {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bfb487;
    padding: 20px 0;
}

.book:last-child {
    border-bottom: 0;
}

.book img {
    width: 120px;
    flex: none;
    margin-right: 20px;
    border-radius: 6px;
}

.book p {
    margin-bottom: 5px;
}

.info {
    flex: 1;
    display: flex;
    align-items: center;
}

.info > div:nth-child(1) {
    width: 75%;
    flex: none;
    margin-right: 20px;
}

.info > div:nth-child(2) {
    flex: 1;
    font-style: italic;
}

@media (min-width: 1024px) {
    .container {
        flex-direction: row;
    }

    .capybara-logo {
        margin-right: 60px;
    }

    main {
        margin-right: 50px;
    }
}

@media (min-width: 992px) {
    a:hover svg path {
        fill: #de6740;
    }
}

@media (max-width: 767px) {
    body:before, body:after {
        width: 400px;
        height: 400px;
    }

    .capybara-logo {
        width: 300px;
        height: 300px;
    }

    svg {
        width: 50px !important;
        height: 50px !important;
    }

    nav ul li {
        flex: 1;
    }

    .modal-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .modal .title {
        border-radius: 0;
    }

    .book > div:nth-child(2) {
        width: 50%;
    }
}

@media (max-width: 550px) {
    nav br {
        display: block;
    }

    .info {
        flex-direction: column;
    }

    .info > div:nth-child(1) {
        width: 100%;
        margin-right: 0px;
    }
}