/* ==========================================================================
   HungryVovka's style
   ========================================================================== */

/* Основные стили */
* {
	box-sizing: inherit;
}
  
html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}
  
body {
	margin: 0 auto;
	width: 100vw;
	min-height: 100vh;
	font-size: 18px;
	color: #fff;
	background-image: url('../img/jpg/home.jpg');
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-family: 'Neucha', cursive;
}

/* Стили для стартовой формы */

.choiceform{
	padding-top: 180px;
}

#expansions {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

#custom {
	width: 51.8%;
	margin-left: auto;
	margin-right: auto;
}

#random, #nohard, #noeasy, #easy, #hard, #staged, #build{
  text-align: center;
}

#build {
	margin-left: calc(0.251 * 100%);
}

/* Стили для выбора */

.special, #prelude .mythosname, .rumor {
	font-variant-caps: small-caps;
}

.rumor {
	font-weight: bold;
	font-style: italic;
}

/* Стили для игры */

.card .action {
	position: absolute;
	bottom: 10px;
	width: 90%;
	margin-left: 5%;
}

#score {
	font-size: 12pt;
}

.hidden {
	display: none;
}

.desc, #build, #play, #etc {
	display: none;
}

#srcb {
	display: inline-block;
}

#header {
	display: flex;
    justify-content: space-between;
    max-width: 1177px;
    margin: 0 auto;
    justify-items: center;
    padding-top: 38px;
}

#remdesc {
	padding-right: 20px;
	padding-left: 20px;
}

#but {
	display: flex;
	width: 300px;
}

#draw{
	background-color: rgba(255,255,255,0.01);
	border-color: rgba(255,255,255,0.01);
	border: none;
	border-radius: 10px;
}

.drawimg{
	border-radius: 10px;
}

table th {
	text-align: right;
}
table td {
	color: white;
	font-weight: bold;
	padding: 0 5px;
}
td.green {
	background: #10783d;
}
td.yellow {
	background: #b58b1d;
}
td.blue {
	background: #3372b5;
}

#custom-counts {
	display: none;
}

#custom-counts input {
	background: transparent;
	color: white;
	border: 0;
	max-width: 3em;
	font-size: 14pt;
}

/* Стили для карт */

#cards {
    justify-content: space-between;
	max-width: 1700px;
    margin-left: auto;
	margin-right: auto;
    justify-items: center;
    padding-top: 38px;
}

#cards .discarded {
	display: none;
}

#cards.showcards .discarded {
	display: inline-block;
	opacity: 0.6;
}

#cards + #hideshow::before {
	content: 'Show '
}

#cards.showcards + #hideshow::before {
	content: 'Hide '
}

.cardContainer {
	display: inline-block;
	position: relative;
	width: 275px;
	height: 435px;
	margin: 1px;
	padding-bottom: 0;
}

/* Стили при смене разрешения */

@media screen and (max-width: 848px) {
	.cardContainer {
		width: 50%;
		padding-bottom: 79.09%;
		height: 0;
		margin: 0;
	}

	footer{
		display: none;
	}
}


@media screen and (max-width: 570px) {
	.cardContainer {
		width: 100%;
		padding-bottom: 158.18%;
	}

	footer{
		display: none;
	}
}

/* Стили для конкретной карты */

.card {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	background-size: 100% 100%;
	border-radius: 10px;
}

.card .token {
	position: absolute;
	top: 0;
	width: 50px;
	height: 50px;
	background-size: 100% 100%;
}

.card .eldritch {
	right: 50px;
	background-image: url('eldritch.png');
}

.card .clue {
	left: 25px;
	background-image: url('clue.png');
}

.card .token p {
	color: white;
	text-align: center;
	margin-top: 8px;
	font: bold 30px serif;
	text-shadow:
		0 0 1px black,
		0 0 1px black,
		0 0 2px black,
		0 0 3px black;
}

.token .arrow {
	position: absolute;
	text-decoration: none;
	top: 15px;
	color: white;
	text-shadow:
		0 0 1px black,
		0 0 1px black,
		0 0 2px black,
		0 0 3px black;
}

.token .arrow.left {
	right: 55px;
}

.token .arrow.right {
	left: 55px;
}

.card .close {
	position: absolute;
	top: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	text-decoration: none;
	padding: 4px 4px 8px 10px;
	border-radius: 0 10px 0 80%;
	font-size: 9pt;
}

.discarded .card .close {
	display: none;
}

/* Links */

footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    height: 30px;
	margin-left: 100px;
}

.copyright {
  padding-top: 16px;
  font-size: 18px;
  margin-left: 400px;
  margin-top: -10px;
}

.links {
  display: flex;
  margin-bottom: 20px;
  margin-top: -60px;
}

.git {
  background-image: url(../img/png/github.png);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  margin-left: 135px;
  padding-top: 12px;
  padding-left: 60px;
}

.git a {
  color: #FFF;
  font-size: 22px;
  text-decoration: none;
}

.page-footer {
  display: flex;
}

/* Пока что на этом всё. */