/* Подключение шрифтов */
@font-face {
    font-family: 'Bristol';
    src: url('../fonts/Bristol.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

a {
    text-decoration: none;
}  
/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Sofia Sans Condensed', sans-serif;
    color: white;
    overflow: hidden;
    background-color:#3C2110
}

.fixed-background {
    position: absolute;
    width: 1920px; /* Фиксированная ширина */
    height: 1080px; /* Фиксированная высота */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1; /* Размещаем под адаптивным контентом */
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../img/bg.webp') no-repeat center center;
    background-size: auto;
}
.adaptive-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    z-index: 1;
}

header {
    height: 100px;
    display: flex;
    align-items: center;
    padding-left: 200px;
}

.logo {
    width: 90px;
    height: auto;
}

main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 150px 0;
}

.container {
    display: flex;
    justify-content: space-between;
    width: auto;
    margin-left: 200px;
}

.left-container {
    max-width: 600px;
}

.main-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    margin: 0 0 0px;
    text-transform: uppercase;
}

.sub-title {
    margin: 15px 0 25px;
    width: 640px;
}

.sub-title .part-1,
.sub-title .part-2,
.sub-title .part-3 {
    position: relative;
    color: transparent;
    background: linear-gradient(263.99deg, #B77C44 6.19%, #FEE5BB 23.86%, #BF854A 44.42%, #D4A46F 49.38%, #FCDFB3 61.41%, #C0864B 77.92%, #FBE8D4 96.8%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: none;
}

.sub-title .part-1::after,
.sub-title .part-2::after,
.sub-title .part-3::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.7);
}

.sub-title .part-1 {
    font-size: 68px;
    font-weight: 800;
    line-height: 50px;
    margin-right: 10px;
}

.sub-title .part-2 {
    font-size: 52px;
    font-weight: 800;
    line-height: 60px;
    margin-right: 10px;
}

.sub-title .part-3 {
    font-size: 96px;
    font-weight: 800;
    line-height: 100px;
}

.button-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer; /* Добавлено для корректной реакции на курсор */
}

.join-button {
    width: 188px;
    height: 53px;
    display: block;
    background: url('../img/btn.webp') no-repeat center center;
    border: none; /* Убираем обводку */
    outline: none; /* Убираем обводку при фокусе */
    cursor: pointer;
}

.join-button:hover {
    background: url('../img/btnh.webp') no-repeat center center;
}

.join-button:active {
    background: url('../img/btnp.webp') no-repeat center center;
}

.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 188px;
    transform: translate(-50%, -50%);
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 19px;
    color: #3C2110;
    text-align: center;
    text-transform: uppercase;
}

/* Стили для интерактивной доски */
.board {
    position: absolute;
    transform: perspective(1000px) rotatex(14deg) rotateY(330deg) rotateZ(-6deg);
}

.board-content {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-85%, 1%);
    text-align: center;
    color: white;
    font-family: 'Bristol', sans-serif;
}


.match-title {
    font-size: 36px;
    font-weight: 500;
    width: 900px;
    margin-bottom: 0px;
    margin-top: 43px;
    text-transform: uppercase;
}

.match-time {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 30px;
    margin-top: -15px;
    text-transform: uppercase;
}

.match-coefficients {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 14px;
    margin-top: -12px;
}

.match-comment {
    font-size: 28px;
    max-width: 370px;
    margin-left: 430px;
    text-align: left;
    font-weight: 400;
    line-height: 32px;
    margin-top: 40px;
    text-transform: uppercase;
}

#myCanvas {
  height:300px;
  width:100%;
  max-width:100%;
  min-width:800px;
  position:absolute;
  bottom:40px;
}

.form-container {
    position: absolute;
    top: 0;
    right: -335px;
    width: 500px;
    height: 100%;
    transition: right 0.5s ease-in-out;
    z-index: 100;
    
}

.form-container:hover,
.form-container.active {
    right: 0; /* При наведении или активации показывается полностью */
}

