/* FUNKCIJOS */ .font() { font-family: 'Nunito', sans-serif; color: white; font-size: 1.6vw; } .ab(){ position: absolute; } .shadow(){ -webkit-box-shadow: 0px 0px 17px 0px rgba(0,0,0,0.75); -moz-box-shadow: 0px 0px 17px 0px rgba(0,0,0,0.75); box-shadow: 0px 0px 17px 0px rgba(0,0,0,0.75); } .anims(@time: 1s){ transition: @time all; -webkit-transition: @time all; } @import url('https://fonts.googleapis.com/css?family=Nunito:400,700'); @font-face { font-family: 'Avenir'; src: url('/fonts/Avenir-Medium.eot'); src: url('/fonts/Avenir-Medium.eot?#iefix') format('embedded-opentype'), url('/fonts/Avenir-Medium.woff') format('woff'), url('/fonts/Avenir-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; } @font-face { font-family: 'Avenir Book'; src: url('/fonts/Avenir-Book.eot'); src: url('/fonts/Avenir-Book.eot?#iefix') format('embedded-opentype'), url('/fonts/Avenir-Book.woff') format('woff'), url('/fonts/Avenir-Book.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Avenir Black'; src: url('/fonts/Avenir-Black.eot'); src: url('/fonts/Avenir-Black.eot?#iefix') format('embedded-opentype'), url('/fonts/Avenir-Black.woff') format('woff'), url('/fonts/Avenir-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; } @font-face { font-family: 'Helvetica'; src: url('/fonts/Helvetica.eot'); src: url('/fonts/Helvetica.eot?#iefix') format('embedded-opentype'), url('/fonts/Helvetica.woff') format('woff'), url('/fonts/Helvetica.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: sweet-bold; src: url('/fonts/SweetSansPro-Bold.otf'); } @font-face { font-family: sweet-regular; src: url('/fonts/SweetSansPro-Regular.otf'); } @font-face { font-family: sweet-medium; src: url('/fonts/SweetSansPro-Medium.otf'); } body { margin: 0; overflow: hidden; background-color: black; height: 100vh; .font(); } html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *, *:before, *:after { -webkit-box-sizing: inherit; -moz-box-sizing: inherit; box-sizing: inherit; } .wrapper { position: absolute; width: 100%; height: calc(100vw / 16 * 9); overflow: hidden; } .background { position: absolute; width: 100%; height: calc(100vw / 16 * 9); background-color: black; & video { position: relative; width: 100%; height: 100%; } } .logo { .ab(); .anims(); top: 2.5vw; left: 2vw; width: 21vw; z-index: 9; &.big { top: 3vw; left: 2.5vw; } } .title{ .ab(); .anims(); font-family: 'Avenir', 'Helvetica', Verdana, sans-serif; top: 33.6vw; left: 3vw; z-index: 9; font-size: 2vw; background-color: rgba(0,0,0,0.4); width: 62vw; padding: 0.5vw 1vw; border-radius: 0.2vw; height: 3.2vw; overflow: hidden; &.big { top: 51.4vw; width: 98vw; } } .tvplayer { .ab(); .shadow(); .anims(); top: 2vw; left: 2vw; width: calc(16vw * 4); height: calc(9vw * 4); background-color: black; z-index: 2; video { width: 100%; height: 100%; } &.big { top: 0vw; left: 0vw; width: 100%; height: calc(100vw / 16 * 9); } } .cover { .ab(); .anims(); top: 2vw; left: 2vw; width: calc(16vw * 4); height: calc(9vw * 4); z-index: 10; background-image: url("/img/cover.jpg"); background-size: cover; &.big { top: 0vw; left: 0vw; width: 100%; height: calc(100vw / 16 * 9); } video { width: 100%; height: 100%; } } .photo,.plugin { .ab(); .anims(); top: 2vw; left: 2vw; z-index: 3; width: calc(16vw * 4); height: calc(9vw * 4); &.big { top: 0vw; left: 0vw; width: 100%; height: calc(100vw / 16 * 9); } iframe { width: calc(16vw * 4); height: calc(9vw * 4); border: none; overflow: hidden; } } .photo { background-color: #fff; background-size: 100% 100%; } .info { .ab(); top: calc(3vw + 9vw * 4); width: 100%; padding: .5vw 3vw; background-color: rgba(0,0,0,.5); } .rightblock { .ab(); top: 2vw; left: calc(3vw + 16vw * 4); width: calc(100vw - (3vw + 16vw * 4) - 2vw); background-color: rgba(0,0,0,.3); border-radius: 0.5vw; overflow: hidden; text-align: center; max-height: 23.5vw; font-size: 1.3vw; img { max-width: 100%; max-height: 23.5vw; border-radius: .5vw; } &:not(.bottom):not(.middleleft):not(.middleright) { background: transparent; } &.bottom { top: 31.4vw; padding: 1vw; line-height: 1.6vw; } &.middleleft { font-size: 2.6vw; top: 26.3vw; padding: 0.3vw; text-align: center; width: calc((100vw - (3vw + 16vw * 4) - 2vw) / 2 - .5vw); padding-top: 0.5vw; padding-bottom: 0.6vw; font-weight: 600; } &.middleright { font-size: 2.6vw; top: 26.3vw; padding: 0.3vw; text-align: center; left: calc(3vw + 16vw * 4 + ((100vw - (3vw + 16vw * 4) - 2vw) / 2 - .5vw + 1vw)); width: calc((100vw - (3vw + 16vw * 4) - 2vw) / 2 - .5vw); padding-top: 0.5vw; padding-bottom: 0.5vw; font-weight: 600; } } .bottomblock { .ab(); top: calc(3.6vw + 9vw * 4); left: calc(2vw); width: calc(96vw); background-color: rgba(0,0,0,.5); padding: 1.1vw 1.3vw; height: calc((98vw / 16 * 9) - (4.8vw + 9vw * 4)); overflow: hidden; font-size: 2vw; line-height: 2.6vw; div { -webkit-backface-visibility: hidden; } }