* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: linear-gradient(45deg, rgb(50, 119, 119), rgb(78, 76, 226));
    color: #c7c7c7;
    display: flex;
    flex-direction: column;
    font-family: Helvetica, sans-serif;
    justify-content: center;
    min-height: 100vh;
    min-width: 100vw;
    overflow-x: hidden;
    padding: 40px 60px 40px 40px;
}
h1 {
    display: flex;
    font-size: 60px;
    margin-right: 20%;
    margin-bottom: 20px;
    justify-content:center;
}
.home_1 {
    display: flex;
    width: 100%;
    margin-left: 1%;
    align-items: baseline;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    text-shadow: 2px 2px #000;
}
.home_1 .logo_1{flex: 1;}
.home_1 .logo_2{flex: 5;}
.home_1 img{
    margin-right: 10px;
    width: 50px;
    transition: transform 0.3s;
}
.home_1 img:hover {transform: scale(2.0);}
.home_1 img {transition: all 1.1s ease}
.footer{margin-top: 20px;text-shadow: 2px 2px #000;}
.gallery {
    background: linear-gradient(60deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3));
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 64px;
}
.thumbnail {
    border: solid 3px rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 48px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    margin: 32px;
    max-height: 100px;
    max-width: 200px;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s;
}
.thumbnail:hover {
    transform: scale(1.2);
}
.thumbnail img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.thumbnail img:focus,
.thumbnail img:focus {
    border: solid 5px rgb(78, 76, 226);
}

.popup {
    align-content: center;
    animation: fadeIn 0.3s;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
}

.popup.hidden {
    display: none;
}

.popup.fade-out {
    animation: fadeOut 0.3s both;
}

.popup__img {
    max-height: 80%;
    max-width: 80%;
}

.popup__close {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 50px;
    position: fixed;
    right: 64px;
    top: 64px;
}

.popup__arrow {
/*    background-color: transparent;*/
    border: none;
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    font-size: 50px;
    height: 50px;
    line-height: 50px;
    position: absolute;
    top: 50%;
    width: 50px;
}

.popup__close,
.popup__arrow {
    opacity: 0.2;
    transition: opacity 0.3s;
}
.popup__close:hover,
.popup__arrow:hover {
    opacity: 0.4;
    color: #fff;
}
.popup__arrow--left {
    left: 4%;
}
.popup__arrow--right {
    right: 4%;
}
@keyframes fadeIn {from {opacity: 0;}
    to {opacity: 1;}
}

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

@media only screen and (min-width: 150px) and (max-width: 1150px){
    h1{font-size: 1.3em}
    .home_1 img{ width: 20px;height: 20px;}
    .thumbnail { max-height: 90px; max-width: 140px;}
    .popup__arrow--left {left: 1%;}
    .popup__arrow--right {right: 1%;}
    .popup__arrow {font-size: 25px;background-color: transparent;color: #4be057;}
}
