@media all and (max-width: 1280px) {
    .navbar {
	left: 11em;
}
    #navigation {
	top: 1em;
}
    #second {
	top: 66em;
}
    #third {
	top: 62em;
}
    #fourth {
	top: 60em;
}
    footer {
        top: 54em;
    }
    
    .logo {
	top: -5em;
}
    .statement {
	top: -14em;
}
    .logo-small {
	    left: -53.9em;
    top: -0.9em;
}
    .photo {
	top: 1em;
}
}


@media only screen and (max-width: 1024px) {
   .logo {
	top: 1em;
}
    #navigation {
	    top: -1em;
    left: -10em;
}
    .statement {
	top: -8em;
}
    .statement p{
	padding: 0 3em;
}
    .arrow-down {
	top: 1em;
}
    .divisions-header {
	top: 0em;
}
    .divisions {
	top: -1em;
}
    .afeka {
	left: -1em;
}
    .avner {
	left: -3em;
}
    .avner, .afeka {
	width: 40.333333%;
}
    .photo {
    top: 0em;
}
    .info {
	top: 0em;
}
    .about {
	width: 70%;
    margin-left: 15%;
}
    .third-bg {
	    top: 6.7em;
}
    #third {
	    height: 839px !important;
top: 66em;
}
  
    .space {
	    left: 6.4em;
    top: 8em;
    position: absolute;
}
    .contact {
	top: 5.7em;
        position: relative;
}
    .form-box {
	top: -7.1em;
}
    #contact-form .btn {
   top: -2em;
    margin-left: -6px;
}
    .contact-details ul{
	width: 26em;
}
    .mdl-checkbox {
	top: -2em;
}
    .logo-small {
	width: 20%;
    left: -36.9em;
        top: 1.1em;
}
    footer {
            z-index: 3;
    }
    
}

@media only screen and (max-width: 770px) {
    
    #navigation {
	left: 9em;
}
    .logo {
	top: -2em;
}
    
    .statement h1{
	font-size: 54px;
}
    .statement p{
	padding: 0 6em;
}
    .arrow-down {
    top: 10em;
}
    #second, #third, #fourth, footer {
	top: 74em;
       
}
    
    .divisions-header, .divisions {
    top: -2em;
}
    .avner {
       top: 2.9em;
    left: 7em;
}
    .afeka {
	left: 4em;
}
    .afeka img {
    width: 15.6em;
}
    .about {
	width: 92%;
    left: -6em;
    height: 35em;
top: -3em;
}
    .info {
	width: 50%;
    left: 23em;
    top: -26em;
}
    .contact {
        top: 4.7em;
    }
    .contact-details {
	top: -4em;
}
    .contact-details h4{
	left: 0;
    margin: 0 auto;
    width: 6em;
    padding-top: 1em;
}
    .contact-details ul{
	    top: -2em;
        left: -1em;
    position: relative;
}
    .contact-details li{
	line-height: 1px;
}
    .space {
	padding-left: 3.5em;
            left: 2.1em;
    top: 2.9em;
}
    
    .third-bg {
	height: 26%;
}
    .form {
	    padding-bottom: 0;
    padding-top: 0;
    top: 5em;
    height: 35em;
}
    .logo-small {
	left: -19em;
}

}

@media screen and (max-width: 740px) {
     #navigation li {
        display: none !important;
    }
    .logo {
	top: 1em;
        left: 4em;
}
 .logo img{
	width: 60%;
}  
    .statement {
	top: -5em;
}
    .statement h1{
	font-size: 41px;
    letter-spacing: 0;
        margin-bottom: -3px;
}
    .statement p{
    padding: 0 5em;
    font-size: 15px;
}
    .fa-chevron-down {
	font-size: 26px;
}
      .arrow-down {
    top: 0em;
    width: 2em;
}
     #second h1, #fourth h1 {
    font-size: 2rem;
}
    .divisions-header p{
	font-size: 14px;
    padding: 0 3em;
        position: relative;
        top: -0.5em;
}
    .divisions {
	top: -7em;
}
    .afeka, .avner {
	width: 47.333333%;
            height: 21em;
}
    .afeka {
	left: 1em;
}
    .avner {
	left: 2em;
}
    .divisions p{
	    font-size: 14px;
    line-height: 1.5rem;
    margin-bottom: 23px;
}
    .avner p{
	font-size: 13px;
}
     #second img {
	    padding: 0;
    
}
    