@media (min-width: 2000px) {
    .container {
        display: flex;
        justify-content: space-between;
        width: auto;
        margin-left: 100px;
    }
    header {
        height: 100px;
        display: flex;
        align-items: center;
        padding-left: 100px;
    }
}
@media (max-width: 1440px) and (max-height: 800px) {
    #myCanvas {
        height:300px;
        width:100%;
        max-width:100%;
        min-width:800px;
        position:absolute;
        bottom:0;
      }
    .background {
        background: url('../img/bg2.webp') no-repeat center center;
    }
    .fixed-background {
        width: 1440px; /* Фиксированная ширина */
        height: 800px; /* Фиксированная высота */
    }
    header {
        padding-left: 80px;
    }
    main {
        padding: 90px 0;
    }
    .container {
        margin-left: 80px;
    }
    .main-title {
        font-size: 24px;
        line-height: 29px;
    }
    .board-content {
        transform: translate(-77%, -4%);
    }
    .match-title {
        font-size: 30px;
        font-weight: 500;
        width: 900px;
        margin-bottom: 0px;
        margin-top: 62px;
        margin-left: 20px;
    }
    .match-time {
        font-size: 22px;
        font-weight: 400;
        margin-bottom: 30px;
        margin-top: -10px;
        text-transform: uppercase;
    }
    .match-coefficients {
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 14px;
        margin-top: -18px;
    }
    .match-comment {
        font-size: 20px;
        max-width: 264px;
        margin-left: 441px;
        text-align: left;
        font-weight: 400;
        line-height: 27px;
        margin-top: 23px;
        text-transform: uppercase;
    }
    .form-container {
        position: absolute;
        top: 0;
        right: -310px;
        width: 440px;
        height: 100%;
        transition: right 0.5s ease-in-out;
        z-index: 100;
        overflow: hidden;
    }
}

@media (max-width: 1280px) and (max-height: 1024px) {
    .container {
        display: flex;
        justify-content: space-between;
        width: auto;
        margin-left: 60px;
    }
    header {
        height: 100px;
        display: flex;
        align-items: center;
        padding-left: 60px;
    }
    .fixed-background {
        left: 50%;
    }
    .sub-title .part-1 {
        font-size: 48px;
        font-weight: 800;
        line-height: 35px;
        margin-right: 10px;
    }
    .sub-title .part-2 {
        font-size: 40px;
        font-weight: 800;
        line-height: 60px;
        margin-right: 10px;
    }
    .sub-title .part-3 {
        font-size: 80px;
        font-weight: 800;
        line-height: 70px;
    }
}
@media (max-width: 1024px) and (max-height: 768px) {
    .background {
        background: url('../img/bg3.webp') no-repeat center center;
    }
    header {
        padding-left: 40px;
    }
    .fixed-background {
        width: 1024px; /* Фиксированная ширина */
        height: 768px; /* Фиксированная высота */
    }
    .container {
        margin-left: 40px;
    }
    .sub-title .part-1 {
        font-size: 58px;
        font-weight: 800;
        line-height: 46px;
        margin-right: 10px;
    }
    .sub-title .part-2 {
        font-size: 58px;
        font-weight: 800;
        line-height: 50px;
        margin-right: 10px;
    }
    .sub-title .part-3 {
        font-size: 58px;
        font-weight: 800;
        line-height: 60px;
    }
    .sub-title {
        margin: 15px 0 15px;
        width: 640px;
    }
    .board-content {
        transform: translate(-73%, -2%);
    }
    .match-title {
        font-size: 24px;
        font-weight: 500;
        width: 900px;
        margin-bottom: 0px;
        margin-top: 80px;
    }
    .match-time {
        font-size: 18px;
        font-weight: 400;
        margin-bottom: 30px;
        margin-top: -7px;
        text-transform: uppercase;
    }
    .match-coefficients {
        font-size: 19px;
        font-weight: 500;
        margin-bottom: 14px;
        margin-top: -14px;
    }
    .match-comment {
        font-size: 16px;
        max-width: 202px;
        margin-left: 437px;
        text-align: left;
        font-weight: 400;
        line-height: 24px;
        margin-top: 24px;
        text-transform: uppercase;
    }
}

@media (max-width: 860px) {
    #myCanvas {
        height: 300px;
        width: 100%;
        max-width: 100%;
        min-width: 800px;
        position: absolute;
        bottom: 0px;
    }
    header {
        padding-left: 40px;
    }
    main {
        padding: 50px 0;
    }
    .background {
        background: url('../img/bg8.webp') no-repeat center center;
    }
    .fixed-background {
        width: 100vw; /* Фиксированная ширина */
        height: 1024px; /* Фиксированная высота */
        overflow: hidden;
    }
    .container {
        margin-left: 40px;
    }
    .main-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 32px;
        margin: 0 0 0px;
        text-transform: uppercase;
    }
    .sub-title .part-1 {
        font-size: 48px;
        font-weight: 800;
        line-height: 46px;
        margin-right: 10px;
    }
    .sub-title .part-2 {
        font-size: 48px;
        font-weight: 800;
        line-height: 50px;
        margin-right: 10px;
    }
    .sub-title .part-3 {
        font-size: 48px;
        font-weight: 800;
        line-height: 48px;
    }
    .sub-title {
        margin: 5px 0 5px;
        width: 640px;
    }
    
    .match-title {
        font-size: 24px;
        font-weight: 500;
        width: 500px;
        margin-bottom: 0px;
        margin-top: 88px;
    }
    .match-time {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 27px;
        margin-top: -5px;
        text-transform: uppercase;
    }
    .match-coefficients {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 14px;
        margin-top: -17px;
    }
    .match-comment {
        font-size: 14px;
        max-width: 160px;
        margin-left: 231px;
        text-align: left;
        font-weight: 400;
        line-height: 18px;
        margin-top: 22px;
        text-transform: uppercase;
    }
    .form-container {
        position: absolute;
        right: 0;
        width: 100%;
        height: 1000px;
        transition: right 0.5s ease-in-out;
        z-index: 100;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-bottom: 20px;
    }
    body {
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #3C2110;
    }
    .board {
        position: absolute;
        transform: perspective(1000px) rotatex(14deg) rotateY(324deg) rotateZ(-4deg);
    }
    .board-content {
        transform: translate(-72%, -15%);
    }
}

