main
{
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

main > hr { width: 100dvw; }

.block
{
    text-align: left;
    margin: 1rem auto;
    max-width: 50rem;
    width: 100%;
    flex-grow: 1;
    box-sizing: border-box;
}

.twoblock
{
    display:flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    max-width: 50rem;
    column-gap: 2rem;
}

.twoblock > div
{
    width: min(50%, 20rem);
    flex-grow: 1;
}

.legend
{
    background-image: url('/res/sea_poster.png');
}

.legend .video_wrapper
{
    position: absolute;
    width: 100%;
    height: 101%;
    overflow: hidden;
}

.legend .video_wrapper video
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block .text > strong
{
    font-size: 1.15rem;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5%;
    margin-bottom: 1.25em;
}

.block .text > strong small
{
    font-size: .75em;
    text-transform: lowercase;
    letter-spacing: 0;
}

.block .text > strong::after
{
    content: "";
    height: 1px;
    width: 3em;
    background: #000000;
    display: block;
    margin: .5em auto .25em auto;
}

.block .call_to_action
{
    text-align: center;
}

.author
{
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
}

.author img
{
    border-radius: 1rem;
    width: 12rem;
    margin: 1rem .5rem;
}

.author .text
{
    width: calc(100% - 16rem);
    margin: 0 1rem;
}

.levels
{
    width: min(100%, 20rem);
    margin: 1em 0 0 0;
}

.block img
{
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#courses
{
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    justify-content: center;
}

#courses > a
{
    background: url('/res/letters_bright.png');
    background-size: cover;
    display: flex;
    flex-flow: column nowrap;
    width: 10rem;
    height: 10rem;
    text-decoration: none !important;
    border-radius: 2rem;
    padding: 1rem;
    font-size: .8rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .3);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    color: #000000 !important;
    text-align: center;
}

#courses > a:hover
{
    transform: translateY(-.2rem);
    box-shadow: 0 .4rem .5rem rgba(0, 0, 0, .3);
}

#courses > a > strong
{
    background: rgba(255, 255, 255, .5);
    text-shadow: 0 1px 0 #ffffff;
    color: #236ebd !important;
    font-size: 1.15rem;
    flex-grow: 1;
    margin: -1em -1em .5em -1em;
    padding: 1em 0 0 0;
}

#courses > a > .more
{
    background: rgba(0, 0, 150, .15);
    border-radius: 1rem;
    padding: .15rem .25rem;
    box-shadow: inset 0 .05rem .1rem rgba(0, 0, 0, .2);
    color: #1d588d;
    font-weight: 600;
    margin-top: 1rem;
}

@media screen and (max-width: 750px)
{
    .block { border-radius: 0; margin: 0; width: 100%; }
    .author .text { width: 100%; }
}