@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Babylonica&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arvo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Life+Savers&family=Texturina:opsz@12..72&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Rubik, sans-serif;
    scroll-behavior: smooth;
}

/* :root {
    --title-color: #ccd6f6;
    --halycon: #00eeb6;
    --hoverhalycon: #00eeb6;
    --blueBC: #8892b0;
    --background_color: #03122b;
    --navbarcolor: #fff
    --title-color:#000;
}

/* :root{
    --halycon: #000;
    --hoverhalycon: #d95e5e;
    --blueBC: #000;
    --background_color: #fff;
    --navbarcolor: #000;
} */

/* Default root variables */
:root {
    --title-color: #ccd6f6;
    --halycon: #00eeb6;
    --hoverhalycon: #00eeb6;
    --blueBC: #8892b0;
    --background_color: #03122b;
    --navbarcolor: #fff;
}

/* Override for personal page */
body.personal-page {
    --title-color: #ccd6f6;
    /*--halycon: #64ffda;*/
    /*--halycon: #00eeb6;*/
    --halycon: #f09d51;
    --hoverhalycon: #FFAD00;
    --blueBC: #8892b0;
    --background_color: #03122b;
}

/* Override for index page */
body.index-page {
    --title-color: #ccd6f6;
    --halycon: #00eeb6;
    --hoverhalycon: #00eeb6;
    --blueBC: #8892b0;
    --background_color: #03122b;
    --navbarcolor: #fff;
}

#theme_element {
    border: var(--halycon) 1px solid;
    border-radius: 0.1rem;
    border-color: transparent;
}

.colored {
    color: var(--halycon);
}

.profileDetails a:hover {
    color: var(--halycon);
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--background_color);
    height: 100%;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    color: white;
    font-family: Rubik, sans-serif;
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #fff;
}

.skillTitle span {
    margin-right: 2rem;
}

.navcontent span {
    font-size: 1rem;
    margin-right: 0.5rem;
}

a .navicon {
    width: 2rem;
    height: 2rem;
    max-width: 10vw;
    max-height: 10vw;
}

a .mainicon {
    width: 2rem;
    height: 2rem;
    max-width: 10vw;
    max-height: 10vw;
}

.nowrap {
    white-space: nowrap;
}

/* Navigation bar */
.topBack {
    background: var(--background_color);
    width: 100vw;
    height: 4rem;
    z-index: 1;
    position: fixed;
    top: 0;
    /*border: #f09d51 1px solid;*/
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: 5vw;
    top: 1rem;
    z-index: 3;
    background: var(--background_color);
}

.logo p {
    text-align: center;
    font-size: 0.8rem;
    color: var(--halycon);
    font-family: 'Texturina', monospace;
}

.logo a:hover {
    scale: 0.95;
    rotate: -3deg;
}

.navlogo {
    /*translate: -2rem 0;*/
    display: block;
    position: fixed;
    top: 0.5rem;
    gap: 0.5rem;
}

.navnum {
    display: none;
    color: var(--halycon);
    font-family: 'Texturina', monospace;
}

.navtitle {
    color: var(--navbarcolor);
    font-family: 'PT Mono', monospace;
    margin-left: 0.5rem;
    display: none;
}

.navcontent {
    display: flex;
    justify-content: flex-end;
    flex-flow: row nowrap;
    max-width: 80vw;
    width: 40rem;
    height: 3rem;
    position: fixed;
    right: 1rem;
    top: 0;
    z-index: 2;
    background: var(--background_color);
    padding: 0.8rem;
    justify-content: space-between;
    align-items: center;
    /* border: #f09d51 1px solid; */
}

.navcontent a {
    color: var(--navbarcolor);
    display: flex;
    flex-direction: row;
    padding-right: 1rem;
    font-size: 0.6rem;
}

.navcontent a:hover {
    color: var(--hoverhalycon);
}

.navicon {
    width: "20px";
    height: "20px";
}

/* hero styles */

.hero {
    /*grid-area: 2 / 1 / 3 / 2;*/
    flex-grow: 1;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 10vw) 3fr repeat(2, 10vw);
    grid-template-rows: repeat(5, 1fr);
    /*border: saddlebrown 2px solid;*/
}

