* {
    padding: 0;
    margin: 0;
    font-family: "Rubik"
}
a {
    text-decoration: none;
    color: #e24954;
    transition: .1s;
}
a:hover {
    color: #ba3e4d;
}
section {
    height: 100vh;
    position: relative;
}
.header {
    *background-image: url(dsg/inframe-header.jpg);
    background-size: cover;
    background-repeat: none;
    background-position: center;
    overflow: auto;
}
.logo {
    display: block;
    height: 65px;
    width: 65px;
    background-image: url(dsg/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 auto;
    margin-top: 40px;
}
.services {
    width: 60%;
    height: 60%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.service {
    width: 50%;
    height: 50%;
    float: left;
    position: relative;
    transition: .2s;
}
.service:first-of-type {
    background-color: #e24954;
}
.service:nth-of-type(2) {
    background-color: #fcad44;
}
.service:nth-of-type(3) {
    background-color: #449de0;
}
.service:nth-of-type(4) {
    background-color: #9fdd58;
}
.service:first-of-type:hover {
    background-color: #ba3e4d;
}
.service:nth-of-type(2):hover {
    background-color: #e1942f;
}
.service:nth-of-type(3):hover {
    background-color: #2b7ebd;
}
.service:nth-of-type(4):hover {
    background-color: #77b72d;
}
.service-img {
    background-image: url(dsg/webdesign.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(.8);
    height: 35%;
    width: 17%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    top: 0;
    margin: auto;
    transition: .5s;
}
.service:hover .service-img {
    transform: scale(1);
}
.service:nth-of-type(2) .service-img {
    background-image: url(dsg/programiranje.png);
}
.service:nth-of-type(3) .service-img {
    background-image: url(dsg/ios.png);
}
.service:nth-of-type(4) .service-img {
    background-image: url(dsg/optimizacija.png);
}
.service h1 {
    color: #FFF;
    font-weight: 300;
    font-size: 22px;
    text-align: center;
    background-color: #ba3e4d;
    height: 60px;
    box-sizing: border-box;
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.service:nth-of-type(2) h1 {
    background-color: #e1942f;
}
.service:nth-of-type(3) h1 {
    background-color: #2b7ebd;
}
.service:nth-of-type(4) h1 {
    background-color: #77b72d;
}
.scroll {
    background-image: url(dsg/scroll.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 150px;
    height: 46px;
    cursor: pointer;
}
.contact {
    width: 600px;
    height: 370px;
    background-color: #f7f7f5;
    box-sizing: border-box;
    padding: 50px 50px;
    position: absolute;
    left: 600px;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    
    padding: 60px 0px;
    font-size: 20px;
    font-weight: 300;
    color: #6d6e71;
}
.contact input {
    height: 50px;
    width: 100%;
    outline: none;
    border: none;
    border-bottom: 2px solid #e6e7e8;
    font-size: 18px;
    font-weight: 300;
    color: #a7a9ac;
    box-sizing: border-box;
    padding: 0px 20px 0px 20px;
}
.contact textarea {
    min-height: 300px;
    max-height: 300px;
    min-width: 100%;
    max-width: 100%;
    outline: none;
    border: none;
    border-bottom: 2px solid #e6e7e8;
    font-size: 18px;
    color: #a7a9ac;
    box-sizing: border-box;
    padding: 20px 20px 0px 20px;
    resize: none;
    font-weight: 300;
}
#submit {
    color: #FFF;
    background-color: #e24954;
    border-bottom: none;
    box-sizing: border-box;
    padding: 10px 85px 10px 40px;
    cursor: pointer;
    width: auto;
    background-image: url(dsg/button-img.png);
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    transition: .1s;
    float: right;
}
#submit:hover {
    background-color: #ba3e4d;
}
.submit-img {
    height: 50px;
    width: 50px;
    background-color: #ba3e4d;
    float: left;
}
.info {
    width: 600px;
    height: 370px;
    box-sizing: border-box;
    padding: 60px 100px;
    font-size: 20px;
    font-weight: 300;
    color: #6d6e71;
    background-color: #f7f7f5;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 600px;
    margin: auto;
}
.break {
    clear: both;
}
.info #net,
.info #mail, 
.info #phone {
    background-image: url(dsg/net-img.png);
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    background-size: 13px;
    padding-left: 30px;
}
.info #net {
    margin-left: 3px;
    padding-left: 27px;
}
.info #mail {
    background-image: url(dsg/mail-img.png);
    background-size: 18px;
}
.info #phone {
    background-image: url(dsg/phone-img.png);
    background-size: 18px;
}
h2 {
    font-family: "Titillium Web";
    font-weight: 300;
    color: #e24954;
    font-size: 50px;
    text-align: center;
    margin-bottom: 100px;
}
section:last-of-type h2 {
    padding-top: 60px;
}
section:last-of-type {
    background-image: url(dsg/contact-bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
}
h4 {
    font-size: 18px;
    font-weight: 400;
    padding-left: 35px;
    box-sizing: border-box;
    color: #171717;
    background-position: left;
    background-repeat: no-repeat;
    background-size: auto 20px;
    margin-top: 30px;
    width: 50%;
    float: left;
}
.main-width {
    width: 1200px;
    height: 100%;
    margin: 0 autO;
    box-sizing: border-box;
    padding: 60px 0px;
}
.portfolio div .text {
    font-size: 15px;
    font-weight: 300;
    color: #6D6E71;
    float: left;
    width: 50%;
    box-sizing: border-box;
    padding: 20px;
}
.portfolio div .img {
    width: 50%;
    float: right;
    box-sizing: border-box;
    padding: 20px;
}
.portfolio div .img img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.portfolio .main-width > div {
    margin-top: 60px;
}
.portfolio .main-width > div:nth-of-type(2n) .text {
    float: right;
}
.portfolio .main-width > div:nth-of-type(2n) .img {
    float: left;
}
.portfolio-red h3 a {
    color: #e24954;
}
.portfolio-red h3 a:hover {
    color: #ba3e4d;
}
.portfolio-red h4.admin {
    background-image: url(dsg/admin-img-red.png);
}
.portfolio-red h4.design {
    background-image: url(dsg/design-img-red.png);
}
.portfolio-red h4.phone {
    background-image: url(dsg/phone-img-red.png);
}
.portfolio-red h4.lang {
    background-image: url(dsg/lang-img-red.png);
}
.portfolio-red h4.function {
    background-image: url(dsg/function-img-red.png);
}
.portfolio-red h4.shop {
    background-image: url(dsg/shop-img-red.png);
}
.portfolio-orange h3 a {
    color: #fcad44;
}
.portfolio-orange h3 a:hover {
    color: #e1942f;
}
.portfolio-orange h4.admin {
    background-image: url(dsg/admin-img-orange.png);
}
.portfolio-orange h4.design {
    background-image: url(dsg/design-img-orange.png);
}
.portfolio-orange h4.phone {
    background-image: url(dsg/phone-img-orange.png);
}
.portfolio-orange h4.lang {
    background-image: url(dsg/lang-img-orange.png);
}
.portfolio-orange h4.function {
    background-image: url(dsg/function-img-orange.png);
}
.portfolio-blue h3 a {
    color: #449de0;
}
.portfolio-blue h3 a:hover {
    color: #2b7ebd;
}
.portfolio-blue h4.admin {
    background-image: url(dsg/admin-img-blue.png);
}
.portfolio-blue h4.design {
    background-image: url(dsg/design-img-blue.png);
}
.portfolio-blue h4.phone {
    background-image: url(dsg/phone-img-blue.png);
}
.portfolio-blue h4.lang {
    background-image: url(dsg/lang-img-blue.png);
}
.portfolio-blue h4.function {
    background-image: url(dsg/function-img-blue.png);
}
.portfolio-green h3 a {
    color: #9fdd58;
}
.portfolio-green h3 a:hover {
    color: #77b72d;
}
.portfolio-green h4.admin {
    background-image: url(dsg/admin-img-green.png);
}
.portfolio-green h4.design {
    background-image: url(dsg/design-img-green.png);
}
.portfolio-green h4.phone {
    background-image: url(dsg/phone-img-green.png);
}
.portfolio-green h4.lang {
    background-image: url(dsg/lang-img-green.png);
}
.portfolio-green h4.function {
    background-image: url(dsg/function-img-green.png);
}
.storitev {
    width: 50%;
    float: left;
    font-size: 15px;
    font-weight: 300;
    color: #6D6E71;
    box-sizing: border-box;
    background-image: url(dsg/webdesign-img.png);
    background-repeat: no-repeat;
    background-size: 48px 48px;
}
.storitev:nth-of-type(2) {
    background-image: url(dsg/design-img.png);
}
.storitev:nth-of-type(3) {
    background-image: url(dsg/mobile-img.png);
}
.storitev:nth-of-type(4) {
    background-image: url(dsg/opt-img.png);
}
.storitev:nth-of-type(3),
.storitev:nth-of-type(4) {
    margin-top: 60px;
}
.storitev.left {
    padding-right: 140px;
    text-align: right;
    background-position: top right 60px;
}
.storitev.right {
    padding-left: 140px;
    text-align: left;
    background-position: top left 60px;
}
.storitev.left h5 {
    text-align: right;
}
h5 {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #161616;
    box-sizing: border-box;
    padding: 10px 0px;
}
.hidden {
	display: none;
}


@media only screen and (max-width:1260px) {
    
    
    .portfolio .content {
        width: 100%;
    }
    .logo {
        margin-top: 15px;
    }
    .scroll {
        width: 100px;
        height: 31px;
    }
    .services {
        width: 80%;
    }
    .service h1 {
        font-size: 15px;
        height: 40px;
        padding: 10px;
    }
    .service-img {
        bottom: 30px;
    }
    .contact {
        padding: 30px 50px;
    }
    .contact input {
        height: 40px;
        font-size: 15px;
        padding: 0px 15px 0px 15px;
    }
    .contact textarea {
        min-height: 200px;
        max-height: 200px;
        font-size: 15px;
        padding: 15px 15px 0px 15px;
    }
    #submit {
        padding: 10px 65px 10px 30px;
    }
    .info {
        padding: 30px 50px;
        font-size: 18px;
    }
    .info {
        width: 450px;
        height: 500px;
        right: 450px;
    }
    .contact {
        width: 450px;
        height: 500px;
        left: 450px;
    }
    
}

