body {
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.main {
    position: relative;
    overflow: hidden;
    background-color: var(--background-themed);
    width: 100%;
    height: 100vh;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0.06rem 0.18rem;
    z-index: 2;
    min-height: 900px;
}


.mainBackground {
    position: absolute;
    top: 0;
    transform: rotate(80deg);
    margin-top: 10%;
    right: 0;
}


.mainContent {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 20%;
    margin-left: 4rem;
    transition: margin-left 0.3s ease;
}

.bigText {
    font-size: 2.63rem;
    font-weight: 800;
}

.midText {
    font-size: 1.8rem;
    font-weight: 800;
}

.smollText {
    font-size: 1.5rem;
    font-weight: 800;
}

.mainText1 {
    position: relative;
    letter-spacing: -1px;
}

.mainText2 {
    position: relative;
    margin-top: 1.9rem;
}

.mainTable {
    position: relative;
    margin-top: 6rem;
    text-align: center;
    width: 40rem;
    height: 5.2rem;
}

.mainButtonContainer {
    position: relative;
    margin-top: 4rem;
    margin-left: 1.6rem;
    display: flex;
    gap: 3rem;
}

.mainButton {
    width: 9.5rem;
    height: 3rem;
    background-color: #7a1d1c;
    cursor: pointer;
    border-radius: 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    user-select: none;
}

/* #7a1d1c */
/* #8b2729 */
/* #822223 */
.mainButton:hover {
    background-color: #5c0504;
    box-shadow: 0.06rem 0.12rem 0.18rem 0.06rem rgba(0, 0, 0, 0.1);
}

.main2 {
    overflow: hidden;
    background-color: var(--background-themed);
    width: 100%;
    height: 90vh;
}

.mainTableNumber {
    position: relative;
    display: flex;
    overflow: hidden;
    height: 3rem;
    transition: width 1s ease-out;
    width: auto;
    justify-content: center;
}


.mainTableNumber > .tableNumbersContainer {
    display: flex;
    flex-direction: column;
    position: static;

    line-height: 3rem;
    transition: all 1.8s ease;
}


.main2Content {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 20%;
    margin-left: 4rem;
    transition: margin-left 0.3s ease, transform 700ms ease-out, opacity 400ms ease-out;
}

.main2Content.toAnimate {
    opacity: 0;
    transform: translateX(5rem);
}

.main2Content.animate {
    opacity: 1;
    transform: translateX(0);
}

.main2Image {
    position: relative;
    width: 50rem;
    height: 28rem;
    right: 0;
    background-color: var(--main2);
    border-radius: 0.4rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0.06rem 0.12rem 0.32rem;
    font-size: 0; /*hide alt text*/
}

.main2Text {
    margin-left: 4rem;
}

.main2Text1 {
    letter-spacing: -1px;
}

@media screen and (max-width: 1600px) {
    /*2385 × 1335*/
    .main2Image {
        width: 40rem;
        height: 22.4rem;
    }
}

@media screen and (max-width: 1430px) {
    .main2Content {
        flex-direction: column;
        top: 10%;
    }

    .main2Text {
        margin-left: 0;
        margin-top: 4rem;
    }

    .main2 {
        min-height: 900px;
    }
}


@media screen and (max-width: 1150px) {
    .mainText2 {
        width: 42rem;
    }

    .mainBackground1, .mainBackground2 {
        margin-left: 32rem;
    }
}

/* top menu switch */
@media screen and (max-width: 780px) {
    .mainContent, .main2Content {
        margin-left: 1rem;
    }
}

@media screen and (max-width: 690px) {
    .main2Image {
        align-self: center;
        margin-right: 1rem;
    }
}


@media screen and (max-width: 600px) {
    .mainBackground1, .mainBackground2 {
        margin-left: 50rem;
    }
}

@media (min-height: 700px) and (max-width: 550px) {
    .main {
        height: 90vh;
    }

    .main2 {
        height: 80vh;
    }
}

@media (max-width: 400px) and (max-height: 700px) {
    .main {
        height: 80vh;
    }
}

/* most phones... i think? (hope) */
@media (min-height: 520px) and (max-width: 460px) {
    .main, .main2 {
        min-height: 0;
    }

    .mainBackground {
        margin-top: 0;
    }
}

/* is this really needed? */
@media (max-height: 520px) and (max-width: 460px) {
    .main, .main2 {
        min-height: 500px;
    }
}