.middleblock {
    grid-area: 1 / 2 / 6 / 5;
    /*border: white 2px solid;*/
    width: 80vw;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.middlepage {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
    /* if inside grid, span all columns */
    grid-row: 1 / -1;
    /* span all rows */
}

.message {
    font-size: 2rem;
    color: var(--halycon);
    font-weight: 300;
}


.ls2n {
    color: var(--blueBC);
}

.ls2n:hover {
    color: var(--hoverhalycon);
    translate: 0 -0.5rem;
    animation-delay: 0.2s;
}

.sideblock {
    display: grid;
    grid-area: 1 / 1 / 6 / 2;
    grid-template-columns: 35% 30% 35%;
    grid-template-rows: 50% 50%;
    /*border: white 2px solid;*/
    margin: 0.1rem;
}

.imageblock {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3rem;
    align-items: center;
    border: var(--halycon) 1px solid;
    border-color: transparent;
    position: fixed;
    /*top: 60vh;*/
    bottom: 5vh;
    left: 4.5vw;
    padding: 0.5rem;
    border-radius: 0.3rem;
    z-index: 1;
}

.imageblock img {
    width: 1.6vw;
    min-width: 1.6rem;
    height: auto;
}

.imageblock a:hover {
    translate: 0 -0.2rem;
}

.sideblock2 {
    grid-area: 1 / 5 / 6 / 6;
    /*border: white 2px solid;*/
    margin: 0.1rem;
}

.hero h1 {
    font-size: clamp(4.5rem, 2vw, 100vw);
    font-weight: 700;
    color: var(--title-color);
    word-spacing: 0.5rem;
    max-width: 80vw;
}

.hero h1:hover {
    color: var(--hoverhalycon);
    animation-delay: 0.2s;
    translate: 0 -0.1rem;
}

.hero h2 {
    text-align: left;
    color: var(--halycon);
    justify-content: flex-start;
}

.flexbox button {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5em;
    background-color: var(--background_color);
    border-color: var(--halycon);
    color: var(--halycon);
    margin-top: 2rem;
    width: 10rem;
    max-width: 30vw;
    font: 1rem var(--halycon) Rubik, sans-serif;
}

.middleblock .update {
    margin-top: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Rubik', serif;
    font-size: 1rem;
    text-align: center;
}

.middleblock .update2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'Rubik', serif;
    font-size: 1rem;
    text-align: center;
}

.middleblock h2 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--blueBC);
}

.middleblock h3 {
    margin-bottom: 0.5rem;
    font-weight: lighter;
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--title-color);
}

.newblock a {
    color: var(--blueBC);
}

.newblock a:hover {
    color: var(--hoverhalycon);
}

.hello {
    color: var(--halycon);
    font-size: 1.6rem;
    font-weight: bolder;
    margin-top: 10%;
}

.flexbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.displayLoad {
    min-width: 30%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nameblock {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /*position: sticky;
    top: 2.5rem;*/
    background: var(--background_color);
    z-index: 2;
}

.nameblock h1 {
    font-size: clamp(1.5rem, 5rem, 8vw);
}

.subnameblock h1 {
    font-size: clamp(1.5rem, 5rem, 8vw);
}

.subnameblock {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

#small_name {
    position: fixed;
    top: 0.5rem;
    left: 8rem;
    z-index: 2;
    font-size: clamp(1.5rem, 3rem, 8vw);
    color: var(--blueBC);
    display: none;
}


.flexbox button:hover {
    scale: 1.05;
    animation-delay: 0.2s;
}

/* Recent news */
.newblock {
    flex-grow: 1;
    width: 50%;
    max-width: 1400px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 10vw) 3fr repeat(2, 10vw);
    grid-template-rows: repeat(5, 1fr);
    margin-bottom: 2vw;
    margin-left: auto;
    margin-right: auto;
    /*border: saddlebrown 2px solid;*/
}

.newblock a {
    color: var(--blueBC);
}

.newblock a:hover {
    color: var(--hoverhalycon);
}

.dropdown {
    animation: growDown 500ms ease-in-out forwards;
    transform-origin: top center
}

.dropdown a {
    color: var(--blueBC);
}

.dropdown a:hover {
    color: var(--hoverhalycon);
}

