:root {
    /* this has to be set to switch between light or dark */
    color-scheme: light dark;

    --light-bg: #e6e3e3;
    --light-color: #16191d;
    --light-muted: #dadada;

    --dark-bg: #16191d;
    --dark-color: #e6e3e3;
    --dark-muted: #25292e;

    --primary-color: #06d876;
}

.light {
    /* forces light color-scheme */
    color-scheme: light;
}

.dark {
    /* forces dark color-scheme */
    color-scheme: dark;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    font-feature-settings: normal
}

* {
    background-color: light-dark(var(--light-bg), var(--dark-bg));
    color: light-dark(var(--light-color), var(--dark-color));
    margin: 0;
    padding: 0;
}

header {
    position: sticky;
    top: 0;
    /* Stick to the top of the page */
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme {
    position: relative;
    display: inline-block;
}

.themebtn {
    background-color: transparent;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
}

.theme-content {
    display: none;
    position: absolute;
    background-color: transparent;
    min-width: 85px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.25rem;
    overflow: hidden;
}

.theme-content button {
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
}

.theme-content button:hover {
    background-color: var(--primary-color);
}

.theme:hover .theme-content {
    display: block;
}

nav {
    display: flex;
    /* Align items in a row */
    padding: 0;
    margin: 0;
    justify-content: space-between;
    align-items: center;
}

a {
    text-decoration: none;
    /* Remove underline */
    font-weight: bold;
}

.link {
    color: inherit;
}

.link svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

main {
    min-height: 100vh;
}

h3 {
    font-weight: 400;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

.center {
    margin: 0 auto;
}

.profile * {
    max-width: 600px;
}

.banner {
    width: 100%;
    /* Make the image take up the full width of its container */
    max-width: 700px;
    /* Limit the width to 700px */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove inline spacing caused by default inline-block behavior */

}

.image {
    border-radius: 50%;
    /* Make the image rounded (circle shape) */
    object-fit: cover;
    /* Ensure the image covers the area without stretching */
    display: block;

    background-color: transparent;
}

.profile .image {
    width: 200px;
    height: 200px;
}

.profile .info {
    margin-top: -100px;
}

.attributes {
    display: flex;
    /* Flex on the parent to align child spans in a row */
}

.attributes span {
    display: flex;
    /* Flex for aligning text and SVG inside each span */
    align-items: center;
    margin: 0px 20px 0px 0px;
}

.attributes span svg {
    margin: 0px 8px 0px 0px;
    width: 15px;
    height: 15px;
}

.links {
    color: var(--primary-color);
}

.muted {
    color: gray;
}

.tab-wrap {
    transition: 0.3s box-shadow ease;
    /* border-radius: 6px; */
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    list-style: none;
    margin: 40px 0;
    gap: 20px;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
}

/* .tab-wrap:hover {
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
} */

.tab {
    display: none;
}

.tab:checked:nth-of-type(1)~.tab__content:nth-of-type(1) {
    opacity: 1;
    display: block;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.tab:checked:nth-of-type(2)~.tab__content:nth-of-type(2) {
    opacity: 1;
    display: block;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.tab:checked:nth-of-type(3)~.tab__content:nth-of-type(3) {
    opacity: 1;
    display: block;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.tab:checked:nth-of-type(4)~.tab__content:nth-of-type(4) {
    opacity: 1;
    display: block;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.tab:checked:nth-of-type(5)~.tab__content:nth-of-type(5) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.tab:first-of-type:not(:last-of-type)+label {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tab:not(:first-of-type):not(:last-of-type)+label {
    border-radius: 0;
}

.tab:last-of-type:not(:first-of-type)+label {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.tab:checked+label {
    /* background-color: #fff; */
    color: var(--primary-color);
    box-shadow: 0 -1px 0 var(--primary-color) inset;
    cursor: default;
}

.tab:checked+label:hover {
    color: var(--primary-color);
    box-shadow: 0 -1px 0 var(--primary-color) inset;
    /* background-color: #fff; */
}

.tab+label {
    /* box-shadow: 0 -1px 0 #eee inset; */
    /* border-radius: 6px 6px 0 0; */
    cursor: pointer;
    display: block;
    text-decoration: none;
    flex-grow: 3;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    transition: 0.3s background-color ease, 0.3s box-shadow ease;
    height: 50px;
    box-sizing: border-box;
    padding: 15px;
}

.tab+label:hover {
    /* background-color: var(--primary-color); */
    color: var(--primary-color);
    box-shadow: 0 -1px 0 var(--primary-color) inset;
}

.tab__content {
    padding: 10px 10px;
    position: absolute;
    width: 100%;
    z-index: -1;
    opacity: 0;
    display: none;
    left: 0;
    transform: translateY(-3px);
    /* border-radius: 6px; */
}

.container {
    display: block;
    max-width: 500px;
    /* margin-top: -20px; */
}

.container>*:not(.tab-wrap) {
    padding: 0 80px;
}

.post {
    padding: 30px 30px;
    margin-bottom: 2em;
}

.post:hover {
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
}

.post .content h2 {
    font-weight: 600;
}

.post .content img {
    width: 100%;
    height: auto;
    display: block;
}

.head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.date {
    font-size: 1em;
    font-weight: 400;
}

.post .image {
    margin: 0px 8px 0px 0px;
    width: 40px;
    height: 40px;
}

.text-px {
    padding: 0.5rem;
}

.form-container {
    padding: 2rem;
}

.form-container:hover {
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
}

.guestbook-form h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guestbook-form label {
    font-size: 0.95rem;
    font-weight: 500;
}

.guestbook-form input,
.guestbook-form textarea {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.guestbook-form textarea {
    resize: vertical;
    min-height: 100px;
}

.guestbook-form button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 0.5rem;
}

.guestbook-form button:hover {
    opacity: 0.9;
}

.social-links {
    max-width: 500px;
    padding: 20px 20px;
}

.social-links h1{
    font-size: xx-large;
}

.social-links h2{
    font-size: x-large;
    margin-bottom: 10px;
}

.social-links ul {
    padding: 0;
    margin-bottom: 30px;
}

.social-links ul li {
    display: inline-block;
    margin-bottom: 15px;
    margin-right: 8px; 
}

.social-links ul li a {
    background-color: light-dark(var(--light-muted), var(--dark-muted));
    border: 1px solid var(--light-muted);
    padding: 0.75rem 0.50rem;
    font-size: large;
    font-weight: 400;
    border-radius: 0.25rem;
    display: block;
}

.social-links ul li a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

footer {
    max-width: 500px;
    padding: 20px 20px;
    text-align: center;
}

footer ul {
    padding: 0;
}

footer ul li {
    display: inline-block;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }

    .guestbook-form input,
    .guestbook-form textarea,
    .guestbook-form button {
        padding: 0.625rem;
    }

    .profile .image {
        width: 150px;
        height: 150px;
    }

    .info,
    .attributes {
        padding: 1rem;
    }

    .tab-wrap {
        gap: 3px;
    }

    .text-px {
        padding: 1.2rem;
    }

    .post {
        box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
    }
}