.avner img {
   width: 45%; 
}
    .afeka img {
        width: 31%;
    }
  
    .about {
	    height: 28em;
        top: -15em;
}
    .info {
	top: -30em;
}
.info p {
    font-size:0.9rem;
}
    .third-bg {
    top: -0.3em;
}
    .contact {
    top: -1.3em;
}
     #fourth .subtext{
	    padding: 0 3em 1em 3em;
        top: -1em;
        position: relative;
}
     .contact_form .input-field {
    margin-bottom: -0.28rem;
}
    .form {
	top: 1em;
}
    .form-box {
    top: -7.2em;
}
    .mdl-checkbox {
    top: 0.5em;
}
    .mdl-checkbox .new-line {
	display: initial;
}
    #contact-form .btn {
    top: -3.5em;
    }
    .contact_form input[type=text], .contact_form input[type=password], .contact_form input[type=email], .contact_form input[type=date], .contact_form input[type=tel], .contact_form textarea {
        margin-bottom: 0;
    }
    .form-box .material-icons {
        top: 0.5em;
    }
    .material-icons {
	font-size: 24px;
}
    .space {
    left: 1.4em;
    top: 2.1em;
}
   .sub-icon {
	width: 2em;
}
}

@media screen and (max-width: 670px){
    
    .statement {
	top: -7em;
}
    .statement p{
    font-size: 14px;
}
    .arrow-down {
    top: -2em;
}
    .divisions-header p{
        top: -1.5em;
}
    
    #second, #third {
    top: 27em;
}
    #fourth {
	top: -3em;
}
    footer {
        top: -9em;
    }
    
    #second {
	    height: 48em;
}
    #third {
	height: 53em;
}
    
    .divisions {
	top: -8em;
}
    .divisions p{
	font-size: 12px;
    line-height: 1rem;
        margin-bottom: 12px;
}
    .afeka, .avner {
	width: 46.333333%;
        left: 1em;
            height: 17em;
}
   
    #second .btn {
	margin-top: 1em;
}
    .avner {
	top: 3em;
        left: 2.5em;
}
    .third-bg {
        height: 20%;
            top: -2.3em;
}
    .about {
           left: 0em;
    height: 32.5em;
    top: -17.5em;
    width: 69%;
}
    .img-big{
	display: none;
        
}
    .img-responsive {
	display: initial;
}
    .info {
	width: 100%;
           padding-top: 5%;
    top: -2.7em;
            left: 0em;

}
    #third p{
	font-size: 14px;
}
    .photo {
        top: -1em;
	width: 12em;
    margin: 0 auto;
}
    .contact {
	    top: -1em;
}
   
    .contact-details {
	top:-5em;
}
    .contact-details ul{
	    left: -3em;
    position: relative;
}
   
    .mdl-checkbox {
	top: 0;
        padding-right: 13em;
}
    #contact-form .btn {
    top: -5em;
        left: 29em;
    
}
    #fourth h1{
	    top: -0.5em;
    position: relative;
}
    .form {
	height: 30em;
}
    .form-box {
	top: -12em;
}
  .go-back a{
	top: 3em;
}
}


@media screen and (max-width: 415px) {
    
    .statement h1{
	font-size: 25px;
    margin-bottom: 11px;
} 
     .logo {
	top: -1em;
}
    #second {
	top: 51em;
}
    #third {
	top: 55em;
        height: 736px !important;
}
    #fourth {
	top: 54em;
}
    .statement p{
	padding: 0 4em;
}
    .arrow-down {
    top: 8em;
}
    .divisions-header {
	top: -1em;
}
    .divisions {
    top: -7em;
}
     .afeka, .avner {
    width: 92.333333%;
        height: 19em;
         left: 1em;
}
    .avner {
	top: 4em;
        
}
    .about {
    left: -1em;
    height: 43.5em;
    top: -3.5em;
    width: 76%;
}
    .info {
	top: 0em;
}
    footer {
        top: 45em;
    }
    .form-box {
    top: -6em;
}
    .new-line {
	display: initial;
}
    .mdl-checkbox {
	padding-right: 0em;
}
    #contact-form .btn {
    top: 0em;
    width: 100%;
        left: initial;
}
   
    .contact-details {
    top: -10em;
    z-index: 2;
}
    #subpage h4 {
        width: 13em;
    text-align: center;
    top: 2em;
}
    .next-line {
	display: block;
}
}

@media screen and (max-width: 375px){
    .logo {
    top: 1em;
}
   
    .statement {
	top: -6em;
}
   
    .statement p{
	padding: 0 1em;
}
    .arrow-down {
	top: 4em;
}
    #second {
    height: 81em;
            top: 44.2em;
}
    .avner img {
    width: 30%;
}
    .afeka img {
	width: 21%;
}
    .divisions-header {
	top: -2.3em;
}
    .divisions {
	top: -8.6em;
}
   .afeka, .avner {
	height: 15em;
}
    .avner {
    top: 3.2em;
        left: 1em;
}
    .divisions-header p {
	font-size: 13px;
        padding: 0 1em;
}
    .next-line {
	display: initial;
}
     #third {
    height: 55em;
             top: 53em;
}
    #fourth {
	top: 45em;
}
    .about {
    left: -3em;
    height: 36em;
    width: 93%;
        top: -7.5em;
}
    .contact-details {
	top: -7em;
}
  #contact-form .btn {
    width: 19.2em;
    top: 1em;
}
    .form-box {
    top: -6em;
}
    footer {
    top: 38em;
}
   .go-back a {
    top: 6em;
}
}

