/* ОБНУЛЕНИЕ */

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

ul,
ol,
li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

html,
body {
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  text-align: center;
  background-color: #6a5ae0;
}

.wrapper {
  max-width: 430px;
  min-width: 320px;
  margin: 0 auto;
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #6a5ae0;
}

/* BEM ================================ */
body {
  background-color: #6a5ae0;
}

.button {
  padding: 8px 0;
  width: 100%;
  padding: 8px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 24px;
  color: white;
  background-color: #6a5ae0;
}

/* HEADER ============================= */

.header {
  margin-bottom: 32px;
  padding: 0 16px;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
}

/* MAIN =============================== */

.main {
  padding: 32px 16px 16px;
  overflow: hidden;
  border-radius: 16px;
  background-color: #ffffff;
}

/* DICES ============================== */

.dices > * {
  margin-bottom: 16px;
}

.dices > *:last-child {
  margin-bottom: 0;
}

.dices__card {
  width: 100%;
  padding: 16px;
  background-color: #e8e5fa;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
}

.card__cover {
  width: 30%;
}

.card__content {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__title {
  margin-bottom: 16px;
  font-weight: bold;
}

.card__cover > img {
  width: 100%;
}

.selected {
  background-color: #5bd7bc;
}

/* ROLL =============================== */

.roll {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roll__result {
  width: 50%;
  padding-bottom: 32px;
}

.roll__result > img {
  width: 100%;
}

/* .header {
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header__text {
  font-weight: bold;
  font-size: 32px;
  color: white;
}

.main {
  background-color: white;
  margin: 16px;
  padding: 8px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card {
  flex: 1 1 auto;
  width: 100%;
  margin: 8px 0;
  padding: 16px;
  background-color: #e8e5fa;
  border-radius: 16px;
  display: flex;
}

.card__image {
  background-color: white;
  width: 20%;
  border-radius: 16px;
  border: solid #bfd2f2;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  width: 100%;
  padding: 4px 16px;
}

.card__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card__text-header {
  height: 50%;
  font-size: 180%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__text-description {
  height: 50%;
  font-size: 120%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active {
  background-color: #5bd7bc;
}

.button {
  width: 100%;
  margin: 8px 0;
  background-color: #6a5ae0;
  border-radius: 16px;
  height: 48px;
  color: white;
  font-size: 24px;
}

.roll {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 32px);
  height: calc(100% - 128px);
  margin: 112px 16px 16px 16px;
  z-index: 100;
  background-color: white;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
}

.roll__dice {
  flex: 1 1 auto;
  padding: 8px 0 8px 0;
  width: 100%;
  height: calc((100% - 64px) / 2);
}

.roll__dice img {
  height: 100%;
}

.hidden {
  display: none;
} */
