:root {
    --highlight-color: paleturquoise;
}

/* #region Helvetica */
@font-face {
    font-family: 'Helvetica';
    src: url('assets/fonts/Helvetica.ttf');
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('assets/fonts/Helvetica-Bold.ttf');
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: 'Helvetica';
    src: url('assets/fonts/Helvetica-Oblique.ttf');
    font-style: italic;
}
/* #endregion Helvetica */

html {
    margin: 0;
    padding: 0;
}

body {
    display: grid;
    grid-template-areas: 'download' 'a4-page' 'footer';
    grid-template-columns: 100%;
    background-image: linear-gradient(135deg, rgb(255, 187, 232), rgb(253, 189, 70));
    padding: 0;
    margin: 0;
}

.button-container {
    grid-area: download;
    text-align: center;

    button {
        position: relative;
        margin: 30px;
        font-size: 1.2em;
        background-color: paleturquoise;
        width: 160px;
        height: 100px;
        border-radius: 5px;
        border-style: solid;
        border-width: 2px;
        box-shadow: -8px 8px 0 #0000009a;

        i {
            font-size: 2.5em;
        }
    }

    button:hover {
        box-shadow: -3px 3px 0 #0000009a;
        top: 5px;
        left: -5px;
        cursor: pointer;
        background-color: rgb(198, 253, 253);
    }
}

.page-container {
    grid-area: a4-page;
}

.page-shadow {
    box-shadow: -10px 10px 2px #0000009a;
    width: fit-content;
    height: fit-content;
    margin: auto;
}

.a4-page {
    display: grid;
    grid-template-areas: 'header header'
                         'side   main';
    grid-template-columns: 60mm auto;
    grid-template-rows: 26mm auto;
    width: 200mm;
    height: 286mm;
    padding: 5mm;
    overflow: hidden;
    background-color: #ffffff;

    font-family: 'Helvetica';
    font-size: 14px;

    a {
        color: #000000;
        text-decoration: none;
    }

    h2 {
        margin: 0;
    }

    .header {
        grid-area: header;
        text-align: center;
        width: 100%;
        height: 100%;
        background-color: var(--highlight-color);

        header {
            width: 100%;
            height: 100%;
            align-content: center;

            h1 {
                font-size: 3em;
                margin: 0;
            }

            p {
                font-size: 1.4em;
                margin: 0;
            }
        }
    }
    
    .side {
        grid-area: side;
        padding: 4mm;
        background-color: var(--highlight-color);

        #contact {
            span {
                display: flex;
                margin: 1em 0;
                overflow-wrap: break-word;

                img {
                    align-self: center;
                }

                p {
                    margin: 0 1em;
                    align-self: center;
                }
            }
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;

            ul {
                padding: 0 0 0 1em;
            }

            h4 {
                margin: .6em 0;
            }

            li {
                margin: .6em 0;
            }
        }
    }

    .main {
        grid-area: main;
        padding: 4mm;

        ul {
            list-style: none;
            padding-left: 1em;

            li {
                margin: .6em 0;
            }
        }

        .experience {
            margin: 1.1em 0;

            h3 {
                margin-top: 0;
                margin-bottom: 0;
                font-size: 1.2em;
            }

            p {
                margin: 0;
                font-size: 1.1em;
            }

            span {
                font-style: italic;
            }
        }

        #education {
            ul {
                margin-bottom: 0;

                li:last-child{
                    margin-bottom: 0;
                }
            }
        }

        .education {
            margin: 0 0 1.2em 0;

            span {
                h4, p {
                    display: inline;
                }
            }

            p {
                margin: .6em 0;
            }
        }
    }
}

@media (max-width: 210mm){
    .a4-page:not(.downloading){
        max-width: 198mm;
        max-height: fit-content;
        width: fit-content;
        height: fit-content;
        grid-template-columns: auto auto;

        .side {
            min-width: 30mm;
            max-width: 52mm;
        } 
    }
}

footer {
    grid-area: footer;
    margin: 20mm 0 0 0;
    padding: 2mm;
    background-color: #000000;
    color: #ffffff;

    a {
        color: #ffffff;
    }
}