@media only screen and (max-width:1200px) {
    
    
    h2 {
        font-size: 40px;
        margin-bottom: 50px;
        padding-top: 10px;
    }
    .portfolio h2 {
        padding-top: 0px;
    }
    .main-width {
        width: 100%;
        padding: 60px 20px;
    }
    .portfolio div .text {
        float: none;
        width: 100%;
        margin-bottom: 50px;
    }
    .portfolio div .img {
        width: 100%;
        float: none;
    }
    .portfolio div .img img {
        margin: 0 auto;
    }
    .storitev.left {
        padding-right: 110px;
        text-align: right;
        background-position: top right 30px;
    }
    .storitev.right {
        padding-left: 110px;
        text-align: left;
        background-position: top left 30px;
    }
    .storitev:nth-of-type(3),
    .storitev:nth-of-type(4) {
        margin-top: 30px;
    }

    
    
}

@media only screen and (max-width:900px) {
    
    section {
        height: auto;
    }
    .logo {
        height: 50px;
    }
    .scroll {
        display: none;
    }
    .services {
        width: 80%;
        height: auto;
        position: relative;
        margin-bottom: 30px;
        margin-top: 30px;
    }
    .service {
        width: 50%;
        height: 130px;
    }
    .service-img {
        height: 50px;
        width: 50px;
    }
    .contact {
        position: relative;
        width: 100%;
        left: 0;
    }
    .info {
        position: relative;
        width: 100%;
        right: 0;
        height: auto;
    }
    .storitev.left {
        width: 100%;
        padding-right: 0px;
        padding-left: 70px;
        text-align: left;
        background-position: top left 0px;
    }
    .storitev.left h5 {
        text-align: left;
        
    }
    .storitev.right {
        width: 100%;
        padding-left: 70px;
        background-position: top left 0px;
    }
    .storitev:nth-of-type(3),
    .storitev:nth-of-type(4) {
        margin-top: 30px;
    }
    .storitev:nth-of-type(1),
    .storitev:nth-of-type(2) {
        margin-top: 30px;
    }
    
}


@media only screen and (max-width:550px) {
    
    .logo {
        height: 45px;
        width: 45px;
    }
    .services {
        width: 90%;
    }
    .service {
        width: 100%;
        height: 110px;
    }
    .contact {
        float: none;
        width: 100%;
        padding: 20px 20px;
    }
    .info {
        float: none;
        width: 100%;
        padding: 20px 20px;
    }
    .portfolio .text h4 {
        float: none;
        width: 100%;
    }
    
}

