@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    background-image: url("bg.png");
    background-size: no-repeat;
    background-repeat: repeat-x;
    background-color: #0b4351;
    margin: 0;
    padding: 20px;
    min-width: 770px;
    margin-top: 4%;
}

ruffle-player,
ruffle-embed,
ruffle-object {
    --splash-screen-background: #141313;
    --logo-display: block;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.bottom-section {
    width: auto; 
}

.game {
    order: 2;
    width: 736px;
    z-index: 999;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: -1;
}

.bigcard {
    order: 7;
    width: 100%;
    max-width: 200px;
    pointer-events: none;
}

.lilcard {
    pointer-events: none;
    width: 100%;
    max-width: 200px;
}

.webbanner {
    width: 80%;
    width: 100%;
    max-width: 200px;
}

.bigcardflex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    height: 50px;
}

.docobutton {
    position: relative;
    bottom: 310px;
    left: 560px;
    width: 125px;
}

.exmpvideo {
    position: relative;
    bottom: 250px;
    left: 423px;
    width: 150px;
    pointer-events: none;
}

.bottom-section {
    display: contents;
}

.uptext {
    background-image: url(backtext.png);
    background-repeat: no-repeat;
    background-position:center;
    position: relative;
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-family: "Rubik", sans-serif;
    direction: rtl;
    text-align: center;
    bottom: 5px;
    min-width: 392px;
    height: 86px;
    margin-bottom: 15px;
}

.uptext p {
    position: absolute;
    min-width: 800px;
    left: 50%;
    transform: translateX(-50%);
}

.fullscreenButton {
    position: relative;
    width: 80px;
    bottom: 25px;
    cursor: pointer;
    left: 640px;
    z-index: 99999;
}

a:link {
    color: rgb(255, 255, 255);
}

a:visited {
    color: rgb(255, 255, 255);
}

.colortext {
    color: red;
}

#ruffleVersion {
    font-weight: bold;
}

footer {
    position: relative;
    top: 100%;
    height: 150px;
    width: 50%;
    text-align: center;
    direction: rtl;
    color: rgb(255, 255, 255);
    font-size: 13px;
    font-family: "Rubik", sans-serif;
    min-width: 320px;
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
}

footer p {
    font-family: monospace;
    font-size: 11px;
}

@media (max-width: 1230px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .game {
        order: -1;
        width: 100%;
        max-width: 736px;
    }

    .bottom-section {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10%;
        width: 100%;
    }

    .bigcardflex {
        position: relative;
        right: 340px;
        top: 55px;
    }

}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px 0 24px 0;
    font-size: 1.1em;
    direction: rtl;
  }
  
  .main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    padding: 0 4px;
  }
  
  .main-nav a:hover {
    color: #1976d2;
    text-decoration: underline;
  }
  
  .main-nav .divider {
    color: #aaa;
    font-size: 1.1em;
    user-select: none;
  }