@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Default styles for dark mode */
body {
    touch-action: manipulation;
    background: #161616;
    color: white;
    margin: 0px;
    padding: 0px;
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.take-over {
    background-color: #161616;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(24px);
    overflow-y: auto;
}

/* Primary text color white and secondary #787878 */
h2,
h3,
h4,
h5,
h6,
p {
    color: #7F7F7F;
}

.primary-background-color {
    background: #161616;
}

.primary-text-color {
    color: white;
}

.secondary-text-color {
    color: #7F7F7F;
}

div {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

.section-container {
    margin-top: 40px;
}

.section-title {
    margin-bottom: 8px;
    font-weight: 600;
}

.section-description {
    margin-bottom: 20px;
    font-weight: normal;
    font-size: small;
}

.skill-name {
    font-weight: 600;
    color: white;
    display: table-row;
    width: 220px;
    margin-right: 16px;
}

.skill-comment {
    font-weight: normal;
    display: inline-block;
    width: 100%;
}

.skill-item-container {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.skill-item {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 10px;
    color: white;
}

h1 {
    margin: 0;
    margin-top: 8px;
    padding: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.5%;
    line-height: 1.08;
}

h2 {
    font-size: 24px;
    font-weight: 500;
}

h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    margin-top: 8px;
    padding: 0;
    font-weight: normal;
}

hr {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0.15;
    color: #212121;
}

a {
    color: white;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.button-primary {
    border: 1px solid #444;
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: color 300ms ease, border-color 300ms ease;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 0;
}

.button-primary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: white;
    transition: height 280ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.button-primary:hover {
    color: #161616;
    border-color: white;
}

.button-primary:hover::before {
    height: 100%;
}

.clickable,
.writing-item-image {
    cursor: pointer;
    border: 2px solid #282828;
    padding: 4px;
}

.not-clickable {
    border: 2px solid #161616;
    padding: 4px;
}

.button-secondary {
    border: 1px solid #333;
    background-color: transparent;
    color: #7F7F7F;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: color 250ms ease, border-color 250ms ease, transform 250ms ease;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.button-secondary:hover {
    color: white;
    border-color: #555;
    transform: translateY(-1px);
}

.button-primary:hover,
.button-secondary:hover {
    background-color: transparent;
}

.container {
    margin: 0 auto;
    max-width: 600px;
    padding: 0 20px;
    touch-action: manipulation;
    margin-top: 10%;
    color: white;
}

/* Light mode styles */
@media (prefers-color-scheme: light) {
    body {
        background: #F5F5F5;
        color: black;
    }
    
    .primary-background-color {
        background: #F5F5F5;
    }

    h1 {
        color: black;
    }

    .primary-text-color {
        color: black;
    }

    .secondary-text-color {
        color: #4A4A4A;
    }

    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        color: #4A4A4A; /* Adjust for better readability in light mode */
    }

    .skill-name {
        color: black;
    }

    .skill-item {
        color: black;
    }

    a {
        color: #0066CC; /* Typical blue for links in light mode */
    }

    .button-primary {
        border: 1px solid #AAAAAA;
        background-color: transparent;
        color: black;
    }

    .button-primary::before {
        background-color: black;
    }

    .button-primary:hover {
        color: white;
        border-color: black;
    }

    .button-secondary {
        border: 1px solid #CCCCCC;
        background-color: transparent;
        color: #4A4A4A;
    }

    .button-secondary:hover {
        color: black;
        border-color: #888;
    }

    .button-primary:hover,
    .button-secondary:hover {
        background-color: transparent;
    }

    .clickable,
    .writing-item-image {
        border: 2px solid #CCCCCC;
    }

    .not-clickable {
        border: 2px solid #F5F5F5;
    }

    hr {
        color: #E0E0E0;
    }
}
