/*
* personads.me - synvae css
*/

/*
* resource setup
*/

@font-face {
    font-family: "Abel";
    src: url('/rsrc/abel.ttf');
}

@font-face {
    font-family: "M+ 2p";
    src: url('/rsrc/mplus-2p.ttf');
    /* a big thanks to the M+ FONTS PROJECT for providing their design under the Free License */
}

/*
* element styles
*/

body {
    padding: 2em 10%;
    color: rgba(255, 255, 255, 0.8);
    background-color: #000;
    font-family: "M+ 2p";
    text-align: left;
}

h1 svg {
    margin-bottom: -.1em;
}

h2 {
    margin-top: 2em;
    color: rgba(255, 255, 255, 0.6);
}

p {
    max-width: 74%;
    margin: 1em 0;
    text-align: justify;
}

p img {
    max-width: 100%;
}

a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: all .2s;
}

a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

ol li {
    margin-bottom: .5em;
    color: rgba(255, 255, 255, 0.5);
}

ol li em {
    color: rgba(255, 255, 255, 0.8);
}

ol li a {
    color: rgba(255, 255, 255, 0.5);
}

/*
* general styles
*/

.button {
    display: inline-block;
    margin: 1em 1em 1em 0em;
    padding: .5em 1em;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    opacity: .5;
    transition: all .3s;
}

.button:hover {
    opacity: 1;
    border: 2px solid #fff;
}

/*
* textual styles
*/

.abstract {
    max-width: 60%;
    color: #fff;
}

/*
* data
*/

div.data {
    display: flex;
    width: 76%;
    margin-bottom: 1em;
}

.data.playing .datum:not(.playing) {
    opacity: .5;
}

.datum {
    display: inline-block;
    position: relative;
    flex: 10%;
    margin-right: 1em;
    border: 1px solid rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .2s;
}

.datum img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.datum.playing {
    border-color: rgba(247, 145, 12, .7);
    z-index: 3;
    transform: scale(1.05);
}

.datum.playing > .progress {
    display: inline-block;
}

.datum .progress {
    display: none;
    position: absolute;
    left: 0;
    bottom: -.7em;
    height: 2px;
    background-color: rgba(247, 145, 12, .7);
    transition: all .2s;
}

/*
* gallery
*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    width: 76%;
}

.gallery-column {
    flex: 25%;
    max-width: 24%;
    padding-right: 3px;
}

.gallery-column .datum {
    width: 100%;
    max-width: 100%;
    margin-bottom: 3px;
    border: none;
}

/*
* smaller layout
*/

@media screen and (max-width: 800px), screen and (device-width: 375px) and (orientation: portrait) {
    body {
        padding: 1em;
    }

    p {
        max-width: 100%;
    }

    .abstract {
        max-width: 90%;
    }

    div.data {
        width: 100%;
    }

    .gallery {
        width: 100%;
    }
}