* {
    box-sizing: border-box;
}
a {
    color: #3A7C9F;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arimo;
    font-weight: 400;
    font-size: 12px;
    background-color: #9FC5D3;
}
#first-page {
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#topbar {
    height: 70px;
    width: 1500px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
}
#topbar span {
    margin-left: auto;
    margin-right: 30px;
    display: flex;
    flex-direction: row;
}
#topbar a {
    font-size: 20px;
    padding: 30px;
    text-decoration: none;
    color: black;
    font-family: Arimo;
    font-weight: bold;
}
#topbar a.with-logo {
    margin-left: 40px;
    padding-left: 50px;
    background-image: url(../static/logo.png);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: left 27px;
}
#topbar #menu-burger {
    /* Verticallya align image container in it */
    display: none;
    align-items: center;
    justify-content: center;

}
#topbar #menu-burger > div {
    margin-top: 10px;
    height: 20px;
    width: 26px;
    background-size: cover;
    background-position: center;
}
#topbar #menu-burger > div.closed {
    background-image: url(../static/menu.png);
}
#topbar #menu-burger > div.open {
    background-image: url(../static/close.png);
}

#main-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arimo;
    font-weight: bold;
    font-size: 40px;
    text-align: center;
    margin: 0 auto;
    padding: 50px;
    box-sizing: content-box;
    max-width: 710px;
    flex-grow: 1;
}
#main-title-container.wide {
    max-width: 1500px;
}
#main-title-container > div {
    text-align: left;
}
h1 {
    display: inline-block;
    color: #3A7C9F;
    margin: 0;
}

#main-title-container #about-me {
    margin-top: 60px;
    font-size: 20px;
}

#main-title-container #links {
    position: relative;
    text-align: center;
    padding: 30px 0;
}

#main-title-container #links a img {
    width: 30px;
    margin: 40px;
}

#main-title {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

#main-title div:first-child {
    width: 100px;
    padding-bottom: 9px;
}

#main-title-container > div:not(#main-title, #about-me, #links) {
    display: block;
    font-size: 20px;
    text-align: left;
    margin: 0 auto;
    max-width: 1000px;
    font-weight: normal;
}

h2 {
    font-size: 40px;
}
#content > div {
    padding: 100px;
}

/* Boxes */
.box-container {
    display: flex;
    flex-flow: wrap;align-content: space-around;
    justify-content: space-evenly;
    align-items: flex-start;
}
.box {
    position: relative;
}

.box .inside-box {
    display: inline-block;
    margin: 20px;
    background-color: #f4f7f9;
    box-shadow: 0 4px 8px #1a49631d;
    border: 1px solid #1e374527;
    border-radius: 5px;

    width: 290px;
    min-height: 200px;
    overflow: hidden;

    font-size: 20px;
    width: 290px;
    font-weight: bold;
    transition: linear 0.1s;
}

.box-image {
    width: 288px;
    margin: 0 auto 25px;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px #1a49631d;
}
.box-centered {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

        
.box-content {
    display: flex;
    flex-direction: column;
}
.box-title {
    grid-column: 2 / 4;
    grid-row: 1;
    margin-bottom: 10px;
    padding: 0 20px;
    /* text-align: center; */
}
.box .inside-box .box-tags {
    grid-column: 2;
    grid-row: 2;
    display: inline-block;
    text-overflow: "+";
}
.box .inside-box .box-tags span {
    background: #8fb8ce;
    font-weight: normal;
    font-size: 12px;
    padding: 5px;
    border: 1px solid #3A7C9F;
    border-radius: 5px;
}
.box .inside-box .box-links {
    grid-column: 3;
    grid-row: 2;
    display: inline-block;
}
.box .inside-box .box-links a {
    font-size: 20px;
    margin-right: 10px
}
.box .inside-box .box-summary {
    grid-column: 2 / 4;
    grid-row: 3;
    margin-top: 0px;
    font-weight: normal;
    font-size: 18px;
    color:#485e6a;
    padding: 5px;
    height: max-content;
    padding: 0 20px;
    margin-bottom: 20px;
}
a.disguised-link {
    color: inherit;
    text-decoration: none;
}
.box-source-link {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 41px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #3A7C9F;
    overflow: hidden;
}
.box-source-link img {
    width: 40px;
}

/* Mobile */
@media (max-width: 800px) {
    #content > div {
        padding: 15px;
    }
    .box .inside-box {
        flex-direction: column;
    }

    .box-image {
        margin-right: 0px;
        margin-bottom: 15px;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .box-content > div {
        margin-bottom: 10px;
    }
}

#menu-links.mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 30px 30px;
    z-index: 100;
}

#menu-links.mobile a {
    text-align: left;
}

#menu-links.mobile a:not(:last-child) {
    border-bottom: 2px solid rgb(182 182 182);
}
