:root {
 --textc: #dfdfdf;
 --BG: #121212;
 --elements: #42ac75;
 --shadow: #000000;
 --box: #282828;
 --red: rgb(186, 84, 51);
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background-color: var(--BG); /* сірий фон */
    color:var(--textc);
    font-family: sans-serif;
    position: relative;
    overflow-y: auto;
    font-size: 100%;
    height: 100vh;
    width: 100vw;
}

.background-text {
    color: transparent;
    font-size: 150px;
    font-weight: bold;
    white-space: nowrap;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    background-color: var(--shadow);
    text-shadow: 7px 6px 6px var(--BG);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

#columFlex{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

#flex{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

#box{
    display: flex;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-radius: 20px;
    margin: 0;
    gap: 10px;
    width: auto;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    background-color: var(--box);
}

.menuFlex{
    display: flex;
    gap: 20px;
    height: calc(100% - 172px - 2%);
    width: 97%;
}

@media (max-width: 768px) {
    .menuFlex {
        flex-direction: column;
        height: auto;
        width: 95%;
        overflow-x: hidden; /* важливо */
    }

    .leftMenu, .historyBox {
        width: 100%;
        box-sizing: border-box;
    }

    .historyList, .item {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overflow-x: hidden; /* теж важливо для уникнення "вилазіння" */
    }
}

.sendBox {
    
    display: flex;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-radius: 20px;
    margin: 0px;
    gap: 10px;
    width: auto;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    background-color: var(--box);
}

.casinoBox{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--box);
    width: 100%;
    border-radius: 20px;
}

.leftMenu{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.leftMenuImage{
    height: 75px;
    border-radius: 10px;
}

.historyBox {
    
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    border-radius: 20px;
    width: 100%;
    gap: 10px;
    background-color: var(--box);
}

.historyList{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    height: 100%;
    width: 100%;
    overflow-y: hidden;
    overflow-x: visible;
    border-radius: 10px;
}

.item{
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.item::-webkit-scrollbar {
    width: 8px;
  }
  
  .item::-webkit-scrollbar-thumb {
    background: gray;
    border-radius: 10px;
  }

.mtran{
    display: flex;
    justify-content: space-between;
    background-color: var(--red);
    border-radius: 10px;
    padding: 10px;
}

.ptran{
    display: flex;
    justify-content: space-between;
    background-color: var(--elements);
    border-radius: 10px;
    padding: 10px;
}

button{
    margin-top: 0px;
    font-size: medium;
    font-weight: bold;
    --bg: var(--elements);
    --hover-bg: #3f16a7;
    --hover-text: var(--elements);
    color: var(--textc);
    cursor: pointer;
    border: 1px solid var(--bg);
    border-radius: 4px;
    padding: 0.4em 1em;
    background: var(--bg);
    transition: 0.2s;
}

button:hover {
    color: var(--hover-text);
    transform: translate(-0.25rem, -0.25rem);
    background: var(--hover-bg);
    box-shadow: 0.25rem 0.25rem var(--bg);
}

button:active {
    transform: translate(0);
    box-shadow: none;
}
  
input{
    border: none;
    font-size: large;
    border-bottom: 3px solid var(--elements);
    color: var(--textc);
    background: none;
    text-decoration: none;
    display: inline-block;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
}

input:focus {
    box-shadow: 0px 5px 0px var(--elements);
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

header{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.msg{
    font-size: medium;
}

p {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

div {
    font-size: 20px;
    font-weight: bold;
}