/* import font*/
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400");

/* general settings*/
* {
    /* ensure that margin sizes cover the full object*/
    box-sizing: border-box;
    font-family: Raleway;
    color: #3c3a3a;
}

/* get rid of the margins of the page*/
html,
body {
    margin: 0;
    padding: 0;
}

/*### Navigation settings ########################################*/
.nav ul {
    list-style: none;
}

.nav li {
    /* make the navigation in one line*/
    display: inline;
}

.nav a {
    color: black;
    /* change the margins*/
    display: inline-block;
    /* make the navigation spacing*/
    padding: .5em;
    /* remove the hyperlink decoration*/
    text-decoration: none;
}

/* highlight the links when moving over them*/
.nav a:hover {
    background-color: rgba(255, 255, 255, .3);
}

/* layout of the main header*/
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(230, 230, 226);
    background-size: cover;
    padding: 0 30px;
}

.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(230, 230, 226);
    padding: 0 1%;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
}

/*################################################################*/

/*### Content settings ###########################################*/
/*Container for the main context */
.container1 {
    display: flex;
    width: 100%;
    margin: 70px 0 1.5em 0;
}

/*Containers for filling the space on the left and right */
.box1-left,
.box1-right {
    background-color: white;
    flex: 1;
    padding: 10px;
    text-align: justify;
}

.box1-middle {
    background-color: #FFFFFF;
    max-width: 900px;
    margin: 40px;
}

/*Page title */
.header {
    font-size: 1.8rem;
    margin: 15px 0 40px 0px;
}

/*vertical arranged boxes */
.box2,
.box3 {
    display: flex;
    margin: 0 0 40px 0px;
    align-items: flex-start;
    text-align: justify;
}

.box4 {
    display: block;
    margin: 0 0 40px 0px;
    align-items: flex-start;
    text-align: justify;
}

/*Left box of the profile */
.profile-left {
    width: 250px;
    margin: 0 40px 0 0px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-info h1 {
    font-size: 1.8rem;
    margin: 20px 0;
}

.profile-info h2 {
    font-size: 1.2rem;
    margin: 5px 0;
    color: #cccccc;
}

.profile-info h3 {
    font-size: 1rem;
    color: #aaaaaa;
    margin: 0;
}

/*Left box of the profile */
.profile-right {
    flex: 1;
    margin: 50px 15px 15px 0px;
    text-align: justify;
}

.img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1;
    overflow: hidden;
    object-fit: cover;
}

.button {
    flex: 1;
    width: calc(100% / 3);
    aspect-ratio: 1;
    margin: 15px;
    align-items: center;
    justify-content: center;

    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    display: flex;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cv-info {
    max-width: 450px;
    margin: 0 40px 0 0px;
    display: flex;
    flex-direction: column;
}

.cv-info h1 {
    font-size: 1.8rem;
    margin: 10px 0 5px 0;
}

.cv-info h2 {
    font-size: 1.2rem;
    margin: 10px 0 0 0;
}

.cv-info h3 {
    font-size: 1rem;
    color: #aaaaaa;
    margin: 0 0 0 0;
}

.symbol img {
    width: 20px;
    height: 20px;
}

iframe {
    width: 100%;
    height: 1000px;
}


/* Hide left and right boxes on screens less than 1000px */
@media only screen and (max-width: 1200px) {

    .box1-left,
    .box-right {
        display: none;
        /* Hide the left and right boxes */
    }

    .box1-middle {
        max-width: 1200;
    }
}

@media only screen and (max-width:850px) {

    /*Change Header*/
    .main-header {
        display: block;
        padding: 1%;
    }

    .main-header div {
        width: 100%;
        text-align: center;

    }

    .nav ul {
        padding: 0;
    }


    /* Change container*/
    .container1 {
        margin: 100px 0 1.5em 0;
    }

    /* Make box2 stack the items vertically on mobile */
    .box2 {
        display: block;
        /* Stacks the items vertically */
    }

    .box3 {
        display: none;
        /* Hide the left and right boxes */
    }

    .profile-left {
        width: 100%;
        /* Make the left box full width on mobile */
        margin-right: 0;
        margin-bottom: 20px;
        /* Add some space below the left box */
    }

    .profile-right {
        width: 100%;
        /* Make the right box full width on mobile */
        margin: 0;
        /* Remove margin */
    }

    iframe {
        width: 100%;
        height: 60%;
    }
}