/** * Site constants */ @content-width: 850px; @background-color: #12110f; @highlight-color: #dcd6d686; @text-color: #dcd6d6; /** * General stuff about the site */ body { background-color: #12110f; color: #dcd6d6; font-family: verdana; margin: 0; } a { color:#eee; text-decoration:none; transition: color 0.15s; &:focus, &:hover { text-decoration: none; color:#bbf; } } /** * General usable stuff */ .center { text-align: center; } .left { text-align: left; } .right { text-align: right; } .highlight { box-shadow: 0px 0px 3px 3px #dcd6d616; } .highlight-images { img { .highlight; @media screen and (min-width:750px) { .highlight; } } } .sizeParent { .sameHeightAsParent { //used on js } } .image-overlay-container { position: relative; img { display: block; } .image-overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; opacity: 0; transition: .5s ease; background-color: #008CBA; vertical-align: bottom; } &:hover .image-overlay { opacity: 0.2; } } /** * The top bar (overriding bootstrap) */ .navbar { position:fixed; width:100%; border-radius: 0; z-index: 10; border:none; background-color: #21211f; .navbar-brand { padding: 5px 15px; & > img { width: 40px; } } } /** * The top bar */ @header-height: 60px; .header-margin-helper { padding-bottom: @header-height; } .header { position:fixed; width: 100%; top:0; z-index:10; .bar { height: @header-height; line-height: @header-height; background-color: #21211f; overflow: hidden; @media screen and (max-width:750px) { height:auto; } .margin { width: @content-width; max-width: 90%; margin-left: auto; margin-right: auto; overflow: hidden; } /** *The long hat house icon */ .icon { a#longhathouse { background-image: url('/images/logo_small.png'); } a#facebook { background-image: url('/images/facebook.png'); } a#twitter { background-image: url('/images/twitter.png'); } a#linkedin { background-image: url('/images/linkedin.png'); } a#dropdown { background-image: url('/images/menu_icon.png'); cursor:pointer; z-index:20; } a { width: 50px; height: @header-height; background-repeat: no-repeat; background-position: center; background-size: contain; display:block; transition: border-top-width 0.3s; border: transparent solid 0px; &:hover { border-top-width: 2px; } } } .mini { a { width: 35px; } } } .element { transition: height 1s, line-height 1s, opacity 0.75s; display:inline-block; vertical-align:middle; line-height: @header-height; padding: 0 10px; a { transition: color 0.25s; &:hover { color: #fff; } } } /** * For dropdown, the state of everything when lower than 750px changes. */ .dropdown { position:inherit; @media screen and (max-width:750px) /*Dropdown only does anything if it's on mobile. Or else it's just a regular div*/ { /*This is the dropdown-jointer. What is does is everything in it behaves like a single element, with everything in it centered.*/ .dropdown-jointer { width:100%; line-height:@header-height; text-align:center; height:0; overflow:hidden; transition: height 1s; & > * { float:none!important; display:inline-block; } } .element { text-align:center; opacity:0; height:0px; line-height:20px; } .option { width:100%; margin:auto; height:0px; } .icon { display:inline-block; padding-bottom:@header-height; } &-shown { text-align:center; .dropdown-jointer { height:inherit; } .element { /*text-align:center;*/ opacity:1; height:@header-height * 0.75; line-height:@header-height * 0.75; } } } } .mobile-only { display:none; @media screen and (max-width:750px) { display:inherit; } } .left { float:left; } .right { float:right; } } /** * Inside a content div */ .coloredBg { background-color: rgba(255,255,255,0.05); } .content-max-borders { width:@content-width; max-width:100%; margin-right:auto; margin-left:auto; img { max-width:100%; height:auto; } } .content-text { .content-max-borders; max-width:90%; margin-top:0.6cm; margin-bottom:0.6cm; padding: 1em; font-size:1.1em; @media screen { @media (max-width:700px) { font-size: 1.5em; } } .secret { margin: 40px; font-size: 0.5em; color: #888; } } .multiple-images { text-align: center; margin-left: auto; margin-right: auto; img { display: inline-block; margin-bottom: 0.5cm; margin-left: 0.25cm; margin-right: 0.25cm; max-height: 10cm; max-width: 100%; } ul { li { display: inline-block; span { padding-bottom: 0.25cm; display: block; width: 100%; } padding-bottom: 0.25cm; } } } .content-list { @media screen and (max-width:700px) { font-size: 0.6em; } } .title { text-align:center; margin-left:auto; margin-right:auto; width: @content-width; max-width: 80%; margin-top:80px; .size-3em { font-size: 3em; } h1 { font-size: 4em; } h2 { font-size: 2em; } h3 { font-size: 1.2em; } } .spaced { margin-top: 15px; margin-bottom: 15px; @media screen and (max-width:700px) { margin-top: 30px; margin-bottom: 30px; } } .awards { width: @content-width; max-width: 80%; margin-top: 1.5cm; margin-bottom: 1.5cm; margin-left: auto; margin-right: auto; // For positioning display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ display: -ms-flexbox; /* TWEENER - IE 10 */ display: -webkit-flex; /* NEW - Chrome */ display: flex; display: grid; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; .award-line { display: inline-flex; } .award { display: -webkit-inline-block; display: inline-block; text-transform: uppercase; text-align: center; margin: 10px 10px; @award-width: 140px; @award-height: 100px; @award-image-width: 222 * @award-height / 507; width: @award-width + @award-image-width * 2; @media screen and (max-width:700px) { width: (@award-width + @award-image-width * 2) * 0.5; } .text { h3 { font-size: 1.5em; @media screen and (max-width:700px) { margin-top: 1px; } } h4 { font-size: 0.9em; margin: 0 30px; } position: absolute; width: @award-width + @award-image-width * 2; @media screen and (max-width:700px) { width: (@award-width + @award-image-width * 2) * 0.5; } } .text-separator { float: left; width: @award-width; @media screen and (max-width:700px) { width: (@award-width) * 0.5; } } .vertical-separator { width: 50%; height: 1px; margin: 10px auto; border-radius: 100px; background-color: @text-color; @media screen and (max-width:700px) { display: none; } } img { float: left; height: @award-height; background-size: contain; background-repeat: repeat-y; @media screen and (max-width:700px) { height: @award-height * 0.5; } } img.inverted { float: right; -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; } } } /** *About the single-game section */ .single-game { @media screen and (max-width:700px) { font-size: 0.6em; } .banner { background-color: darkgray; background-position: center center; background-size: cover; width: 100%; height: 500px; position: relative; text-align: center; @media screen and (max-width:700px) { height: inherit; } .video { /*display:inline-block;*/ margin: auto; width: 90%; position: relative; max-width: 560px; max-height: 315px; top: 10%; padding-bottom: 315px; /* 16:9 */ padding-top: 25px; height: 0; @media screen and (max-width:700px) { max-width: 320px; top: 10px; padding-bottom: 180px; } iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #111; } } .glued-bottom { position: absolute; bottom: 10px; @media screen and (max-width:700px) { position: static; margin-top: 10px; padding: 10px; } } } .download-badges { margin: auto; text-align: center; width: 100%; color: #eeeeee; & > * { display: inline-block; } & > h3 { font-size: 1.3em; text-align: center; width: 100%; align-self: center; } & > a { & > img { max-height: 50px; width: auto; position: relative; transition: all 0.25s ease-in-out; padding-left: 0.35em; padding-right: 0.35em; } &:hover { text-shadow: 0 0 0.1em black; img { top: 2px; } } } @media screen and (min-width:450px) { width: 100%; & > * { /*margin-left:10px;*/ } & > *:first-child { /*margin-left:0;*/ } } @media screen and (max-width:450px) { & > * { clear: both; margin-top: 10px; } } } /*For the images to be better aligned. They have to be before the divs where the screenshots in the games are.*/ .helper { display: inline-block; height: 100%; vertical-align: middle; } .side-image { width: 100%; min-width: 100px; //height: auto; //max-height: 100px; margin: auto; text-align: center; vertical-align: middle; & > img, & > a > img { display: inline-block; width: 100%; vertical-align: middle; object-fit: cover; //height: fit-content; } } .humble-widget { iframe { display: block; margin: 50px auto; max-width: 90%; } } .subscribe { text-align: center; * { @media screen and (max-width:991px) { overflow: hidden; } } h1 { margin-bottom: 50px; .indicates-required { font-size: small; opacity: 0.5; } } /*Overwrite mc-label*/ label { clear: none; width: none; } .big.button { display: block; margin-top: 15px; margin-bottom: 30px; } .clear { padding-top: 10px; padding-bottom: 10px; } } .credits { p { margin-top: 20px; } } .press { text-align: center; .quote { p:first-child { margin-top: 20px; margin-bottom: 0.1cm; } p:nth-child(2) { margin-top: 0.1cm; font-size: 0.8em; } a { font-size: 1.1em; text-shadow: 0 0 0.5em gray; } } } } /** * About the games' portfolio */ .portfolio-list { a { cursor:default; &:hover { color:#fff; cursor:normal; } } } .portfolio-game { transition: outline 0.25s ease-in-out, text-shadow 0.25s ease-in-out; padding: 20px; margin-bottom: 50px; position:relative; outline: 1px solid darkgray; text-shadow: 0 0 0.2em #ccc; &:hover { cursor:pointer; outline: 0.5em solid darkgray; text-shadow: 2px 2px 0.1em #222; color: white; .background { opacity:0.9; background-position: 50% 55%; } } .background { position: absolute; left:0px; top:0px; z-index:-1; width: 100%; height: 100%; opacity: 0.25; background-size:cover; background-position:center; transition: opacity 0.25s, background-position 0.25s; } } .landing-image { padding-top: 5%; margin-bottom: 30px; text-align: center; img { width: auto; max-width: 100%; max-height: 75%; } p { margin-bottom: 20px; margin-top: 40px; } } .single-image{ } .main-content { .content-text; padding:0; margin-top:0; margin-bottom:0; .menu-outer { float:left; position:relative; left:47%; } .menu-inner { float:left; position:relative; left:-50%; } .links { list-style-type: none; margin-top:20px; margin-bottom:20px; margin-right:auto; margin-left:auto; text-align:center; li { float:left; @media screen { @media (max-width: 600px) { float:none; margin-bottom: 20px; } } a { margin:20px; text-shadow: 0 0 0.2em #ccc; font-size: 2em; transition: text-shadow 0.5s, color 0.5s; &:hover { color: #fff; text-shadow: 0 0 0.2em #87F, 0 0 0.4em #fff; } } } } .outer-social { width: 100%; float:left; margin-top:50px; } .social { display:table; margin: 0 auto; img { margin: 5px; width: 2em; height: 2em; transition: box-shadow 0.5s; &:hover { box-shadow: 0 0 0.2em #87F, 0 0 0.4em #fff; } } } } /** * For ANY Forms in our site */ form { label,input,select { float:left; margin-top:5px; margin-bottom:5px; padding: 5px; width: 220px; } label { clear:left; width:120px; text-align:right; padding-right: 20px; font-weight: inherit; } label.message { width: 100%; text-align:left; } input,select { border:1px transparent solid; background-color: rgba(255,255,255,0.2); } select>option { background-color: @background-color; } input[type="submit"] { background-color:darkorange; padding: 10px; padding-left: 60px; padding-right: 60px; color:black; margin:auto; display:block; float:none; width:inherit; border-radius:3px; border-bottom: 3px solid brown; transition: all 0.1s ease-in-out; &:hover { background-color:orange; color:inherit; } } textarea { border:none; padding: 5px; background-color: rgba(255,255,255,0.2); width:100%; min-height: 200px; } }