.dropup {
    animation: growUp 100ms ease-in-out forwards;
    transform-origin: bottom center;
}

@keyframes growDown {
    0% {
        transform: scaleY(0)
    }

    80% {
        transform: scaleY(1.1)
    }

    100% {
        transform: scaleY(1)
    }
}

@keyframes growUp {
    0% {
        transform: scaleY(1)
    }

    80% {
        transform: scaleY(1.1)
    }

    100% {
        transform: scaleY(0)
    }
}

.recent {
    grid-area: 1 / 2 / 6 / 5;
    /*border: white 2px solid;*/
    width: 80vw;
    max-width: 1400px;
    justify-items: flex-start;
}

.recent:hover {
    cursor: pointer;
}

.recent h3 {
    margin-bottom: 0.5rem;
    font-weight: lighter;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--title-color);
}


.spacediv {
    display: block;
    width: 50%;
    margin-bottom: 0.5rem;
    border-bottom: var(--halycon) 1px solid;
    translate: 0 -0.2rem;
}

.recent ol {
    display: block;
}

.recent ol li {
    color: var(--blueBC);
    font-size: 0.9rem;
    list-style-position: inside;
    margin-bottom: 1rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background_color);
    padding: 1rem;
    width: 100%;
    text-align: center;
}

footer.personal-page {
    --title-color: #ccd6f6;
    /*--halycon: #64ffda;*/
    /*--halycon: #00eeb6;*/
    --halycon: #f09d51;
    --hoverhalycon: #FFAD00;
    --blueBC: #8892b0;
    --background_color: #03122b;
}

.emailBlock {
    height: 0.8rem;
    width: auto;
}

.emailBlock a,
p {
    font-size: 0.65rem;
}

#emailid {
    border: var(--halycon) 1px solid;
    border-radius: 0.1rem;
    border-color: transparent;
}

.emailBlock img {
    height: 100%;
}

/* Profile block*/
.profile {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 6rem;
    /* margin-left: 5vw; */
}

.ls2n a {
    color: var(--blueBC);
}

.ls2n:hover {
    color: var(--hoverhalycon);
}

.profileDetails h2 {
    color: var(--blueBC);
    font-size: 2rem;
    word-spacing: 1rem;
}

.profileDetails a {
    color: var(--blueBC);
}

.profile img {
    width: 300px;
    /*max-width: 30%;*/
    height: auto;
    border-radius: 50%;
    border: var(--halycon) 2px solid;
    border-spacing: 1rem;
    padding: 0.5rem;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

.profile img:hover {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

.profileDetails {
    max-width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    margin-top: 2rem;
}

.profileDetails p {
    margin-top: 2rem;
    color: var(--blueBC);
    font-size: clamp(1.1rem, 1.1rem, 2rem);
    line-height: 1.5rem;
    /*font-family: 'PT Mono', monospace;*/
}

.profileDetails h2 {
    color: var(--title-color);
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: normal;
    word-spacing: 1rem;
}

.hovHigh:hover {
    color: var(--hoverhalycon);
}

.buzzword {
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 2rem;
    text-align: justify;
    border: var(--halycon);
    color: black;
    background: var(--blueBC);
    border-radius: 1rem;
    width: min(500px, 80vw);
    padding: 3rem 1rem 3rem 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0 auto;
    z-index: 10;
}

.buzzword p {
    font-size: 0.9rem;
    line-height: 1.2rem;
}

.blink {
    animation: border-blink 1s steps(1) 2;
}

@keyframes border-blink {
    0% {
        border-color: var(--halycon);
    }

    50% {
        border-color: transparent;
    }
}

#skills {
    display: none;
    justify-content: center;
    gap: 3rem;
    text-align: left;
}

.desktop_spacer {
    display: block;
    height: 10vh;
}

.spacer_small {
    display: block;
    height: 3vh;
    max-height: 5rem;
    min-height: 1rem;
}

#profile-pic {
    content: url("/projects/main/webpage_resources/images/profile_pic.jpeg");
    transition: 0.3s ease-in-out;
}

#profile-pic:hover {
    content: url("/projects/main/webpage_resources/images/profile_pic_nino.png");
}

