/*
* personads.me - main css
*/

/*
* resource setup
*/

@font-face {
    font-family: 'Abel';
    src: url('rsrc/abel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*
* element styles
*/

body {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    margin: 0;
    font-family: 'Abel', sans-serif;
    font-size: 20pt;
    color:#fff;
    background-color: #fff;
}

a {
    position: relative;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgb(134, 174, 216);
    border-style: none;
    transition: all 0.2s;
}

a::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 0%;
    height: 1px;
    bottom: -0.1em;
    left: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.2s ease-in-out 0s;
}

a:hover {
    color: rgb(134, 174, 216);
}

a:hover::before {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

input, select {
    display: inline-block;
    font-family: "Abel", sans-serif;
    font-size: 0.9em;
    margin: 0.5em;
    padding: 0.5em;
    border: none;
}

input[type="text"], input[type="password"], input[type="email"], select {
    min-width: 10em;
    border-radius: 6px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5) inset;
}

dt {
    margin-top: 0.5em;
    font-weight: bold;
}

dt small {
    font-size: 1em;
    font-weight: normal;
}

dd {
    margin-left: 0;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 1em;
    height: 1.25em;
    padding: 0.5em;
    text-align: right;
    font-size: 0.7em;
    opacity: 0.3;
}

footer a:hover {
    color: #fff;
}

/*
* general styles
*/

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button {
    display: inline-block;
    margin: .5em .5em .5em 0em;
    padding: .4em .8em;
    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;
    color: #fff;
}

/*
* menu styles
*/

.menu {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 50;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: default;
    transition: width 0.7s;
}

.menu .centered {
    overflow: hidden;
    white-space: nowrap;
    z-index: auto;
    transition-property: opacity, z-index;
    transition-duration: 0.7s, 0s;
    transition-delay: 0s, 0.7s;
}

.menu .logo {
    width: 1.75em;
    height: 1.75em;
    vertical-align: middle;
}

.menu a {
    text-decoration: none;
    border-style: none;
}

.menu ul {
    display: inline-block;
    margin: 0 0 0 0.75em;
    padding: 0;
    vertical-align: middle;
    opacity: 0.5;
    transition-property: opacity;
    transition-duration: 0.3s;
    transition-delay: 0s;
}

.menu ul:hover {
    opacity: 1;
}

.menu .centered > ul {
    opacity: 1;
}

.menu li {
    margin: 0 0 0.25em 0;
    list-style: none;
}

.menu .footnote {
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    font-size: 0.7em;
    opacity: 0.3;
}

.menu .footnote:hover {
    color: #fff;
}

/*
* header styles
*/


.page-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.page-header a:hover::before {
    width: 0;
}

.page-header .logo {
    padding: 0.5em;
    width: 1.5em;
    height: 1.5em;
    border-radius: 0 0 10% 0;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    display: inline-block;
    margin: 0.3em;
    vertical-align: top;
    font-size: 1.2em;
    font-weight: normal;
    text-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
    opacity: 0.7;
}

/*
* content styles
*/

#content {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    padding: 0 15% 1em 15%;
    overflow-y: auto;
    background-image: url("img/back.jpg");
    background-size: cover;
    background-position: bottom;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
    font-size: 0.8em;
}

#content > .tags {
    margin: 2em 0 2em 0;
}

.code-entry input[type=password]{
    text-align: center;
}

.message-box {
    position: absolute;
    bottom: 3em;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .6);
}

/*
* card listing styles
*/

.card-listing {
    margin: 1em 0;
    list-style: none;
}

.card-listing a {
    text-decoration: none;
}

.card-listing a:hover {
    color: #fff;
}

.card-listing li:hover {
    color: #fff;
    transform: scale(1.05);
}

.card-listing li {
    margin: 2em 0;
    padding: 1em;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.card-listing li a:hover {
    color: #fff;
}

.card-listing li a:hover::before {
    display: none;
}

.card-listing li h2 {
    display: inline-block;
    margin: 0;
    padding: 0.25em;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 1.3em;
}

.card-listing li img {
    max-height: 15em;
}

.card-listing p a {
    text-decoration: underline;
    text-decoration-color: rgb(134, 174, 216);
}

.tag {
    display: inline-block;
    margin-right: 0.5em;
    padding: 0.25em 0.5em;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.tag:hover {
    color: rgba(0, 0, 0, 0.9);
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0);
}

.active-tags {
    display: inline-block;
    margin: .5em;
    vertical-align: top;
}

.active-tags .tag {
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size:.8em;
    color: rgba(0, 0, 0, 0.9);
    transition: color 0.2s ease-in-out 0s;
}

.active-tags .tag:hover {
    color: rgba(0, 0, 0, 0.6);
}

.active-tags .tag:first-child {
    margin-left: 1em;
}

.active-tags .tag::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 0%;
    height: 1px;
    bottom: 50%;
    left: 5%;
    background-color: rgba(42, 42, 42, 0);
    transition: all 0.2s ease-in-out 0s;
}

