@font-face {
	font-family: CenturyGothic;
	src: url("../font/CenturyGothicRegular.ttf");
}

* {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: #EFEFEF;
    color: #383D44;
    font-family: CenturyGothic, sans-serif;
}

a {
    text-decoration: none;
}

#mobile-content {
    display: none;
}

.no-select, #language-selector {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#language-selector {
    position: absolute;
    top: 0.6vw;
    right: 0.8vw;
    font-size: 0.9vw;
    color: #EFEFEF;
}

.link-text {
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
}

.link-text:active {
    transform: scale(0.9);
}

.link-text-selected {
    display: inline-block;
    font-weight: bold;
}

body:lang(hu) .lang-en,
body:lang(en) .lang-hu {
    display: none;
}

#left-panel {
    position: relative;
    float: left;
    width: 60%;
    height: 100%;
}

#left-content {
    position: absolute;
    margin: auto;
    width: 50vw;
    height: 50vw; /* (width * h / w)  */
    max-height: 90vh;
    max-width: 90vh; /* (max-height * w / h) */

    top:0;bottom:0; /* vertical center */
    left:0;right:0; /* horizontal center */
}

.left-content-img {
    width: 100%;
    height: 100%;
}

#yt-video-desktop {
    position: absolute;
    margin: auto;
    width: 50vw;
    height: 20.833vw; /* (width * 1600 / 3840) */
    max-height: 37.5vh; /* (height / #left-content:height * #left-content:max-height) */
    max-width: 90vh; /* (max-height * w / h) */
    background-color: black;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#right-panel {
    display: flex;
    flex-direction: column;
    float: left;
    width: 40%;
    height: 100%;
    background-color: black;

    box-shadow: 0 0 8px 2px #2c2c2c;
    -webkit-box-shadow: 0 0 8px 2px #2c2c2c;
    -moz-box-shadow: 0 0 8px 2px #2c2c2c;
}

#right-img-wrapper {
    position: relative;
    flex-grow: 1;
}

#right-img-wrapper > img {
    position: absolute;
    object-fit: contain;
    width: 100%;
    height: 100%;
    transition: opacity 1s linear;
}

#footer-row-desktop {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    background-color: black;
    color: white;
    text-align: left;
}

#footer-wrapper-desktop {
    width: 20vw;
    margin-bottom: 0.8vw;
    /*width: 50vw;*/
    /*margin-bottom: 2vw;*/
}

#contacts-desktop {
    margin-bottom: 1.2vw;
    /*margin-bottom: 3vw;*/
}

#contacts-desktop > h1 {
    font-weight: normal;
    font-size: 1.5vw;
    /*font-weight: normal;*/
    /*font-size: 3.8vw;*/
}

#contacts-desktop li {
    margin-left: 1.6vw;
    font-size: 0.9vw;
    line-height: 1.4;
    /*margin-left: 4vw;*/
    /*font-size: 2.3vw;*/
    /*line-height: 1.4;*/
}

#contacts-desktop a {
    color: white;
}

#copyright-desktop {
    font-size: 0.6vw;
    /*font-size: 1.5vw;*/
}

#footer-logo-desktop {
    height: 8vw;
    /*height: 20vw;*/
}

/*********************************\
 *    Mobile view overrides      *
\*********************************/

body.mobile-view #left-panel {
    display: none;
}

body.mobile-view #right-panel {
    display: none;
}

body.mobile-view {
    height: initial;
    overflow-y: initial;
}

body.mobile-view #language-selector {
    top: 0;
    right: 1.5em;
    font-size: 2.6vw;
    color: initial;
}

body.mobile-view #mobile-content {
    display: initial;
    text-align: center;
}

body.mobile-view #title-row {
    display: flex;
    justify-content: center;
    position: relative;
    height: 28vw;
    margin: 3vw auto -0.2vw;
    text-align: center;
}

body.mobile-view #main-logo {
    float: left;
    height: 100%;
    transform: translate(3vw);
}

body.mobile-view #title-column {
    display: table;
    float: left;
    height: 100%;
    width: 50vw;
}

body.mobile-view #title-wrapper {
    display: table-cell;
    vertical-align: bottom;
}

body.mobile-view #title {
    font-size: 3.8vw;
    line-height: 1.1;
    margin-bottom: 5vw;
}

body.mobile-view #promo-notice {
    font-size: 2.3vw;
    padding-bottom: 0.5vw;
}

body.mobile-view #yt-video {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 41.667vw; /* (width * 1600 / 3840) */
    background-color: black;
}

body.mobile-view #skills {
    width: 32vw;
    margin-left: 15vw;
    margin-bottom: 10vw;
    margin-top: 8vw;
    text-align: left;
}

body.mobile-view #skills > div {
    margin-top: 4vw;
}

body.mobile-view #skills h1 {
    position: relative;
    font-weight: normal;
    font-size: 4vw;
    line-height: 1.3;
    padding-left: 0.8vw;
    margin-bottom: 1vw;
}

body.mobile-view #skills h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.1vw;
    width: 100%;
    background-color: #2c2c2c;
}

body.mobile-view #skills p {
    margin-left: 3vw;
    font-size: 2.3vw;
}

body.mobile-view #camera-img {
    display: block;
    width: 100%;
    margin-bottom: -0.2vw;
}

body.mobile-view #footer-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    background-color: black;
    color: white;
    text-align: left;
}

body.mobile-view #footer-wrapper {
    width: 50vw;
    margin-bottom: 2vw;
}

body.mobile-view #contacts {
    margin-bottom: 3vw;
}

body.mobile-view #contacts > h1 {
    font-weight: normal;
    font-size: 3.8vw;
}

body.mobile-view #contacts li {
    margin-left: 4vw;
    font-size: 2.3vw;
    line-height: 1.4;
}

body.mobile-view #contacts a {
    color: white;
}

body.mobile-view #copyright {
    font-size: 1.5vw;
}

body.mobile-view #footer-logo {
    height: 20vw;
}
