.img-text-container{ position: relative; text-align: center; height: 100%; width: 100%; } .text-img{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #e6e6e6; font-size: 70px; font-weight: bold; } .iframe-wrapper{ padding-top: 100px; text-align: center; } .many-imgs{ padding-top: 100px; margin-left: 400px; margin-right: 400px; } /*.img-center{*/ /* margin: auto;*/ /*}*/ .center-this{ text-align: center; } .word-wrap{ text-align: center; box-sizing: border-box; border-top: solid 2px #e6e6e6; border-bottom: solid 2px #e6e6e6; max-width: 250px; max-height: 300px; padding: 10px; } .word-wrap2{ /*margin-top: 10px;*/ box-sizing: border-box; border-top: solid 2px #e6e6e6; border-bottom: solid 2px #e6e6e6; padding: 10px; max-width: 60%; margin: auto; overflow: hidden; /*position: absolute;*/ /*max-width: 300px;*/ } .last-content-box{ display: inline-block; } .rotate-up{ transform: rotate(250deg); } .tree-img{ margin-left: -60px; } .rotate-up-side{ transform: rotate(180deg); } .rotate-down-side{ transform: rotate(120deg); overflow: hidden; /*margin-left: -30px;*/ } .handmaid-img{ padding-top: 20px; } @media only screen and (max-width: 480px){ .text-img{ font-size: 30px; } .iframe-wrapper{ padding-top: 20px; } .iframe-container1{ position: relative; width: 100%; padding-bottom: 56.25%; height: 0; } .iframe-container1 iframe{ position: absolute; top:0; left: 0; width: 100%; height: 100%; } .many-imgs{ margin-left: 10px; margin-right: 10px; } .tree-img{ margin-left: auto; } .img-extend{ height: 300px; } .rotate-up-side{ transform: rotate(200deg); } .rotate-down-side{ transform: rotate(90deg); overflow: hidden; } } @media (min-width: 600px) and (max-width: 1024px){ .text-img{ font-size: 50px; } .iframe-wrapper{ padding-top: 40px; } .iframe-container1{ position: relative; width: 100%; padding-bottom: 56.25%; height: 0; } .iframe-container1 iframe{ position: absolute; top:0; left: 0; width: 100%; height: 100%; } .many-imgs{ margin-left: 10px; margin-right: 10px; } .tree-img{ margin-left: auto; } .rotate-down-side{ transform: rotate(100deg); overflow: hidden; } }