.form [type="checkbox"] {
  display: none;
}

.form [type="checkbox"] + .fakeCheckbox {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
}
.form [type="checkbox"]:checked + .fakeCheckbox {
  background: url(../images/imgCheck.png) no-repeat;
  background-size: 100% auto;
}

#select-friends {
  position: fixed;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  text-align: center;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
#select-friends .tt {
  font-size: 24px;
  position: relative;
  top: 30%;
}
#select-friends ul, 
#select-friends li {
  margin: 0;
  padding: 0;
}

#select-friends ul {
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  top: 40%;
  text-align: center;
  overflow: hidden;
}
#select-friends .item {
  width: 30%;
  display: inline-block;
  max-width: 120px;
  font-size: 16px;
  vertical-align: top;
}

#select-friends .item img {
  display: block; 
  box-sizing: border-box;
  width: 90%;
  border-radius: 50% 50%;
  border: 3px solid #4af64c;
}
body {
  background: #1a0d1f url(../images/background.jpg) center center no-repeat;
}
body .outbox .city li a.active {
  background: rgba(0, 0, 0, 0.2) url(../images/btnChooseLocation.png) center center no-repeat;
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
  background-size: auto 100%;
}

body .outbox .city .popupFbMask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
}
body .outbox .city .popupFb {
  position: relative;
  top: 40%;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}
body .outbox .city .popupFb img {
  display: block;
  width: 100%;
}

body .outbox .city .popupFb .btnFbCancel {
  display: block;
  position: absolute;
  width: 12%;
  padding-top: 12%;
  right: 3.2%;
  top: 5.8%;
}

body .outbox .city .popupFb .btnFbPromission {
  display: block;
  position: absolute;
  width: 100%;
  padding-top: 35%;
  bottom: 8.5%;
  left: 0;
}
body .outbox .city .closeUp {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
}

body .outbox .city .preview {
  position: absolute;
  top: 20%;
  width: 100%;
}
body .outbox .city .preview a {
  position: absolute;
  bottom: 16%;
  display: block;
  width: 42%;
}
body .outbox .city .preview .btnReset {
  left: 5.5%;
}
body .outbox .city .preview .btnSuccess {
  right: 5.5%;
}
body .outbox .city .person {
  position: absolute;
  width: 16%;
}
body .outbox .city .person:nth-of-type(1) {
  left: 27%;
  top: 20%;
}
body .outbox .city .person:nth-of-type(2) {
  right: 24%;
  top: 17%;
}
body .outbox .city .person:nth-of-type(3) {
  left: 30%;
  top: 44%;
}
body .outbox .city .person:nth-of-type(4) {
  right: 19%;
  top: 46%;
}

body .outbox .city .person img {
  border-radius: 50% 50%;
  display: block;
  border: 2px solid #4af64c; 
  width: 100%;
  background: #0f5;
}
body .outbox .city .person span {
  display: block;
  white-space: nowrap;
}
body .outbox .city .closeUp .bgImg {
  display: block;
  width: 100%;
}
body .outbox .renew .btnRenew {
  display: block;
  position: absolute;
  width: 68%;
  padding-top: 12%;
  top: 67.8%;
  left: 16%;
}

.closedFriends {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: rgba(0, 0, 0, .7);
}
.closedFriends .list {
  position: absolute;
  background: rgba(0, 0, 0, .8);
  width: 100%;
  background: url(../images/bgFriends.png) 0 0 no-repeat;
  background-size: 100% auto;
  padding-top: 200%;
  top: 0;
}
.closedFriends ul {
  height: 37%;
  overflow: auto;
  width: 78%;
  position: absolute;
  left: 11%;
  top: 13%;
}
.closedFriends li {
  overflow: hidden;
  padding: .4em 0;
  font-size: 110%;
  padding-left: 11%;
  background: url(../images/checkbox.png) left center no-repeat;
  background-size: 8% auto;
}
.closedFriends li.active {
  background: url(../images/check.png) left center no-repeat,
              url(../images/checkbox.png) left center no-repeat;
  background-size: 8% auto,
                   8% auto;
}
.closedFriends li .avatar {
  width: 19%;
  float: left;
  border-radius: 50% 50%;
  border: 2px solid #4af64c;
}
.closedFriends li .name,
.closedFriends li .close {
  margin-left: 24%;
  white-space: nowrap;
}
.closedFriends li .heart {
  width: 9%;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -.1em;
  margin-left: .1em;
}
.closedFriends .btnConfirm {
  position: absolute;
  display: block;
  width: 42.5%;
  padding-top: 12%;
  top: 55.4%;
  left: 30.2%;
}
/* .page.upload {
  display: block !important;
  z-index: 999;
}
*/
.page.upload .trigger {
  position: absolute;
  width: 90%;
  padding-top: 50.6%;
  left: 5%;
  top: 17%;
}
.page.upload .trigger .avatar {
  display: block;
  position: absolute;
  width: 14.8%;
  padding-top: 14.8%;
}

