* {
    font-family: "Comfortaa", "Noto Sans JP";
}

a {
    text-decoration: none;
    transition: color 0.3s;
    color: var(--primary-color);
    font-family: "Courier Prime"
}

a:hover {
    color: var(--secondary-color)
}

.title_card {
    width: 90%;
    height: 80%;
    padding: 3%;
    margin: auto;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;

    display: flex;

    opacity: 0;
    border-width: 2px;
    border-style: solid;

    border-radius: 100px;
    background-color: var(--background);
    border-color: var(--secondary-color)
}

.title_card.ready {
    opacity: 1;
    transition: opacity 1s ease-in;
}

.title_left {
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.title {
    font-size: 1.5vw;
    color: var(--primary-color);
    animation: opacity 1s ease-in-out
}

.desc,
.caption {
    size: 10%;
    margin-left: 0;
    max-width: 70%;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--tertiary-color);
    font-family: "Courier Prime"
}

.y-scrollable {
    overflow-y: scroll
}

.caption {
    color: var(--secondary-color)
}

.contact {
    width: 70%;
    display: flex;
    margin-left: 0;
    margin-bottom: 20px;
    height: fit-content;
    color: var(--yin-color);
    justify-content: space-around
}

.screen {
    width: 70%;
    min-height: 50%;
    scrollbar-width: none;
}

div::-webkit-scrollbar {
    display: none
}

.button,
.big-button {
    flex: 1;
    padding: 20px;
    font-size: 100%;
    overflow-x: scroll;
    border-style: solid;
    margin-bottom: 20px;
    border-radius: 100px;
    color: var(--yin-color);
    transition: background 0.3s;
    border-color: var(--tertiary-color);
    font-family: 'Courier New', Courier, monospace;

    display: flex;
    align-items: center;
    justify-content: space-between
}

.big-button {
    border-radius: 20px
}

.button:hover,
.big-button:hover {
    background-color: var(--yang-color);
    border-color: var(--secondary-color)
}

.button:active,
.big-button:hover {
    transform: scale(0.95);
    color: var(--yang-color);
    background-color: white;
    border-color: var(--primary-color)
}

.title_right {
    flex: 1;
    display: flex;
    font-size: large;
    width: fit-content;
    align-items: center;
    justify-content: end
}

.profile {
    display: flex;
    width: 100%;
    height: 100%;
}

.profile-inner {
    display: grid;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    justify-content: end;
    transition: transform 0.6s;
    grid-template-columns: 1fr;
    transform-style: preserve-3d
}

.profile:hover .profile-inner {
    transform: rotateY(180deg);
}

.profile-front,
.profile-back {
    grid-row-start: 1;
    grid-column-start: 1;

    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;

    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden
}

.profile-front span,
.profile-back span {
    font-size: 10em;
    backface-visibility: hidden;
    color: var(--secondary-color);
    -webkit-backface-visibility: hidden
}

.profile-back {
    transform: rotateY(180deg)
}

.profile-front img,
.profile-back img {
    width: 50%;
    margin-right: 0%;
    border-width: 2px;
    border-radius: 100%;
    border-style: solid;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-color: var(--secondary-color)
}

.popup {
    visibility: hidden;

    padding: 2%;
    margin: auto;
    width: fit-content;
    height: fit-content;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    border-width: 2px;
    border-radius: 20px;
    border-style: solid;
    border-color: var(--secondary-color);
    background-color: var(--yang-color);

    animation: opacity 1s ease-in-out
}

.popup.show {
    visibility: visible;
    animation: fadeIn 1s;
    -webkit-animation: fadeIn 1s
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 800px) {

    .title_card {
        width: 90%;
        height: 95%;
        border-radius: 30px;
        flex-direction: column-reverse
    }

    .title_left {
        flex: 1;
        height: 0%;
        width: 100%;
        flex-grow: 1
    }

    .title {
        height: auto;
        font-size: 100%
    }

    .contact {
        width: 100%;
        margin-left: 0%;
        margin-right: 0%;
        margin-bottom: 20px;
        align-items: center;
        justify-content: space-between
    }

    .desc,
    .caption {
        height: auto;
        max-width: 100%;
        margin-bottom: 20px
    }

    .title_left .screen {
        width: 100%
    }

    .title_right {
        flex-grow: 0;
        display: flex;
        height: fit-content;
        align-items: flex-start;
        justify-content: center
    }

    .big-button {
        font-size: 100%
    }

}