@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: "Roboto", sans-serif;
}

html {
    --spec-base-background: #fff;
    --spec-10-percent-layer: rgba(0, 0, 0, 0.1);
    --spec-additive-background: rgba(0, 0, 0, 0.05);
    --spec-lighter-background: rgba(0, 0, 0, 0.04);
    --spec-text-primary: #0f0f0f;
    --spec-text-secondary: #606060;
    --subtext: #606060;
    --spec-overlay: rgba(0, 0, 0, 0.5);
}

html[dark] {
    --spec-base-background: #0f0f0f;
    --spec-10-percent-layer: rgba(255, 255, 255, 0.2);
    --spec-additive-background: rgba(255, 255, 255, 0.1);
    --spec-lighter-background: rgba(255, 255, 255, 0.04);
    --spec-text-primary: #f1f1f1;
    --subtext: #aaa;
    --spec-overlay: rgba(255, 255, 255, 0.15);
}

body {
    padding: 0;
    margin: 0;
    overflow-y: scroll;
    background: var(--spec-base-background);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

div, img, h1 {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
    stroke: none;
    height: 24px;
    width: 24px;
}

.container {
    position: absolute;
    display: block;
    min-height: 100%;
    top: 0;
    right: 0;
    left: 0;
    background: var(--spec-base-background);
    scrollbar-color: var(--spec-text-secondary), transparent;
    scrollbar-width: thin;
}

.page {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    overflow-x: hidden;
    overflow-y: visible;
    flex: 1;
    padding: 40px;
    width: 100%;
}

.hero-section {
    max-width: 90%;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: var(--spec-additive-background);
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: center;
    padding: 20px;
    margin: auto;
}

.hero-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    display: inline-block;
    background-color: transparent;
}

.image-container > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: none;
    max-width: 100%;
    border-radius: none;
}

.hero-information {
    display: flex;
    flex-direction: column;
}

.hero-title {
    word-break: break-word;
    font-family: "Roboto", sans-serif;
    font-size: 3.6rem;
    line-height: 5rem;
    font-weight: 700;
    overflow: hidden;
    color: var(--spec-text-primary);
    text-overflow: ellipsis;
    white-space: normal;
    text-align: center;
}

.hero-subtext {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--subtext);
}

.hero-string {
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-end {
    position: absolute;
    right: 15px;
    top: 15px;
}

.hero-button {
    padding: 0 16px;
    height: 36px;
    border-radius: 18px;
    color: var(--spec-text-primary);
    background: var(--spec-additive-background);
    white-space: nowrap;
    border: none;
    outline: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-transform: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    margin-left: 15px;
}

.hero-button:hover {
    background: var(--spec-10-percent-layer);
}

.hero-icon-button {
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    color: var(--spec-text-primary);
}

.hero-icon-button:hover {
    background: var(--spec-additive-background);
}

.tablist {
    position: relative;
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    max-width: 90%;
    overflow-x: scroll;
    width: fit-content;
    margin: 20px auto;
    border-bottom: 1px solid var(--spec-10-percent-layer);
}

.tablist::after {
    content: "";
    position: absolute; 
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    scale: var(--width, 0.11) 1;
    translate: var(--left, 0) 0;
    transform-origin: left;
    transition: scale 0.2s, translate 0.2s;
    background-color: var(--spec-text-primary);
}

.tablist-button {
    position: relative;
    padding: 0;
    height: 48px;
    min-width: 48px;
    margin-right: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tablist-button.active > .tablist-text {
    color: var(--spec-text-primary);
}

.tablist-button:hover > .tablist-text {
    color: var(--spec-text-primary);
}

.tablist-text {
    color: var(--subtext);
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
    font-weight: 500;
}

.panel {
    margin: auto;
    max-width: 90%;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    background: var(--spec-additive-background);
}

.welcome {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    font-size: 400;
    line-height: 1.8rem;
    color: var(--spec-text-primary);
}

.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project {
    padding: 20px;
    cursor: pointer;
    border-radius: 10px;
    background-color: var(--spec-base-background);
}

.project:hover {
    background-color: var(--spec-lighter-background);
}

.project-title {
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 2.8rem;
    color: var(--spec-text-primary);
}

.project-description {
    margin-top: 12px;
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.4rem;
    color: var(--spec-text-primary);
}

.project-date {
    margin-top: 6px;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.4rem;
    color: var(--spec-text-secondary);
}

.specs-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
}

.specs-title {
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 2.4rem;
    color: var(--spec-text-primary);
}

.specs-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec {
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.2rem;
    color: var(--spec-text-primary);
}

.update-notice {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.8rem;
    color: var(--spec-text-primary);
}

.social {
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2rem;
    color: var(--spec-text-primary);
}

.social-link {
    color: #4285f4;
    text-decoration: none;
}

.social-link:hover {
    color: #065fd4;
}

.social:not(:first-child) {
    margin-top: 1.5rem;
}

.more-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.more-text > span {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.4rem;
    color: var(--spec-text-primary);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    z-index: 2;
    width: 700px;
    max-width: 80%;
    background: var(--spec-base-background);
    display: none;
}

.modal.opened {
    display: block;
}

.modal-header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    color: var(--spec-text-primary);
}

.modal-button {
    height: 40px;
    width: 40px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    color: var(--spec-text-primary);
}

.modal-button:hover {
    background: var(--spec-additive-background);
}

.modal-container {
    padding: 20px;
}

.modal-information {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 15px;
}

.modal-information > span {
    color: var(--spec-text-primary);
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    white-space: pre-wrap;
}

.modal-link {
    color: #4285f4;
    text-decoration: none;
}

.modal-link:hover {
    color: #2f63b6;
}

#scrim {
    position: fixed;
    opacity: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--spec-overlay);
    pointer-events: none;
}

#scrim.visible {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .specs-grid {
        flex-direction: column;
    }
}

@media (max-width: 507px) {
    .hero-section,
    .tablist,
    .panel {
        max-width: 100%;
    }
}

@media (max-width: 460px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
