
/* Style inputs with type="text", select elements and text areas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 10px; /* Some padding */ 
    border: 1px solid #ccc; /* Gray border */
    border-radius: 5px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  }
  
  /* Style the submit button with a specific background color etc */
  input[type=submit] {
    background-color: rgb(48, 100, 95);
    color: white;
    padding: 10px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* When moving the mouse over the submit button, add a darker green color */
  input[type=submit]:hover {
    background-color:rgb(77, 177, 177);
  }
  
  /* Add a background color and some padding around the form */
  .holder {
    color: aliceblue;
    border-radius: 5px;
    background-color: #2b161600;
    padding: 20px;
  }

  /* backround for the form with border radius */
  .background {
    background-color: #00000093;
    display: block;
    padding: 7px;
    border: 1px solid rgba(42, 42, 42, 0.242);
    margin: auto;
    width:  50%;
    border-radius: 5%;
}


/* Container for exhibitions  */
.container {
    max-width: 960px;
    min-height: 50px;
    position: relative;
    background: #00000093;
    margin: 30px auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 1%;
}

.container .box {
    position: relative;
    width: 460px;
    height: 360px;
    background: rgba(0, 0, 0, 0);
    margin: 10px;
    box-sizing: border-box;
    display: inline-block;
}

.container .box .imgBox {
    position: relative;
}

.container .box .imgBox img {
    max-width: 100%;
    transition: transform 2s;
}

/* scale image up on hover  */
.container .box:hover .imgBox img {
    transform: scale(1.03);
}

.container .box .details {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    transform: scaleY(0);
    transition: transform .5s;
}

.container .box:hover .details {
    transform: scaleY(1);
}

.container .box:hover .details .content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    color: #fff;
    justify-content: center;
    text-align: center;
}

.container .box:hover .details .content h5 {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-size: 20px;
    color: #dadada;
    text-align: center;
}

.container .box:hover .details .content p {
    margin: 10px 0 0;
    padding: 0;
    font-size: 14px;
    color: #dadada;
    text-align: center;
    align-items: center;
}

@media screen and (max-width: 300px) {
    .container, .box, .imgBox, .details, .content {
     max-width: 100%; 
     height: auto;
     /* The width is 100% when the viewport is 600px or smaller */
    }
}
