/*
*
* ===================
* ===== COMMON ======
* ===================
*
*/

* {
    scroll-behavior: smooth;
	margin: 0;
	padding: 0;
    /* border: 1px solid #ff000077; */
    z-index: 100;
}

body::-webkit-scrollbar {
    display: none;
}

body{
	font-family: 'Montserrat', sans-serif;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: radial-gradient(circle at 0px 0px, rgb(20, 20, 20) 10%, rgb(50, 50, 50));
    background-attachment: fixed;
    overflow-x: hidden;
    color: white;
}

.title{
    margin: auto;
    padding: 4px 16px;
    font-size: 30px;
    font-weight: 300;
    color: white;
    border: 1px white;
    border-style: solid none;
}

.button{
    margin: auto;
    margin-top: 32px;

    text-decoration: none;
    padding: 16px 32px;
    font-size: 16px;
    border: 1px solid white;
    color: white;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.25);
    background-color: rgba(0,0,0,0);
}

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

.scrollToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
}

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

html:has(body:has(:not(:first-child))) .scrollToTop {
    display: block;
}

.scrollToTop_icon{
    width: 32px;
    height: 32px;
    margin: 8px;
    transform: rotate(45deg);
}

/*
*
* ===================
* ===== NAVBAR ======
* ===================
*
*/

.navbar{
    font-size: 16px;
    margin: auto;
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
}

.navbar a{
    text-decoration: none;
    text-align: center;
    text-decoration: none;
    color: white;
    margin : auto 16px;
}

.navbar li{
    text-align: center;
}

/*
*
* ===================
* ==== HOME PAGE ====
* ===================
*
*/

.index_body{
    height: 100vh;
}

.name_job{
    margin : auto;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.9));
}

.name_job h1{
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 16px;
}

.name_job h2{
    margin-top: 8px;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 8px;
}

.big_logo{
    width: 26.042%; /* 450px on a 1920p width */
    height: 46.296%; /* 450px on a 1080p height */

    margin: auto;

    background-image: url("../images/rpahel_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-5deg);
    filter: drop-shadow(20px 30px 4px rgba(0,0,0,0.5));

    z-index: 99;
}

.projects_button{
    margin: auto;
    margin-bottom: 32px;

    text-decoration: none;
    padding: 16px 32px;
    font-size: 16px;
    border: 1px solid white;
    color: white;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.25);

    z-index: 101;
}

/*
*
* ===================
* ===== MY NAME =====
* ===================
*
*/

.my_name{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: auto;
    margin-top: 32px;
}

.my_name p{
    margin: auto 0;
    font-size: 25px;
    font-weight: 300;
    text-align: center;
    vertical-align: middle;
}

.my_name a{
    width: 32px;
    height: 32px;
    margin: 0 16px;
    background-image: url("../images/rpahel_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*
*
* ===================
* === ABOUT PAGE ====
* ===================
*
*/

.about_body{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.my_picture{
    justify-content: center;
    margin: auto;
    margin-top: 32px;
    height: 256px;
    width: 256px;
    border-radius: 5%;
}

.about{
    margin: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about_resume{
    width: 40%;
    height: auto;
    margin: auto;
    margin-top: 32px;
}

.about_resume img{
    width: 100%;
    height: auto;
}

.about_text{
    width: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about_text p{
    margin-top: 32px;
    text-align: justify;
}

/*
*
* ===================
* == CONTACT PAGE ===
* ===================
*
*/

.contact_body{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 160px;
    height: 160px;
    margin: 32px auto 32px auto;
}

.contacts div{
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: auto;
    justify-content: space-between;
}

.contacts a{
    text-decoration: none;
}

.contactLogo{
    height: 64px;
    width: 64px;
    margin: auto;
}

/*
*
* ===================
* == PROJECTS PAGE ===
* ===================
*
*/

.projects_body{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.divide{
    height: 32px;
}

.type_title{
    margin: auto;
    text-align: center;
    font-size: 42px;
}

.projects_container{
    width: 80vw;
    min-width: 450px;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.project_card{
    width: 450px;
    text-decoration: none;
    margin: 8px auto;
    color: black;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project_card:hover{
    background-color: rgb(0, 0, 0, 0.2);
    border-radius: 8px;
}

.project_image{
    width: 100%;
    height: fit-content;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(0, 0, 0, 0.2);
    border-radius: 8px;
}

.project_engine_icon
{
    width: 32px;
    height: 32px;
    position: absolute;
    right: 8px;
    top: 8px;
    filter:
        drop-shadow( 1px  0px 2px rgba(0,0,0,0.5)) 
        drop-shadow(-1px  0px 2px rgba(0,0,0,0.5))
        drop-shadow( 0px  1px 2px rgba(0,0,0,0.5)) 
        drop-shadow( 0px -1px 2px rgba(0,0,0,0.5));
}

.project_name{
    margin: 8px 8px 0px 8px;
    font-weight: 600;
    color: white;
    font-size: 20px;
}

.project_tasks{
    margin: 0px 8px 8px 8px;
    font-size: 14px;
    color: white;
    font-weight: 300;
}

.itch_link{
    margin: auto;
}

/*
*
* ===================
* == PROJECT PAGE ===
* ===================
*
*/

.project_body{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project_info{
    width: 80%;
    min-width: 450px;
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: rgba(30,30,30,0.75);
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.25);
}

#project_info_basic{
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 300px;

    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
}

#project_info_name{
    margin: auto;
    margin-bottom: 0;
}

#project_info_date{
    margin: auto;
    margin-top: 16px;
    margin-bottom: 0;
}

#project_info_duration{
    margin: auto;
    margin-top: 16px;
    margin-bottom: 0;
}

.project_info_engine_icon
{
    width: 32px;
    height: 32px;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 0;
    filter:
        drop-shadow( 1px  0px 2px rgba(0,0,0,0.5)) 
        drop-shadow(-1px  0px 2px rgba(0,0,0,0.5))
        drop-shadow( 0px  1px 2px rgba(0,0,0,0.5)) 
        drop-shadow( 0px -1px 2px rgba(0,0,0,0.5));
}

#project_info_about_text{
    margin: auto;
    width: 50%;
    min-width: 450px;
    text-align: justify;
}

#project_info_team{
    margin: auto;
}

.project_info_team_icon{
    width: 64px;
    height: 64px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project_info_team_nb{
    text-align: center;
    margin: auto;
    margin-top: 8px;
}

#project_info_team_text{
    margin: auto;
    width: 60%;
    min-width: 450px;
    text-align: left;
    line-height: 32px;
}

#project_info_tasks{
    margin: auto;
    width: 60%;
    min-width: 450px;
    display: flex;
    flex-direction: column;
}

.project_info_task{
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.project_info_task_gif{
    width: 267px;
    height: 150px;
    margin: 0;
}

.project_info_task_text{
    margin: 0;
    margin-left: 32px;
    text-align: justify;
}

@media only screen and (max-width: 1281px) {
    .project_info_task {
        flex-direction: column;
    }

    .project_info_task_gif{
        margin: auto;
    }

    .project_info_task_text{
        margin: auto;
        margin-top: 32px;
    }
}