
/* tag-specific */

body{
    font-family: Arial, sans-serif;
}

hr{
    border: none;
    height: 2px;
    margin: 0 32px;
    background-color: rgba(120,120,120,0.5);
}

/* class-specific */

section:has(.card){
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 5px;
    background-color: #fff;
    margin: 2.5rem 0.8rem;
    width: 98%;
    max-width: 900px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.card:has(.header-small){
    display: flex;
    flex-direction: row;
    padding: 16px;
}

.card:has(.header-small) img{
    width: 50px;
    height: 50px;
}

.card>.header-large, .card>.header-large>img{
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: #007bff; /* Blue color */
    border-radius: 12px;
    white-space: nowrap;
    vertical-align: middle;
}

@media (min-width: 800px) {
    .card:has(.header-large){
        display: flex;
        flex-direction: row;
        height: 400px;
    }
    .card>.header-large>img{
        height: 100%;
        max-height: 400px;
        object-fit: cover;
    }
    .card:has(.header-large)>*{
        flex: 1;
    }
}

/* page-specific */

/* index.html */

#hero{
    display: flex;
    flex-direction: column;
    height: 80vh;
    align-items: center;
}

#hero>div{
    flex: 2;
    padding: 20px;
}

#hero>#portrait{
    flex: 1;
}

#hero img{
    border-radius: 100000000px;
    filter: saturate(120%);
    max-width: calc(3vh + 150px);
    max-height: calc(3vh + 150px);
    margin-left: auto;
    display: block;
}

#hero h2, #hero p{
    text-align: center;
}

#hero h2{
    font-size: 64px;
    margin-block-start: 32px;
    margin-block-end: 0;
}
#hero p{
    margin-block-start: 0;
    margin-block-end: 32px;
}

@media (min-width: 800px) {
    #hero{
        flex-direction: row;
    }
    #hero h2, #hero p{
        text-align: initial;
    }
}

