* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    user-select: none;
    background-color: #191919;
}

a {
    font-family: 'Pushster', cursive;
    color: white;
}

.navbar {
    margin-top: 1rem;
    border-radius: 10rem;
    background-color: #2d4263;
    color: white;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
}

.navbar_elements {
    transition: all 0.3s;
    display: grid;
    display: flex;
    padding-right: 3rem;
    align-items: center;
}

.navbar_elements:hover {
    transform: scale(1.05);
}

.nav_txt {
    text-decoration: none;
    font-size: 1.3rem;
    color: white;
    font-family: 'Caveat', cursive;

}

.img {
    width: 3rem;
    margin: 0.5rem 0 0.5rem 1rem;
}

.img_git {
    width: 2.5rem;
    border-radius: 0.7rem;
}

.img_git_div {
    margin-left: auto;
}

.photo_collection {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.7rem;
    background-color: #202020;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;

    padding: 3rem;

    justify-content: space-around;
    /*align-items: center;*/

    /*height: 10rem;*/
}

.photo_div {
    padding: 1rem;
    width: 16rem;
    background-color: #C84B31;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
    margin: 0.8rem;
    cursor: pointer;
}

.photo_div:hover {
    transform: translateY(-4px);
}


.image_container {

    padding-bottom: 1rem;
    border-bottom: 0.1rem solid white;
}

.photo {
    /*only photo*/
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    max-height: 10.029rem;
    object-position: center center;
}

.photo_txt {
    padding-top: 1rem;
    text-decoration: none;
    font-size: 1.3rem;
    color: white;
    font-family: 'Caveat', cursive;
    text-align: center;
}

.photo_collection_show {
    display: none;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    border-radius: 0.7rem;
    background-color: #202020;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;

    min-height: 70vh;

    padding: 1rem;

    justify-content: center;
    align-items: center;

    /*height: 10rem;*/
}

.image {

    padding-bottom: 1rem;
    width: 20rem;
    margin: 0.8rem;
    background: none;
    border: none;
    padding: none;
}

.photo_folder {
    /*only photo*/
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}


.image img {
    transition: height 0.2s;
}

.image:focus img {      /* Clicco sulla foto*/
    position: fixed;
    height: 90vh;
    left: 50%;
    top: 5vh;
    width: unset;
    transform: translateX(-50%);

    box-shadow: 0 0 0px 2000px #2b2b2bc5;
}


@media screen and (max-width: 400px) {

    .photo_collection_show,
    .photo_collection {
        max-width: 95%;
        padding: 1rem;
    }

    .photo_div {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {

    .photo_collection_show,
    .photo_collection {
        max-width: 95%;
        padding: 3rem;
    }

    .photo_div {
        width: 100%;
    }

}

@media screen and (orientation:portrait) {
    .image:focus img {
        position: fixed;
        height: unset;
        left: 50%;
        top: 5vh;
        width: 80vw;
        transform: translateX(-50%);
    }
}