.active-tags .tag:hover::before {
    width: 90%;
    background-color: rgba(42, 42, 42, 0.8);
}

.publication-tags {
    margin-top: .25em;
}

.publication-tags .tag {
    margin-right: 0.25em;
    padding: 0.1em 0.4em;
    border-width: 1px;
    font-size: .8em;
}

.pagination {
    margin: 1em 0 1em 40px;
    text-align: center;
    font-size: 2em;
}

.pagination a {
    margin: 0 1em;
}

/*
* blog post styles
*/

.post h2 {
    display: inline-block;
    padding: 0.25em;
    background-color: rgba(0, 0, 0, 0.5);
}

.post .date {
    margin: 0;
    font-size: .9em;
    color: rgba(255, 255, 255, .6);
}

.post a {
    text-decoration: underline;
    text-decoration-color: rgb(134, 174, 216);
}

.post a.tag {
    text-decoration: none;
}

.post img {
    max-width: 80%;
    max-height: 25em;
}

.post li::marker {
    color: rgba(255, 255, 255, .6);
}

.post blockquote {
    border-left: .1em rgba(255, 255, 255, .6) solid;
    margin-left: .5em;
    padding-left: 1em;
}

.post .tags {
    margin: 1em 0;
}

.highlight-box {
    display: inline-block;
    margin: 0 .5em;
    padding: .05em .3em;
    border:  1px solid rgba(255, 255, 255, .9);
    border-radius: 3px;
    font-size: .8em;
    color: rgba(255, 255, 255, .9);
    transform: translateY(-.1em);
}

/*
* work page styles
*/

.listing h2 {
    display: inline-block;
    margin-bottom: .25em;
    padding: 0.25em;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 1.25em;
}

.listing dl {
    padding-left: .25em;
}

.listing dl dt {
    margin-top: 1em;
}

.listing dl dt small {
    font-weight: normal;
}

.listing dl dd {
    color: rgba(255, 255, 255, .7);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: .5em;
}

.cards .card {
    display: inline-block;
    flex-basis: 20%;
    margin-top: 1em;
    padding: .4em .6em;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cards.expanded .card {
    flex-basis: 40%;
}

.cards .card p {
    margin: .25em 0;
    color: rgba(255, 255, 255, .7);
}

.cards .card p a {
    text-decoration: none;
}

.cards .card img {
    max-width: 80%;
}

.squircle-frame {
    background-color: rgba(255, 255, 255, .8);
    border-radius: 10px;
}

.stack {
    position: relative;
    max-width: 90%;
    text-align: center;
}

.stack img {
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    cursor: pointer;
}

.stack img:last-child {
    position: relative;
}

.stack img:nth-child(-n+2) {
    position: absolute;
    top: 50%;
    left: 50%;
}

.stack img:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-6deg);
    opacity: 0.9;
}

.stack img:nth-child(1) {
    transform: translate(-50%, -50%) rotate(-12deg);
    opacity: 0.6;
}

.deemphasize {
    opacity: .6;
}

/*
* vitae styles
*/

.profile-card {
    margin: 4em 0 1.5em 0;
}

.profile-card .title-box {
    display: inline-block;
    vertical-align: middle;
}

.profile-card .title-box h2 {
    border-bottom: 2px solid rgba(255, 255, 255, .5);
}

.profile-card .title-box h3 {
    margin-top: -1em;
    font-size: 1em;
    font-weight: normal;
    opacity: .8;
}

.profile-card .profile-picture {
    margin-right: 1em;
    vertical-align: middle;
}

.profile-picture {
    height: 8em;
}

sup.equal-contribution {
    position: relative;
    top: -.1em;
    margin: 0 .1em 0 .3em;
    font-size: .55em;
    font-weight: bold;
    color: rgba(255, 255, 255, .5);
}

sup.equal-contribution::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: .1em;
    left: -.2em;
    width: .9em;
    height: .9em;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
}

@media screen and (max-width : 1023px), (max-height : 480px) {
    body {
        font-size: 37pt;
    }

    #content {
        padding: 2em 5% 0 5%;
    }

    .card-listing {
        padding: 1px;
    }

    .card-listing li {
        margin: 1em 0;
    }

    .cards .card {
        flex-basis: 40%;
    }

    .cards.expanded .card {
        flex-basis: 80%;
    }
}