<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<h2>Box Transform Rotate 'Tourism In Egypt' </h2>
<div class="item tm1">
<img src="http://www.videoskick.com/wp-content/uploads/2016/06/Wallpaper-of-Egyptian-sphinx-and-pyramid-on-sunset.jpg">
<p>Sphinx</p>
</div>
<div class="item tm2">
<img src="https://9227-presscdn-0-11-pagely.netdna-ssl.com/wp-content/uploads/2015/11/Luxor-Egypt.jpg">
<p>Luxor, EGYPT </p>
</div>
<div class="item tm3">
<img src="https://www.roughguides.com/wp-content/uploads/2012/11/1416684531-660x420.jpg">
<p class="ar">قلعة صلاح الدين </p>
</div>
<div class="item tm4">
<img src="http://egyptfuntours.com/images/stories/egypt_tours_hurghada_safari.jpg">
<p> Safari Hurghada Desert </p>
</div>
<br>
<span>
<div class="item tm5">
<img src="http://outinafricaride.org/wp-content/uploads/2014/12/Pyramids1-720x380.jpg">
<p>Pyramids</p>
</div>
<div class="item tm6">
<img src="https://www.greenprophet.com/wp-content/uploads/Egyptian-Desert-Sand-Spiral-3.jpg">
<p>The Desert Breath </p>
</div>
<div class="item tm7">
<img src="http://www.destination360.com/africa/egypt/images/s/safari-tours.jpg">
<p>Safari Egypt</p>
</div>
<span>
<br>
<div class="item tm8">
<img src="http://egyptlastminute.com/wp-content/uploads/2012/11/safari-tours-egypt.jpg">
<p>Moto Safari</p>
</div>
<div class="item tm2">
<img src="http://www.holiday-designers.com/images/0/0/d8d31089-a92d-493c-8567-797c09efa98f.jpg">
<p>Red Sea Diving Holidays </p>
</div>
<div class="item tm3">
<img src="https://egyptianstreets.com/wp-content/uploads/2014/07/El-_Gouna_Architenturr_hotels_egypt.jpg">
<p>GOUNA</p>
</div>
<div class="item tm4">
<img src="https://egyptianstreets.com/wp-content/uploads/2014/07/01-Jaz_Oriental_014_default.jpg">
<p> MARSA MATROUH </p>
</div>
</div>
</div>
@import url('https://fonts.googleapis.com/css?family=Amiri|Aref+Ruqaa|Cairo|Changa|El+Messiri|Harmattan|Jomhuria|Lateef|Mirza|Rakkas|Lato|Source+Sans+Pro|Ubuntu');
/* *{transition: 0.3s linear; padding:0;margin:0;} */
body{
background-image: linear-gradient(-225deg, rgba(44, 216, 213, 0.45) 0%, #C5C1FF 56%, rgba(255, 186, 195, 0.71) 100%);
background-repeat: no-repeat;
background-attachment: fixed;
}
h2 {margin:2em; letter-spacing:0.2em; color: #EEE}
.container{
margin: 3em auto;
width: 90%;
text-align: center;
/* font-family: 'Aref Ruqaa', serif; */
font-family: 'Ubuntu', sans-serif;
/* font-family: 'Lato', sans-serif; */
font-family: 'Source Sans Pro', sans-serif;
}
.item {
/* background: #FFF; */
margin: 2em;
display: inline-block;
width: 200px;
height: 200px;
border-radius: 20px;
transform: rotate(45deg);
position: relative;
overflow: hidden;
transition: all 0.3s ease-in-out;
padding:0;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
margin: 0 auto;
}
.item p {
position: absolute;
transform: rotate(-45deg);
top: 30%;
left: -20%;
background: rgba(0, 0, 0, 0.7);
padding: 10px 20px;
width:130%;
text-align:center;
color: #fff;
transition: all 0.3s ease-in-out;
}
.item:hover {
transform: none;
transform: scale(1.5);
z-index:2;
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.item:hover > p {
transform: none;
top: 0;
}
img {
width: 100%;
height: 100%;
transition: 0.3s linear;
transform: rotate(-45deg) scale(1.4)
}
.item:hover > img {
transform: none;
}
p.ar {
font-family: 'Rakkas', cursive;
font-size:1.1em;
}
body::-webkit-scrollbar
{
width: 0.7em;
background-color: #EEE;
}
body::-webkit-scrollbar-thumb{
/* background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); */
background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
/* background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%); */
/* background: linear-gradient(to top, #2193b0, #6dd5ed); */
border-radius:1em;
}