@media (max-width: 768px) {
    #myCanvas {
        height: 300px;
        width: 100%;
        max-width: 100%;
        min-width: 800px;
        position: absolute;
        bottom: 0px;
    }
    header {
        padding-left: 40px;
    }
    main {
        padding: 50px 0;
    }
    .background {
        background: url('../img/bg4.webp') no-repeat center center;
    }
    .fixed-background {
        width: 100vw; /* Фиксированная ширина */
        height: 1024px; /* Фиксированная высота */
        overflow: hidden;
    }
    .container {
        margin-left: 40px;
    }
    .main-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 32px;
        margin: 0 0 0px;
        text-transform: uppercase;
    }
    .sub-title .part-1 {
        font-size: 48px;
        font-weight: 800;
        line-height: 46px;
        margin-right: 10px;
    }
    .sub-title .part-2 {
        font-size: 48px;
        font-weight: 800;
        line-height: 50px;
        margin-right: 10px;
    }
    .sub-title .part-3 {
        font-size: 48px;
        font-weight: 800;
        line-height: 48px;
    }
    .sub-title {
        margin: 5px 0 5px;
        width: 640px;
    }
    .board-content {
        transform: translate(-73%, -2%);
    }
    .match-title {
        font-size: 22px;
        font-weight: 500;
        width: 500px;
        margin-bottom: 0px;
        margin-top: 89px;
        margin-left: 0px
    }
    .match-time {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 21px;
        margin-top: -5px;
        text-transform: uppercase;
    }
    .match-coefficients {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 14px;
        margin-top: -17px;
    }
    .match-comment {
        font-size: 14px;
        max-width: 185px;
        margin-left: 231px;
        text-align: left;
        font-weight: 400;
        line-height: 18px;
        margin-top: 16px;
        text-transform: uppercase;
    }
    .form-container {
        position: absolute;
        right: 0;
        width: 100%;
        height: 1024px;
        transition: right 0.5s ease-in-out;
        z-index: 100;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    body {
        overflow-y: auto;
        overflow-x: hidden;
        background-color: #3C2110;
    }
    .board {
        position: absolute;
        transform: perspective(1000px) rotatex(14deg) rotateY(324deg) rotateZ(-4deg);
    }
    .board-content {
        transform: translate(-59%, -10%);
    }
}

@media (max-width: 540px) {
    .background {
        background: url('../img/bg5.webp') no-repeat center center;
    }
    header {
        padding: 0;
        margin: -15px auto;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container {
        margin: auto;
    }
    .left-container {
        max-width: 600px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .main-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 32px;
        margin: 0 0 0px;
        text-transform: uppercase;
        text-align: center;
    }
    .sub-title {
        margin: 5px 0 5px;
        width: 100%;
        text-align: center;
    }
    .main-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 32px;
        margin: 0 0 0px;
        text-transform: uppercase;
        text-align: center;
    }
    .sub-title {
        margin: 0px 0 5px;
        width: 100%;
        text-align: center;
    }
    .sub-title .part-1 {
        font-size: 34px;
        font-weight: 800;
        line-height: 34px;
        margin-right: 10px;
    }
    .sub-title .part-2 {
        font-size: 34px;
        font-weight: 800;
        line-height: 34px;
        margin-right: 10px;
    }
    .sub-title .part-3 {
        font-size: 34px;
        font-weight: 800;
        line-height: 34px;
    }
    main {
        padding: 0px 0;
    }
    .board {
        position: absolute;
        transform: perspective(1000px) rotatex(14deg) rotateY(324deg) rotateZ(-7deg);
    }
    .board-content {
        transform: translate(-91%, 12%);
    }
}

@media (max-width: 390px) {
    .board-content {
        transform: translate(-88%, 12%);
    }
}