/* Nati Almaliah & Tamir Zilberman */

/*responsive you tube frame*/
#iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 10%;
}

#iframe-container iframe {
    display: block;
    margin: 20px auto;
    border: 10px solid black;
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
}
/*responsive you tube frame*/

#home-page-text {
    margin: 20px auto 50px;
    text-align: center;
    font-size: xx-large;
}

#home-page-text h1 {
    font-family: cursive;
}


/* fliped images*/

#images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-radius: 6px;
    margin: 35px auto;
    max-width: 45%;

}

.container {
    position: relative;
    padding: 5px;
    border: 1px solid gray;
    border-radius: 6px;
    cursor: pointer;
}

.image {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .8s ease;
    background-color: #cfd1d0;
    border-radius: 6px;
}

.container:hover .overlay {
    opacity: 1;
}

.text {
    word-break: break-all;
    width: 100%;
    color: white;
    font-size: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .text {
        font-size: 17px;
    }
    #images-grid{
        max-width: 75%;
    }
}

/*test fliped images*/