* {
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

:root {
    --border: 2px solid #c8c8c8;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    position: relative;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 32px;
    background-color: rgb(255, 255, 233);
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px;
    justify-content: center;
    scroll-behavior: smooth;
    transition: color 0.3s ease;
}

h1 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

h2 {
    font-size: clamp(1rem, 4vw, 1.2rem);
}

p, a {
    font-size: clamp(0.5rem, 2.5vw, 1rem);
}

img {
    width: inherit;
    height: inherit;
    border-radius: inherit;
}

.person {
    display: flex;
    justify-content: left;
    align-items: end;
    height: 150px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    gap: 16px;
}

nav ul {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
}

a {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

h1 {
    font-size: 2.5em;
    font-weight: 800;
    padding-bottom: 0.2em;
}

.hidden {
    display: none;
}

li {
    list-style-type: none;
}

.opacity7 {
    opacity: 0.7;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip:hover {
    background-color: rgb(173, 173, 173);
}

.avatar {
    height: 150px;
    width: 150px;
    border-radius: 15%;
}

.icon {
    width: 18px;
    height: 18px;

}

.iconbox {
    display: flex;
    height: 24px;
    width: 24px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #fff;

}

.major {
    font-weight: 400;
    text-transform: none;
}

.chip {
    display: flex;
    align-items: center;
    background-color: #c8c8c8;
    border-radius: 0.7em;
    width: fit-content;
    height: fit-content;
    padding: 8px 10px;
    gap: 8px;
    transition: background-color 0.3s ease;

}

.chip > p {
    display: flex;
    font-weight: 500;
    white-space: nowrap;
    height: 24px;
    align-items: center;
}

.topic {
    width: fit-content;
    margin-top: 30px;
}

h2 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.2em;
}

.underline {
    margin: 5px 8px;
    box-sizing: border-box;
    border: 2px solid #999;
    border-radius: 2px;
}

section + section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 5px;
}

.samples {
    display: flex;
    gap: 20px;
}

pre:hover  {
    flex: 6;
}

pre {
    padding: 15px;
    border-radius: 16px;
    overflow: auto;
    border: var(--border);
    height: 500px;
    transition: all 0.3s ease-in-out;
    flex: 1;
}

code {
    padding: 2px 4px;
    border-radius: 16px;
        transition: all 0.3s ease-in-out;

}

section ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* flex-direction: column; */
    column-gap: 20px;
    row-gap: 20px;
    width: 100%;
}

.project {
    position: relative;
    /* width: 400px;
    height: 200px; */
    border-radius: 16px;
    border: var(--border);
    background-color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.project:hover {
    box-shadow: 0 0 20px #c8c8c8;
}

.project-preview {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease-in-out;
}

.project-preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.project-info {
    position: absolute;
    height: 70px;
    left: 0;
    bottom: -55px;
    background-color: #f5f2f0;
    padding: 16px;
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

.project:hover > .project-info {
    bottom: 0;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

footer {
    display: flex;
    padding-top: 24px;
    justify-content: space-around;
    align-items: center;
}

footer .icon {
    width: 60px;
    height: 36px;
    border-radius: 0%;
}




/* Switch style */
.theme-switch-wrapper {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#theme-text {
    margin-left: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}


#sun {
    display: none;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #c8c8c8;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
}

input:checked + .slider {
    background-color: #6a6a6a;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* Dark theme */
body.dark-theme {
    background-color: #1b1b1b;
    color: #f2f2f2;
}

.dark-theme .chip {
    background-color: #6a6a6a;
}

.dark-theme pre {
    border: 2px solid #16191c;
}

.dark-theme .project {
    color: #babec2;
    border: 2px solid #16191c;
}

.dark-theme .project:hover {
    box-shadow: 0 0 20px #000;
}

.dark-theme .project-info {
    background-color: #2d2d2d;
}

.dark-theme .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.dark-theme #rss, .dark-theme #gh {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

.token.operator {
    background: none;
}