.page.upload .trigger [data-name="pos1"] {
  left: 27.5%;
  top: 9%;
}
.page.upload .trigger [data-name="pos2"] {
  right: 21.5%;
  top: 1.5%;
}
.page.upload .trigger [data-name="pos3"] {
  right: 17.5%; 
  top: 62%;
}
/*
.page.upload .trigger [data-name="pos4"] {
  left: 32.5%;
  top: 58%;
}
*/
.page.upload .trigger .avatar img {
  display: block;
  width: 100%;
  border-radius: 50% 50%;
  border: 2px solid #4af64c;
  position: absolute;
  top: 0;
  left: 0;
}

.page.upload .trigger .avatar .nickname {
  position: absolute;
  bottom: -1.5em;
  color: #fff;
  width: 10em;
  left: 50%;
  margin-left: -5em;
  text-align: center;
  font-size: 97.5%;
  text-shadow: 0 0 3px rgba(0, 0, 0, .4), 0 0 6px rgba(0, 0, 0, 1);
}
.page.upload .fillin {
  position: absolute;
  top: 47%;
  width: 100%;
  background: url(../images/adjustPhoto.png) no-repeat;
  background-size: 100% auto;
  height: 64vw;
  transition: opacity .2s ease-out;
}
.page.upload .fillin.invisible {
  z-index: -10;
  opacity: 0;
  visibility: hidden;
}
.page.upload .fillin .confirm {
  display: block;
  margin: 0 auto;
  width: 44%;
}

.page.upload .fillin .cropper {
  width: 90%;
  margin: 1% auto 0 auto;
  position: relative;
  overflow: hidden;
}
.page.upload .fillin .cropper .circleMask {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: url(../images/maskAvatar.png) no-repeat; 
  background-size: 100% auto;
  z-index: 10;
  pointer-events: none;
}
.page.upload .fillin #canvasDraw {
  width: 100%;
  display: block;
}
.page.upload .fillin [name="nickname"] {
  height: 1.5em;
  margin: 3% 0 0 10%;
  width: 56%;
  background: none;
  border: 0;
  font-size: 125%;
  color: #fff;
}
.page.upload .fillin #uploadConfirm {
  display: block;
  width: 21%;
  padding-top: 11%;
  position: absolute;
  right: 4.5%;
  top: 79%;
}

.page.upload .buttons img {
  display: inline-block;
  width: 43.5%;
}

.page.upload .buttons {
  position: absolute;
  text-align: center;
  top: 66.5%; 
  width: 100%;
  opacity: 0;
  z-index: -1;
  -webkit-transform: translateY(50vh);
  -webkit-transition: opacity .4s ease-out, transform .4s ease-out;
  transform: translateY(50vh);
  transition: opacity .4s ease-out, transform .4s ease-out;

}
.page.upload .buttons.show {
  z-index: 3;
  opacity: 1;
  transform: translateY(0);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #fff;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #fff;
}
#filmIntro {
  opacity: 0;
  z-index: 199;
  -webkit-transform: scale(0);
  -webkit-transform-origin: 100% 50%;
  -webkit-transition: all .35s ease-in;
  transform: scale(0);
  transform-origin: 100% 50%;
  transition: all .35s ease-in;
}
#filmIntro.fadeIn {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}
#filmIntro .btnClose {
  width: 11%;
  top: 3%;
  right: 4%;
  position: absolute;
  z-index: 99;
}
#winner {
  position: absolute; 
  left: 0;
  top: 0;
  z-index: 9999; 
  background: rgba(0, 0, 0, .7);
}
#winner .btnClose {
  position: absolute;
  width: 9%;
  padding-top: 9%;
  right: 7.8%;
  top: 2.8%;
}