#profile-pic-perso {
    content: url("/projects/main/webpage_resources/images/profile_pic_nino.png");
    transition: 0.3s ease-in-out;
}

#profile-pic-perso:hover {
    content: url("/projects/main/webpage_resources/images/profile_pic.jpeg");
}



#footer p {
    font-size: 0.6rem;
    align-self: center;
    text-align: center;
}

@media only screen and (min-width: 1500px) {
    #footer p {
        font-size: 1rem;
        align-self: center;
        text-align: center;
    }

    .skillTitle span {
        margin-right: 3rem;
    }

    .navcontent span {
        font-size: 1.5rem;
        margin-right: 3rem;
    }

    a .navicon {
        width: 2rem;
        height: 2rem;
    }

    .navcontent {
        height: 3rem;
    }

    a .mainicon {
        width: 3rem;
        height: 3rem;
    }
}

@media only screen and (max-width: 576px) {

    .logo {
        left: 2vw;
        top: 0.5rem;
    }

    a .mainicon {
        width: 1.5rem;
        height: 1.5rem;
    }


    .navnum {
        display: none;
    }

    .imageblock {
        position: fixed;
        bottom: 5vh;
        left: 1vw;
    }

    .navtitle {
        display: none;
    }

    .navlogo {
        display: block;
        position: fixed;
        top: 0.5rem;
    }

    .navcontent {
        display: flex;
        flex-flow: row nowrap;
        width: 80vw;
        position: fixed;
        height: 2rem;
        gap: 2rem;
        right: 2vw;
        justify-content: space-between;
        z-index: 3;
    }

    .navcontent a {
        font-size: 0.75rem;
    }

    .subnameblock h1 {
        font-size: 2rem;
    }

    .nameblock {
        flex-direction: row;
    }

    .middleblock {
        margin-top: 2rem;
    }

    .middleblock h2 {
        font-size: 1.1rem;
        color: var(--blueBC);
    }

    .hello {
        color: var(--halycon);
        font-size: 1.1rem;
        font-weight: bolder;
        margin-top: 10%;
    }

    .barSecond {
        translate: -5dvw -0.57rem;
    }

    .profile {
        flex-direction: column;
        margin-top: 2rem;
    }

    .profile img {
        width: 70%;
        max-width: 70%;
        border-radius: 50%;
    }

    .profileDetails {
        max-width: 70vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: justify;
        margin-top: 3rem;
    }

    .profileDetails p {
        font-size: 0.85rem;
    }

    .profileDetails h2 {
        color: var(--title-color);
        font-size: 1.5rem;
        word-spacing: 1rem;
    }

    .flexbox button {
        padding: 0.5rem;
        border-radius: 0.5em;
        width: 10rem;
        max-width: 30vw;
    }

    .spacer {
        height: 5vh;
    }

    #experienceContent {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }

    #skills {
        margin-left: 10vw;
    }

    .spacediv {
        width: 100%;
    }

    .desktop_spacer {
        display: none;
    }
}

@media only screen and (max-width: 820px) {

    .nameblock {
        flex-direction: row;
    }

    .navtitle {
        display: none;
    }

    .middleblock {
        margin-top: 2rem;
    }

    .hello {
        color: var(--halycon);
        font-size: 1.1rem;
        font-weight: bolder;
        margin-top: 10%;
    }

    .barSecond {
        translate: -5dvw -0.57rem;
    }

    .profile {
        flex-direction: column;
        margin-top: 2rem;
        justify-items: center;
        justify-content: center;
    }

    .profile img {
        width: 70%;
        max-width: 600px;
        border-radius: 50%;
    }

    .profileDetails {
        max-width: 70vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: justify;
        margin-top: 3rem;
    }

    .profileDetails p {
        font-size: 0.85rem;
    }

    .profileDetails h2 {
        color: var(--title-color);
        font-size: 1.5rem;
        word-spacing: 1rem;
    }

    .flexbox button {
        padding: 0.5rem;
        border-radius: 0.5em;
        width: 10rem;
        max-width: 30vw;
    }

    .recent {
        margin-left: 5vw;
    }

    .recent h2 {
        font-size: 1rem;
    }

    .recent ol {
        font-size: 0.85rem;
    }
}