/* 
 Theme Name:   AI Battle Wheel
 Theme URI:    
 Description:  
 Author:       admin
 Author URI:   http://aibattlewheel.com
 Template:     generatepress
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.character-creation-container {
    display: flex;
    min-height: 100vh;
}


 
/* Sidebar for desktop */
.sidebar {
    width: 20%;
    background-color: #f1f1f1;
    padding: 20px;
    box-sizing: border-box;
}

/* Buttons in sidebar */
.sidebar button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

/* Wheel container for desktop */
.wheel-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid red;
    z-index: 1000;
}

/* Canvas for wheel */
#statWheelCanvas {
    width: 100%;
    height: auto;
}

#spinButton {
    margin-top: 20px;
    padding: 10px;
}

/* Results sidebar for desktop */
.results-sidebar {
    width: 30%;
    background-color: #f1f1f1;
    padding: 20px;
    box-sizing: border-box;
}

.results-sidebar h3 {
    margin-top: 0;
}

#saveCharacterButton {
    margin-top: 20px;
    padding: 10px;
}

/* MOBILE RESPONSIVENESS */
@media screen and (max-width: 768px) {
    /* Flex container becomes vertical on mobile */
    .character-creation-container {
        flex-direction: column;
        align-items: center;
    }
 
    /* Hide the sidebar (stat buttons) initially on mobile */
    .sidebar {
        display: none;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #333;
        padding: 20px;
        z-index: 10;
    }

    /* Show buttons full width on mobile */
    .sidebar button {
        width: 100%;
        margin-bottom: 10px;
        background-color: #444;
        color: white;
    }

    /* Wheel container full width on mobile */
    .wheel-container {
        width: 100%;
    }

    /* Canvas width adjusted for mobile */
    #statWheelCanvas {
        width: 90%;
        height: auto;
    }

    /* Results sidebar full width on mobile */
    .results-sidebar {
        width: 100%;
        margin-top: 20px;
    }

    /* Hamburger icon visible on mobile */
    .hamburger-icon {
        display: block!important;
        background-color: #333;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 18px;
        width: 100%;
    }

    /* Show the sidebar when hamburger menu is toggled */
    .show-menu .sidebar {
        display: block;
    }
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns */
    gap: 20px;
    margin-top: 20px;
}

.character-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.character-icon img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.see-stats {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

.see-stats:hover {
    background-color: #005780;
}

.character-stats {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.backtomenu {
    margin-top:20px!important;
    margin:0 auto;
}
