* {
    margin: 0;
    padding: 0;
}

.wrapper {
    /*    display: flex;*/
}

#black {
    height: 100vh;
    background-color: black;
    width: 100%
}

video {
    width: 320px;
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

#gray {
    height: 500px;
    background-color: dimgray;
    width: 100%;
}

#navbar {
    width: 55px;
    background-color: #555;
    overflow: auto;
    position: absolute;
    z-index: 100;
/*    top: 35%;*/
    top: 50%;
    transform: translateY(-50%);
    position: fixed;
}

#navbar a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 25px;
    width: 30px;
}

#navbar a:hover {
    background-color: darkred;
}

.active {
    background-color: darkred;
}

@media screen and (max-width: 500px) {
    .navbar a {
        float: none;
        display: block;
    }
}

#red {
    height: 500px;
    background-color: darkred;
    width: 100%
}



.container {
    position: relative;
    width: 50%;
    display: flex;
}

.container:hover .overlay {
    height: 0;
}

img{
    width: 60%;
    height: 500px;
    border-radius: 3%;
}

.image {
    display: block;
    top: 0;
    left: 0;
/*
    width: 60%;
    height: 500px;
*/
    margin-left: 65%;
    object-fit: cover;
    transition: transform .3s ease.1s;
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: dimgray;
    overflow: hidden;
    width: 60%;
    height: 100%;
    transition: .25s ease-in-out .3s;
    margin-left: 65%;
}

.text {
    white-space: nowrap;
    color: white;
    font-size: 30px;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-bottom: solid 1px;
}



/*
.container{
    position: relative;
}

.image{
    height: 500px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5%;
    display: block;
}

.overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: gray;
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}

.container:hover.overlay{
    height: 100%;
}

.text{
    white-space: nowrap;
    color: white;
    font-size: 20px;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-emphasis-style: transform: translate(-50%, -50%);
}
*/

p {
    color: white;
    font-size: 30px;
    padding: 10%;
    margin: 0;
}
