body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

canvas{
    position: absolute;
    left: 0;
    top: 0;
    transition: top 0.5s;
}

@media (orientation: portrait) {
    canvas{
        top: 0;
    }
}

.container-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    z-index: 1;
    width: 100%;
}

.left-section{
    width: 240px;
    background-color: #e8f5e9;
    color: black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 12px;
    transition: width 0.5s;
}

.right-section {
    width: 350px;
    background-color: #e8f5e9;
    color: black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 12px;
    transition: width 0.5s;
}

.right-section h3, .left-section h3 {
    text-align: center;
    margin-bottom: 10px;
}

.fruit-list, .score-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fruit-list .fruit-item, .score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}

.fruit-list .fruit-item img, .score-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.fruit-list .fruit-item:nth-child(1) { background-color: #ffccd5; }
.fruit-list .fruit-item:nth-child(2) { background-color: #ffabab; }
.fruit-list .fruit-item:nth-child(3) { background-color: #e0bbff; }
.fruit-list .fruit-item:nth-child(4) { background-color: #f5c68b; }
.fruit-list .fruit-item:nth-child(5) { background-color: #ffb347; }
.fruit-list .fruit-item:nth-child(6) { background-color: #e67e7e; }
.fruit-list .fruit-item:nth-child(7) { background-color: #d4e157; }
.fruit-list .fruit-item:nth-child(8) { background-color: #eaa8ff; }
.fruit-list .fruit-item:nth-child(9) { background-color: #fcd34d; }
.fruit-list .fruit-item:nth-child(10) { background-color: #a4e57c; }
.fruit-list .fruit-item:nth-child(11) { background-color: #38ef7d; }
.fruit-list .fruit-item:nth-child(12) { background-color: #4caf50; }

.score-item{
    background-color: #e4e4e4;
}
.score-item:nth-child(1) { background-color: #ea9b0c; }
.score-item:nth-child(2) { background-color: #9abadb; }
.score-item:nth-child(3) { background-color: #f8af78; }

header {
    background: linear-gradient(to right, #a855f7, #38bdf8);
    padding: 20px;
    display: flex;
    align-items: center;
}

header img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

header h1 {
    color: white;
    margin: 0;
}

@media (max-width: 1184px) and (orientation: landscape)  {
    .right-section{
        width: 300px;
    }
}

@media (max-width: 1084px) and (orientation: landscape)  {
    .right-section{
        width: 240px;
    }
}

@media (max-width: 964px) and (orientation: landscape)  {
    .right-section{
        width: 200px;
    }

    .left-section{
        width: 200px;
    }
}

@media (max-width: 888px) and (orientation: landscape)  {
    .right-section{
        width: 160px;
    }

    .left-section{
        width: 160px;
    }
}

@media (max-width: 800px) and (orientation: landscape)  {
    .right-section{
        width: 160px;
    }

    .left-section{
        width: 160px;
    }
}

@media (max-width: 800px) and (orientation: landscape) {
    .right-section{
        width: 150px;
    }

    .left-section{
        width: 140px;
    }
}

@media (max-width: 800px) or (orientation: portrait) {
    .container-main {
        flex-direction: column;
        align-items: center;
    }

    .center-section {
        width: 100%;
        height: 400px;
    }

    .left-section, .right-section {
        display: none;
    }
}

@media (orientation: portrait) {
    .container-main {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .center-section {
        width: 100%;
        height: 100vh;
    }
}