@font-face {
    font-family: Nunito;
    src: url("../assets/Nunito-SemiBold.ttf");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Druk Wide Cyr";
    src: url("../assets/Druk_Wide_Cyr.ttf");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --white-color: #FFFFFF;
    --dark-blue-color: #001F30;
    --light-gray-color: #efefef;
}

* {
    box-sizing: border-box;
    font-family: "Druk Wide Cyr", sans-serif;
}

body {
    margin: 0;
    color: var(--white-color);
}

.main {
    min-height: 100vh;
    background-image: url("./../assets/img/background-img.webp");
    background-size: cover;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 40px 0 20px;
}

.header > h1 {
    margin: 0;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 700;
}

.roll-border1 {
    position: absolute;
    z-index: 1;
    width: 864px;
    height: 864px;
    top: calc(50% - 432px);
    left: calc(50% - 432px);
    border: 32px solid var(--dark-blue-color);
    border-radius: 100%;
    box-shadow: inset 0 0 40px black;
}

.roll-border2 {
    position: absolute;
    width: 896px;
    height: 896px;
    top: calc(50% - 448px);
    left: calc(50% - 448px);
    border: 16px solid var(--white-color);
    border-radius: 100%;
}

.add-button {
    position: absolute;
    width: 300px;
    height: 51px;
    border-radius: 13px;
    font-size: 20px;
    line-height: 51px;
    text-align: center;
    text-transform: uppercase;
    bottom: 42px;
    left: calc(50% - 150px);
    background-color: var(--white-color);
    color: var(--dark-blue-color);
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;

    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.add-button:hover {
    background-color: transparent;
    border-color: var(--white-color);
    color: var(--white-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.center-container {
    position: absolute;
    top: calc(50% - 86px);
    left: calc(50% - 78px);
    z-index: 2;
}

.center-img {
    width: 156px;
    height: 173px;
}

.roll {
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 400px);
}

.img-container {
    display: flex;
}

.team-grid {
    width: 600px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 48px 20px;
    border: 1px solid var(--white-color);
    border-radius: 16px;
}

.team-grid--left {
    left: 20px;
    top: 50%;
}

.team-grid--right {
    right: 20px;
    top: 50%;
}

.team-grid__item {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}
.team-grid__item > span {
    font-family: Nunito, sans-serif;
}

.team-grid__item + .team-grid__item {
    margin-top: 24px;
}

.team-grid__item__team {
    flex: 1;
    border-bottom: 1px solid var(--white-color);
    text-align: center;
}

.team-grid__item__vs {
    color: #04F06A;
}

.team-list {
    color: var(--white-color);
    display: flex;
    gap: 1rem;
    font-size: 18px;
    flex-wrap: wrap;
}

.roll-button {
    position: absolute;
    bottom: 42px;
    left: calc(50% - 120px);
    border-radius: 13px;
    height: 51px;
    width: 240px;
    background-color: #04F06A;
    border: 1px solid #04F06A;
    cursor: pointer;
    box-shadow: 2px 4px 30px 0 rgba(0, 0, 0, 0.1);
    color: var(--dark-blue-color);
    font-weight: 700;
    font-size: 20px;
    line-height: 51px;
    text-align: center;

    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.roll-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--white-color);
    color: var(--white-color);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal  {
    display: none;
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-inner {
    position: absolute;
    top: calc(50% - 150px);
    left: calc(50% - 300px);
    width: 600px;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.3));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 2px 4px 30px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    border: 1px solid var(--white-color);
    padding: 62px 20px;
}

.modal-inner--add-team {
    position: static;
}

.modal--add-team {
    justify-content: center;
    align-items: center;
}

.modal-inner__close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.modal-inner__add-team-input-wrapper {
    margin-top: 43px;
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.modal-inner__add-team-input-wrapper > label {
    font-size: 22px;
    text-transform: uppercase;
    font-family: Nunito, sans-serif;
}

.modal-inner__add-team-input-wrapper > input {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--white-color);
    padding: 0 0 4px 0;
    font-weight: 200;
    font-size: 18px;
    background-color: transparent;
    color: var(--white-color);

    outline: none;
    box-shadow: none;
    font-family: Nunito, sans-serif;
    flex: 1;
}

.icon-button {
    background-color: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.modal-inner__add-button {
    margin-top: 43px;
    width: 100%;
    height: 51px;
    border-radius: 13px;
    font-size: 20px;
    line-height: 51px;
    text-align: center;
    text-transform: uppercase;
    bottom: 42px;
    left: calc(50% - 150px);
    background-color: var(--white-color);
    color: var(--dark-blue-color);
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;

    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.modal-inner__add-button:hover {
    background-color: transparent;
    border-color: var(--white-color);
    color: var(--white-color);
}

.modal-inner--winner {
    background-color: #F6BD60;
}

.modal-inner > span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
}

.button-close {
    position: absolute;
    right: 24px;
    top: 24px;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: #F7EDE2;
}

.modal-inner > input::placeholder {
    color: #F7EDE2;
}

.button-add {
    background-color: #F6BD60;
    border: 0;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 24px;
    color: #F7EDE2;
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
}