body {
    font-family: Arial;
    margin:25px;    
}

#gridview {
   text-align:center; 
}

div.image {
    margin: 5px;
    display: inline-block;
}

div.image img {
    height: 250px;
    border: 1px solid #ccc;
      width: 100%;
  background-color: white;
  box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 0px;
}

div.image img:hover {
    border: 1px solid #C0C0C0;
    box-shadow: 0 0 12px 0px rgba(0,0,255);
    border-radius: 10px 1px 1px 1px;
}

.heading{    
    padding: 10px 10px;
    border-radius: 2px;
    color: #FFF;
    background: #6aadf1;
    margin-bottom:10px;
    font-size: 1.5em;
}
#grid{
    margin-bottom:30px;
}

.gallery {
  display: grid;
  grid-column-gap: 8px;
  grid-row-gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 8px;
}

div.polaroid {
  text-align: center;
  color: #FFFF00; /* Title color */
  padding-top: 2px;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  position:relative; top:-2px;
  font-size: 15px; /* Title font */

}
div.polaroid2:hover {
    border: 1px solid #FF0000;
    box-shadow: 0px 2px 20px 0px rgba(255,255,0);
    border-radius: 2px;
    background: #00FFFF;
    
}
div.polaroid2 {

  text-align:left;
  color: #000000;
  padding-top: 2px;
  position:relative; top:-2px;
  font-size: 15px;
}
h1 {
  text-shadow: 0 0 3px #FF0000;
}

div.container {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 100%;
  background-color: #CCFFFF;
  -webkit-animation: random 10s infinite;
  animation: random 10s infinite;
  
}
div.second-txt {
            display: inline-block;
            bottom: 0px;
            left: 10px;
            padding-top: 2px;
            
        }
@keyframes  random {
    15% { background-color: #CCFFFF; } 
    30% { background-color: #CCFFFF; } 
    45% { background-color: #CCFFFF; } 
    60% { background-color: #CCFFFF; }
    75% { background-color: #CCFFFF; }  
}




/* Dawood */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.header {
  text-align: center;
  padding: 32px;
}

.row {
  display: -ms-flexbox; /* IE 10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE 10 */
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create two equal columns that sits next to each other */


.column img {
    height: 150px;
  margin-top: 8px;
  vertical-align: middle;
    border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 100%;

}

/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 10px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
  font-size: 18px;
}

.btn:hover {
  background-color: #ddd;
}

.btn.active {
  background-color: #666;
  color: white;
}




/* Responsive Styles */

@media screen and (min-width: 1224px) {
    div.image {
        width: 500px;
    }
    .column {
  -ms-flex: 30%; /* IE 10 */
  flex: 15%;
  padding: 0 4px;
}
}

@media screen and (min-width: 1044px) and (max-width: 1224px) {
    div.image {
        width: 400px;
    }
    .column {
  -ms-flex: 25%; /* IE 10 */
  flex: 25%;
  padding: 0 4px;
}
}

@media screen and (min-width: 845px) and (max-width: 1044px) {
    div.image {
        width: 600px;
    }
    .column {
  -ms-flex: 50%; /* IE 10 */
  flex: 50%;
  padding: 0 4px;
}
}
@media screen and (min-width: 645px) and (max-width: 844px) {
    div.image {
        width: 358px;
    }
    .column {
  -ms-flex: 50%; /* IE 10 */
  flex: 50%;
  padding: 0 4px;
}
}

@media screen and (min-width: 445px) and (max-width: 643px) {
    div.image {
        width: 500px;
    }
    .column {
  -ms-flex: 100%; /* IE 10 */
  flex: 100%;
  padding: 0 4px;
}
}