@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');

:root {
    --bgColor: #ffffff;
    --accentColor: #000000;
    --font: 'Karla', sans-serif;
    --delay: .3s;
}

/* ------------------------
   全体
------------------------ */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: #ffffff;
    color: var(--accentColor);
    opacity: 0;
    animation: transitionAnimation 1s ease-out var(--delay);
    animation-fill-mode: forwards;
}

/* ------------------------
   プロフィール
------------------------ */

#profilePicture,
#profilePicture img {
    width: 96px;
    height: 96px;
    display: block;
    margin: 40px auto 20px;
    border-radius: 50%;
}

#userName {
    color: var(--accentColor);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* ------------------------
   リンク
------------------------ */

#links {
    max-width: 675px;
    margin: 27px auto;
}

.link {
    display: block;
    margin: 10px;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: #fff;
    transition: .25s;
}

.link:hover {
    background: #000;
    color: #fff;
}

.link:active {
    background: #000;
    color: #fff;
}

/* ------------------------
   ハッシュタグ
------------------------ */

#hashtag {
    padding-bottom: 20px;
    text-align: center;
    color: #000;
    font-size: 1rem;
}

/* ------------------------
   アニメーション
------------------------ */

@keyframes transitionAnimation {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ------------------------
   ポップアップ
------------------------ */

.overlay {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.7);

    visibility: hidden;
    opacity: 0;

    transition: .5s;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {

    width: 90%;
    max-width: 400px;

    background: #fff;

    border: 2px solid #000;

    transform: scale(0);

    transition: .5s;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

.overlay:target .popup {
    transform: scale(1);
}

.popup-photo img {
    width: 100%;
    display: block;
}

.popup-quote {
    padding: 20px;
    text-align: center;
    color: #000;
    font-style: italic;
}

.popup-close {

    position: absolute;

    top: -15px;
    right: -15px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #fff;
    border: 2px solid #000;

    color: #000;

    text-align: center;
    line-height: 36px;

    text-decoration: none;

    transition: .25s;
}

.popup-close:hover {
    background: #000;
    color: #fff;
}