@import url('https://fonts.googleapis.com/css2?family=Sometype+Mono&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Sometype Mono', monospace;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-image: url("../assets/background_opti.png");
    background-size: contain;
    --main-bg-color: #1d1b1b;
    --text-color: #f6f6f6;
    --separator-color: rgba(246, 246, 246, 0.5);
    --main-opacity: 0.95;
    --main-border-radius: 10px;
    color: var(--text-color);
}

#bloc-container {
    display: flex;
    flex-direction: column;
    width: 80%;
    padding-top: 20px;
    align-self: center;
    opacity: var(--main-opacity);
    text-align: center;
}

.bloc {
    background-color: var(--main-bg-color);
    margin-top: 1em;
    border-radius: var(--main-border-radius);
    border-color: transparent;
    margin-bottom: 30px;
    padding: 10px;
}

#self-presentation {
    margin-top: 1em;
    padding: 10px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presentation-principes {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    padding: 25px;
    margin: 10px;
}

.presentation-principes-images {
    width: 50%;
    margin-bottom: 20px;
}

#view-works-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#view-works {
    font-size: 50px;
    text-decoration: none;
    color: var(--text-color);
}

#img-moi-container {
    max-width: 30vh;
    position: relative;
}

.img-moi {
    width: 100%;
    height: 100%;
}

#img-moi-descr {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-color: gray;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#img-moi-container:hover #img-moi-descr {
    display: flex;
}


#projects {
    padding: 10px;
}

.full-space-evenly {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1em;
}

.solideo-image {
    width: 15%;
}



#contact {
    padding: 10px;
}

#contact-social-network {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

/* Popup container */
.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 15px 5px;
    position: absolute;
    z-index: 50;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
}

/* Popup arrow */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
}

.separator {
    width: 20%;
    background: var(--separator-color);
    height: 2px;
    justify-self: center;
    margin: auto
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}

@media (max-width:768px) {
    .presentation-principes, .solideo-image {
        width: 90%;
    }
}
