/* Styles for the CV content */
#cv-page {
    margin: 0 auto;
    max-width: 800px;
    font-family: 'DejaVu Serif', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: rgba(36, 37, 55);
    padding: 20px 10px;
    text-align: left;
}

#cv-page hr {
    height: 1.5px; /* Thicker line */
    background-color: #bbb; /* Dark color */
    border: none;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* CV-specific header */
.cv-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;  /* Remove blue background */
    padding: 0;  /* Remove padding */
}

.cv-header h1 {
    font-size: 2.5em;
    color: #fff;
    margin-top: 0.3em;
}

.cv-header .contact {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 0em;
    margin-bottom: 18em;
}

.cv-header .contact span,
.cv-header .contact a {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: #fff;
    text-decoration: none;
}

.cv-header .contact a:hover {
    text-decoration: underline;
}

/* Control the size of the icons */
.icon {
    width: 20px;   /* Set width */
    height: 20px;  /* Set height */
    vertical-align: middle; /* Align vertically with text */
    fill: #fff;  /* Optional: set the color of the SVG */
}

/* Content styling for CV sections */
#cv-page section {
    margin-bottom: 2em;
}

#cv-page ul {
    margin: 0.5em 0 0.5em 1.5em;
    padding: 0;
}

#cv-page li {
    margin-bottom: 0.5em;
}

#cv-page a {
    color: #fff;
}

#cv-page a:hover {
    text-decoration: underline;
}

/* Responsive styling */
@media (max-width: 1024px) {
    #cv-page {
        padding: 10px 5px;
    }

    #cv-page hr {
        height: 1.3px; /* Thicker line */
        background-color: #bbb; /* Dark color */
        border: none;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    #cv-page h1 {
        font-size: 1.8em;
        margin-top: 2em; /* Lägg till avstånd mellan varje kontaktuppgift */
        margin-bottom: 2em; /* Lägg till avstånd mellan varje kontaktuppgift */
    }

    .cv-header .contact {
        gap: 0.5em; /* Minska gap på små skärmar */
        flex-direction: row; /* Lägg alla kontaktuppgifter vertikalt */
        align-items: center; /* Centrerar alla kontaktuppgifter */
        margin-top: 1em; /* Lägg till avstånd mellan varje kontaktuppgift */
        margin-bottom: 2em; /* Lägg till avstånd mellan varje kontaktuppgift */
    }

    .cv-header .contact a, .cv-header .contact span {
        margin-bottom: 0em; /* Lägg till avstånd mellan varje kontaktuppgift */
    }

    /* Minska storleken på ikoner för mobil */
    .icon {
        width: 18px;
        height: 18px;
    }
}
