@font-face {
    font-family: 'BPG Nino';
    src: url('../fonts/bpg-nino-medium-webfont.eot'); /* IE9 Compat Modes */
    src: url('../fonts/bpg-nino-medium-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/bpg-nino-medium-webfont.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/bpg-nino-medium-webfont.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/bpg-nino-medium-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/bpg-nino-medium-webfont.svg#bpg_nino_mediumregular') format('svg'); /* Legacy iOS */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BPG Nino';
}

body {
    background: #1a2146;
}

.logo {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1;
    background-color: #3f51b5;
    color: white;
    text-decoration: unset;
    padding: 5px 10px;
    font-size: 22px;
    font-family:cursive;
    border-radius: 8px;
    transition: .4s;
    user-select: none;
}

.logo:hover {
    box-shadow: 2px 2px 8px #333;
}

.logo.rules-btn {
    cursor: pointer;
    left: 180px;
    background-color: #406f3a;
}

.version {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Rules */

.rules-cont {
    position: relative;
    
}

#rules {
    width: 290px;
    position: absolute;
    top: 10px;
    transform: translateX(-35%);
    padding: 5px;
    font-size: 14px;
    background-color: #fff;
    color: black;
    border-radius: 10px;
    display: none;
}

#rules.active {
    display: block;
}

#rules .lose-impos {
    font-weight: bold;
    color: orangered;
    margin-bottom: 5px;
}

.space {
    position: relative;
    height: 700px;
    background: url('../img/11206862_19871696.jpg');
    background-size: cover;
}

/* screen */

#screenI {
    width: 430px;
    height: 218px;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 400px;
    background: white;
    padding: 10px;
    border: 10px solid #333;
    overflow: auto;
}

#screenI .head {
    display: flex;
    justify-content: space-between;
}

#screenI .head img {
    width: 40px;
    height: 40px;
}

#screenI p {
    font-size: 16px;
}

#screenI p button {
    cursor: pointer;
    padding: 3px 6px;
    margin: 5px;
}

.css-styles .card img {
    width: 100%;
}

#man {
    width: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: .4s;
    filter: invert(23%) sepia(50%) saturate(894%) hue-rotate(230deg) brightness(93%) contrast(86%);
    /* #5e3b7f */
}

#html,
#css,
#js,
#bt,
#sass,
#git,
#vue,
#react,
#ang {
    position: absolute;
    width: 100px;
}

#html {
    left: 100px;
    bottom: 0;
}

#css {
    left: 200px;
    bottom: 100px;
}

#js {
    left: 300px;
    bottom: 200px;
}

#bt {
    left: 400px;
    bottom: 100px;
}

#sass {
    left: 500px;
    bottom: 100px;
}

#git {
    left: 600px;
    bottom: 200px;
}

#vue {
    left: 800px;
    bottom: 100px;
}

#react {
    left: 900px;
    bottom: 300px;
}

#ang {
    left: 1000px;
    bottom: 100px;
}