body {
    font-family: Arial, sans-serif;
    background-color: #1a202c; /* nice blue purple */
    color: #fff; /* white text */
    height: 100%;
    width: 95%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.dashboard {
    max-width: 94%;
    width: 65%;
    margin: 0;
    padding: 20px;
}

.right-bar {
    position: fixed;
    right: 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    color: #fff;
}


#playerAnalytics {
    width: 100%;
    max-width: 90%;
    background-color: #1f2533;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
}



.player-count, .analytics, .manage-capes, .capes-management {
    background-color: #262f40;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.322);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.manage-capes {
    height: 30%;
    gap: 10%;
}

.player-count {
    flex-direction: row;
    gap: 10px;
}

.player-count p {
    font-size: 24px;
    font-weight: bold;
    text-align: right; /* align the number to the right */
}

.analytics canvas {
    width: 100%;
    max-width: 700px;
}

#upload, #edit, #delete, #cape-id, #cape-name, #cape-image, #cape-form input[type="submit"] {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: 500ms;
}

#upload, #edit, #delete {
    flex: 1;
    margin: 0 10px;
}

#upload:hover, #edit:hover, #delete:hover, #cape-form input[type="submit"]:hover {
    background-color: #3a863e;
    transition: 500ms;
}

#upload, #edit, #delete, #cape-form input[type="submit"] {
    margin: 10px;
}

#cape-id, #cape-name, #cape-image {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 0px solid #ccc;
    border-radius: 3px;
    background-color: #131c2c;
    color: white;
    margin-top: 10px;
}

.capes-management {
    text-align: center; /* center the button */
    box-shadow: 0px 0px 0px 0px transparent;
}

.manage-capes a ,input{
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: 500ms;
}

.manage-capes a:hover {
    background-color: #3a863e;
    transition: 500ms;
}

.selection {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 0px solid #ccc;
    border-radius: 3px;
    background-color: #131c2c;
    color: white;
    margin-top: 10px;
}

.button-container {
    display: flex;
    justify-content: space-around; /* or space-between */
    margin-bottom: 20px;
    box-shadow: 0px 0px 0px 0px transparent;
}

.open-nav {
    display: none;
}

@media only screen and (max-width: 1350px) {
    body {

        /* Add this inside your @media query */

    .close-nav{
        cursor: pointer;
        right: 0;
        top: 0;
        background-color: #131c2c;
        color: white;
        padding: 15px;
        font-size: 30px;
    }

    .right-bar.open {
        width: 25%; /* Adjust as needed */
    }
    .manage-capes {
        background-color: transparent;
        box-shadow: 0px 0px 0px 0px;
    }
    .right-bar {
        position: fixed;
        right: 0;
        top: 0;
        width: 0;
        height: 100%;
        background-color: #131c2c;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
    }

    .right-bar a {
        padding: 10px 15px;
        text-decoration: none;
        font-size: 25px;
        color: white;
        display: block;
        transition: 0.3s;
    }

    .right-bar a:hover {
        color: #f1f1f1;
    }

    .open-nav {
        cursor: pointer;
        position: fixed;
        right: 0;
        top: 0;
        background-color: #131c2c;
        color: white;
        padding: 15px;
        font-size: 140%;
    }
    }
  }

  @media only screen and (max-width: 1070px) {
    body {

        /* Add this inside your @media query */

    .close-nav{
        cursor: pointer;
        right: 0;
        top: 0;
        background-color: #131c2c;
        color: white;
        padding: 15px;
        font-size: 30px;
    }

    .right-bar.open {
        width: 50%; /* Adjust as needed */
    }
    .manage-capes {
        background-color: transparent;
        box-shadow: 0px 0px 0px 0px;
    }
    .right-bar {
        position: fixed;
        right: 0;
        top: 0;
        width: 0;
        height: 100%;
        background-color: #131c2c;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
    }

    .right-bar a {
        padding: 10px 15px;
        text-decoration: none;
        font-size: 25px;
        color: white;
        display: block;
        transition: 0.3s;
    }

    .right-bar a:hover {
        color: #f1f1f1;
    }

    .open-nav {
        cursor: pointer;
        position: fixed;
        right: 0;
        top: 0;
        background-color: #131c2c;
        color: white;
        padding: 15px;
        font-size: 140%;
    }
    }
  }