@media screen and (max-width: 320px) {
    .statement h1{
	font-size: 20px;
}
    .divisions-header p, .subtext {
    font-size: 11px;
}
    #second h1, #fourth h1 {
        font-size: 29px;
    }
    
    .btn {
	font-size: 11px;
    }
    .afeka {
    height: 14em;
}
    .avner {
    top: 3.3em;
        height: 15em;
    }
    .about {
	height: 38em;
        top: -6.5em;
}
    .info {
    top: -1em;
}
    #third p{
	font-size: 15px;
}
    .contact-details li {
    font-size: 15px;
}
    input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], textarea {
        font-size: 15px;
    }
    .mdl-checkbox__label{
        font-size: 13px;
    }
    .material-icons {
    font-size: 22px;
}
    .form-box .material-icons {
        top: 0.6em;
    }
    .edit {
	top: 1em !important;
}
    .space {
    left: 2.1em;
    top: 2.3em;
}
    .mdl-checkbox__label {
    left: 1em;
}
    .copyright {
	left: -1em;
    position: relative;
}
    #subpage h4 {
    width: 11em;
    }
    
    .go-back a {
    top: 6em;
}
}

/* SUBPAGES AFEKA */

@media screen and (max-width: 1024px) { 

    .afeka-subpage {
	top: 54em;
}
    .afeka-info {
    top: 0em;
}
.afeka-btn {
	top: -3em;
}
    .afeka-info {
	margin-left: 24%;
        width: 55%;
}
}

@media screen and (max-width: 770px) {
    .afeka-subpage {
    top: 71em;
}
    .afeka-logo-subpage {
    position: relative;
    top: -8.2em;
        height: 15em;
}
    .afeka-logo-subpage-inner {
	top: 4em;
}
    
    .afeka-info {
    top: -4em;
         margin-left: 16.66666667%;
    width: 66.66666667%;

}
}

@media screen and (max-width: 740px) {
    
.background-afeka h1{
	top: 0em;
}
    .afeka-logo-subpage {
        height: 8em;
    }
.afeka-logo-subpage-inner {
    width: 8em;
    top: 1em;
}
    .afeka-logo-subpage-inner img {
    width: 8em;
    }
    .afeka-info {
	top: -3em;
}
    .afeka-info p{
	font-size: 13px;
}
    .col-xs-offset-2 {
	margin-left: 0;
}
    .col-xs-8 {
	width: 99.666667%;
}
    .afeka-btn {
	top: -6.5em;
}
   .back-btn i {
	    top: 1.6em;
    left: 1.5em;
}
}

@media screen and (max-width: 670px) {

.afeka-logo-subpage {
	display: none;
}
    .afeka-info {
	top: -1em;
}
    .afeka-info p{
	font-size: 12px;
}
    
    .afeka-btn {
    top: -6.5em;
}
    .go-back-btn {
	    top: 18em;
    left: -1em;

}
}

@media screen and (max-width: 415px) {
    .background-afeka h1{
	    font-size: 3.2rem;
}
    .afeka-logo-subpage {
	display: block;
        top: -1.2em;
}
    .afeka-btn {
    top: -2.5em;
        width: 23em;
        margin: 0;
    }
    .afeka-btn .btn{
	width: 100%;
}
    .go-back-btn {
	    top: -1em;
    left: -1em;
}
}

@media screen and (max-width: 375px) {
    .background-afeka h1 {
    font-size: 2.8rem;
            width: 5.7em;
}
    .afeka-info {
    top: -1em;
}
    .afeka-logo-subpage {
	display: none;
}
    .afeka-info p {
    letter-spacing: 0.001rem;
}
    .afeka-btn {
	left: -1.5em;
        top: -3.5em;
            width: 23.5em;
}
    .go-back-btn {
    top: -1em;
}
}

@media screen and (max-width: 320px) {
    .afeka-info p{
	line-height: 1.9;
}
    .afeka-btn {
	width: 20.5em;
}
    .back-btn i {
    top: 1.3em;
    left: 1.2em;
}
    .background-afeka h1 {
    width: 6.6em;
}
}

/* SUBPAGES AVNER */
@media screen and (max-width: 1024px) {
    .avner-logo-subpage-inner {
    top: 3.2em;
}
}

@media screen and (max-width: 770px) {
    .avner-logo-subpage {
    top: -14.3em;
}
    .avner-info {
    top: -8em;
}
}

@media screen and (max-width: 740px) {
    .avner-logo-subpage {
    top: -0.3em;
        height: 9em;
}
    .avner-info {
    top: 0em;
}
    .avner-btn {
    top: -1.5em;
}
    .back-btn {
	height: 3em;
    width: 3em;
}
 
}

@media screen and (max-width: 415px) {
    .avner-logo-subpage {
	top: -8.3em;
}
}

@media screen and (max-width: 320px) {
    .background-avner h1 {
   
    width: 5.7em;
}
}