/* Common CSS */

@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    max-height: 100dvh;
}

body {
    background: 50% 50% / cover no-repeat;
    background-attachment: fixed;
    font-family: 'Rubik', Verdana, Tahoma, sans-serif;
    color: white;
    height: 100dvh;
}

a[target=_blank], a:visited[target=_blank] {
    text-decoration: none;
    color: white;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.25) 50%);
    background-position: -0% 0;
    background-size: 200% auto;
    transition: background-position 0.3s ease-out;
}

a:hover[target=_blank], a:active[target=_blank] {
    background-position: -99.99% 0;
}

ul {
    list-style-type: none;
}

.wrapper {
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    margin-top: -30px;
    align-self: center;
    flex-shrink: 0;
    overflow: hidden;
    cursor: default;
    border-radius: 0 0 10px 10px;
    border: 1px solid #ddd;
    padding: 30px 5px 5px 5px;
    box-shadow: 0 0 13px white, 0 0 13px white inset;
}

nav a, nav a:hover, nav a:visited {
    margin: 5px;
    color: white;
    font-size: 20px;
    width: 100px;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15);
    float: left;
    text-decoration: none;
    transition: text-shadow 100ms ease-out;
}

nav a:hover {
    text-shadow: 0 0 5px white;
    font-weight: bold;
}

#about #about-link {
    text-shadow: 0 0 5px white;
}

#photos #photos-link {
    text-shadow: 0 0 5px white;
}

#blog #blog-link {
    text-shadow: 0 0 5px white;
}

.wrapper > h1 {
    text-align: center;
    padding: 15px 0;
}

#cc {
    align-self: center;
    margin: 5px;
    font-size: 12px;
}

/* About-specific CSS */

.about-data li {
    margin-top: 5px;
}

i {
    width: 20px;
    text-align: center;
}

#about-window {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    margin: auto;
}

#about-window h1 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin: -15px -15px 15px -15px;
}

#separator-bottom {
    margin-bottom: 10px;
}

#line {
    margin: 10px 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
}

/* Photos-specific CSS */

.photos-container {
    margin: -10px 0 10px 0;
    flex-grow: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
}

.tile {
    height: 200px;
    width: 200px;
    margin: 15px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 0 7px black;
    transition: 200ms ease;
}

.tile:hover {
    box-shadow: 0 0 7px white;
}

#preview {
    display: none;
    position: fixed;
    z-index: 1;
    padding: clamp(20px, 5vmin, 50px);
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
}

#preview-content {
    display: block;
    max-width: 100%;
    max-height: 100%;
    align-self: center;
    justify-self: center;
    margin: 0 auto;
    pointer-events: none;
}

#close {
    position: absolute;
    top: 40px;
    right: 20px;
    color: #f1f1f1;
    font-size: 23px;
    transition: 0.3s;
    width: 30px;
    line-height: 1;
    display: block;
    text-align: center;
}

#close:hover, #close:active {
    color: #bbb;
    cursor: pointer;
}

/* Blog-specific CSS */

.swipe, .swipe:visited {
    text-decoration: none;
    color: white;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.25) 50%);
    background-position: -0% 0;
    background-size: 200% auto;
    transition: background-position 0.3s ease-out;
}

.swipe:hover, .swipe:active {
    background-position: -99.99% 0;
}

.content {
    margin: 0 auto;
    width: 50%;
    max-width: 800px;
    flex-grow: 2;
}

@media screen and (max-width: 800px) {
    .content {
        width: 100%;
        padding: 0 10px;
    }
}

.post, .post:visited {
    line-height: 50px;
    font-size: 1.5em;
    display: block;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 15px;
    transition: box-shadow 100ms ease-out, background-color 100ms ease-out;
}

.post:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.arrow {
    float: right;
    padding-right: 15px;
}

.back, .back:visited {
    position: absolute;
    top: 85px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.blog-post .wrapper {
    background: rgba(0, 0, 0, 0.8);
}

.blog-post p {
    margin-bottom: 15px;
}

.blog-post img {
    width: 100%;
    border-radius: 10px;
    margin: 8px 0;
}

.blog-post ul, .blog-post ol {
    list-style-position: inside;
}
