:root {
    --length: 30vh;
    --symSize: 75px
}

body {
    background-color: lightcyan;
    margin: 0;
}

p {
    margin: 0;
    margin-left: auto;
}

#container {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

.gameName {
    width: fit-content;
    margin: auto;
    background: linear-gradient(to right, red, darkblue, gold);
    background-clip: text;
    color: transparent;
}

#computerName {
    margin-bottom: 10px;
}

#phoneName {
    display: none;
}

#panel {
    text-align: center;
    order: 1;
}

#buttons {
    display: flex;
    justify-content: center;
    column-gap: 10px;
}

#rules {
    text-align: center;
    padding: 0px 10px;
    height: 50vh;
    overflow-y: scroll;
    border: 2px solid black;
}

#reelsContainer {
    background-color: blue;
    height: calc(3 * var(--length));
    width: calc(3 * var(--length));
    margin: 5vh auto;
    display: flex;
    order: 2;
}

.reel {
    background-color: aquamarine;
    width: var(--length);
    height: calc(3 * var(--length));
    border: 2px solid black;
    overflow: hidden;
}

.reelItemsContainer {
    position: relative;
    bottom: calc(var(--length) * 27);
}

.cell {
    background-color: aquamarine;
    height: var(--length);
    width: var(--length);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dot {
    background-color: black;
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

.circle {
    background-color: red;
    height: var(--symSize);
    width: var(--symSize);
    border-radius: 50%;
}

.square {
    background-color: darkblue;
    height: var(--symSize);
    width: var(--symSize);
}

.diamond {
    background-color: gold;
    height: var(--symSize);
    width: var(--symSize);
    transform: rotate(45deg);
}

.freeSpin {
    font-size: 50px;
    font-weight: 900;
    color: darkmagenta;
}

.smallSymbol {
    height: 40px;
    width: 40px;
}

.payout {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 275px;
    column-gap: 25px;
    margin: 20px 0;
    font-size: xx-large;
    font-weight: 500;   
}

#info {
    text-align: right;
    order: 3;
}

#rulesTextPhone {
    display: none;
    order: 4;
}

#freeSpinsText {
    display: none;
}

.roll {
    animation: roll 3000ms forwards;
}

@keyframes roll {
    from { bottom: calc(var(--length) * 27); }
    to { bottom: 0; }
}

@keyframes pop {
    0% { font-size: xx-large }
    50% { font-size: x-large }
    100% { font-size: xx-large }
}

@keyframes spinAndPop {
    0% { 
        width: var(--symSize);
        height: var(--symSize);
    }
    50% {
        width: calc(var(--symSize) * 0.67);
        height: calc(var(--symSize) * 0.67);
        rotate: 180deg;
    }
    100% {
        width: var(--symSize);
        height: var(--symSize);
        rotate: 360deg;
    }
}

@keyframes circleToSquare {
    from {
        background-color: red;
        border-radius: 50%;
    }

    to {
        background-color: darkblue;
        border-radius: 0%;
    }
}

@keyframes squareToDiamond {
    from {
        background-color: darkblue;
        transform: rotate(0deg);
    }

    to {
        background-color: gold;
        transform: rotate(45deg);
    }
}

@media (max-width: 1500px){
    :root {
        --length: 12vw;
        --symSize: 6vw
    }
}

@media (max-width: 500px) {
    :root {
        --length: 24vw;
        --symSize: 10vw
    }
    .dot {
            height: 10px;
            width: 10px;
    }
    #paytable {
        display: none;
    }
    #rules {
        display: none;
    }
    #maxWinText {
        display: none;
    }
    #container {
        flex-direction: column;
        justify-content: center;
    }
    #panel {
        padding: 5px 0;
        order: 3
    }
    #info {
        order: 1;
        font-size: xx-small;
    }
    #reelsContainer {
        margin: 0 auto;
        margin-bottom: 20px;
    }
    #rulesTextPhone {
        display: block;
        font-size: xx-small;
    }
    .freeSpin {
        font-size: medium;
    }
    #computerName {
        display: none;
    }
    #phoneName {
        display: block;
    }
    
}
