@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --black: #001020;
    --white: #efffdf;
    --blue: #000080;
    --yellow: #ffff7f;
    --font-size-h1: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
    --font-size-h2: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
    --font-size-h3: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
    --font-size-p: clamp(1rem, 0.3vw + 0.87rem, 1.4rem);
}

i {
    font-size: min(50px, 8vw);
}

a {
    color: var(--yellow);
    text-decoration: none;
}

a:hover {
    color: var(--white);
}

h1 {
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.25));
    font-size: var(--font-size-h1);
}

h2 {
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.25));
    font-size: var(--font-size-h2);
}

h3 {
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.25));
    font-size: var(--font-size-h3);
}

html {
    font-size: var(--font-size-p);
    overscroll-behavior: none;
    -webkit-user-drag: none;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 450;
    text-align: justify;
    color: var(--white);
    margin: 0;
    background-color: var(--black);
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/assets/images/grainy_gradient.jpg') no-repeat center/cover;
    z-index: -1;
    pointer-events: none;
}

main {
    padding: 25px;
    font-size: var(--font-size-p);
    margin: 0px max(0px, calc(50vw - 500px));
    padding-bottom: 100px;
}

.resume {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
}

.image_cv {
    width: min(800px, 100%);
    border-radius: 10px;
}

.download_cv {
    margin-top: clamp(25px, 10%, 50px);
    color: var(--white);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
}

.download_cv:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contacts_list li {
    padding-left: min(0, 15px);
    list-style-type: none;
    display: flex;
    align-items: center;
}

.contacts_list img {
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
    width: min(10vw, 50px);
    height: auto;
    margin: 10px 2vw;
}

.welcome_images {
    display: flex;
    width: 90%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.welcome_images img {
    border-radius: 10px;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
    max-width: 33.3%;
    margin: 0 0 20px 0;
}

@media only screen and (min-width: 700px) {
    .presentation {
        flex-direction: row;
        align-items: start;
    }

    .presentation ul {
        margin-top: 25px;
        margin-right: 0;
    }

    .name_snippet {
        margin: 25px 0 0 40px;
        width: 380px;
    }

    .langs_snippet {
        margin: 25px min(40px, 2vw) 0 0;
        width: 400px;
    }
}

.project img {
    align-items: center;
    width: min(100%, 300px);
    margin: 25px 0;
    border: 2.5px solid var(--white);
    border-radius: 10px;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
}

.project b {
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.37));
}

.project_description_left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project_description_right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (min-width: 700px) {
    .project {
        clear: both;
        margin: 50px 0;
    }

    .project::after {
        content: '';
        display: table;
        clear: both;
    }

    .project h2 {
        margin-bottom: 15px;
    }

    .project_description_left {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin: 40px 20px;
    }

    .project_description_right {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        margin: 40px 20px;
    }    

    .project_description_left img {
        margin: 0 40px 20px 0;
        width: 40%;
    }

    .project_description_right img {
        margin: 0 0 20px 40px;
        width: 40%;
    }

    .project_description_left p,
    .project_description_right p {
        margin-top: 0; 
    }
}

.divider {
    height: 1px;
    background-color: var(--white);
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.74);
    width: 80%;
    margin: 20px 10%;
}

