﻿/* Add to your existing CSS */
.modal {
    position: fixed;
    top: -2px;
  left: -13px;
  width: 2200px;
  height: 1200px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow:hidden;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #a06041;
    border: 0.8vh solid #534a40;
    top:-55px;
    left:-140px;
    padding: 40px;
    width: 1600px;
    height: 1000px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box; 
    overflow: auto; 
    overflow-x:hidden;
}

.yellow {
    position: absolute;
    top: 15px;
    left: 13px;
    width: 1560px;
    height: 955px;
    background-color: #e2b740;
}

.white {
    display: flex;
    flex-direction:column;
    align-items:center;
    position: absolute;
    top:15px;
    left: 13px;
    width: 1535px;
    height: 925px;
    background-color: #fff9ea;
    gap:20px;
    
}


.avatar-creation h2 {
    flex: 0 0 50px; 
    width: 2500px;
    height:auto;
    color: #ffb94f;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 4px 4px rgba(10, 10, 1, 5);
    margin-bottom: 0.5px;
    font-size: 65px;
}


.avatar-creation p {
    margin-bottom: 5px;
    opacity: 0.9;
}


.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.avatar-option {
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .avatar-option:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

    .avatar-option.selected {
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid #ffd700;
        transform: scale(1.05);
    }

.avatar-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.avatar-option span {
    display: block;
    font-size: 9px;
    margin-top: 9px;
}

.confirm-btn {
    margin-top:150px;
    position:absolute;
    bottom:20px;
    width:550px;
    flex-basis:1;
    background: #a06041;
    color: #ffb94f;
    border: 3px solid #534a40;
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 4px rgba(5, 5, 1, 1);
    padding: 25px 20px;
    box-shadow: inset 4px 3px 5px #ffbf5e, 2px 2px 0 #000, /* extra �pixel� edges */
    4px 4px 0 #000;
}


    .confirm-btn:hover {
        width:570px;
        background: white;
        box-shadow: inset 4px 3px 5px gray, 2px 2px 0 #000, /* extra �pixel� edges */
        4px 4px 0 #000;
    }

.carousel {
    position: absolute;
    top: 100px;
    left: 250px;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 180px;
    margin: 5px;
    margin-bottom:200px;
}

.main-carousel{
    margin-bottom:500px;
}
.second-carousel{
    margin-top:100px;
}
.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid black;
    color: #ffb94f;
    background-color:#a06041;
    width: 30px;
    height: 55px;
    border-radius:50%;
    padding-right:40px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 4px rgba(5, 5, 1, 1);
    box-shadow: inset 4px 3px 5px #ffbf5e, 2px 2px 0 #000, /* extra �pixel� edges */
    4px 4px 0 #000;
}

    .carousel-btn:hover {
        background-color: white;
        transform: scale(1.1);
        box-shadow: inset 4px 3px 5px gray, 2px 2px 0 #000, /* extra �pixel� edges */
        4px 4px 0 #000;

    }

.color-name {
    font-size:22px;
    font-weight: bold;
    color: #ffd700;
    margin-top: 10px;
}

.showcase{ 
    margin-top:20px;;
    gap: 20px;              /* spacing between sections */
    width: 1200px;            /* full width of parent */
    display:flex;

}

.creation-section {
    flex:1;
    display:flex;
    position:relative;
    width: 2200px;
    height:500px;
    padding: 10px 20px;
    color: black;
}

.creation-section-rooster {
    position: absolute;
    top: 25px;
    left: 50px;
    margin: 10px auto 0;
}

    .creation-section-rooster h3 {
        position: absolute;
        top: -15px;
        font-family: 'Press Start 2P', monospace;
        text-shadow: 2px 2px 3px rgba(10, 10, 1, 5);
        color: #ffb94f;
        position: absolute;
        left: 190px;
        font-size:30px;
    }


.color-display {
    top:-40px;
    margin-bottom:50px;
    position: absolute;
    width: 250px;
    height: 250px;
}

.border-display{
    display:flex;
    top:-60px;
    left:-60px;
    width:200px;
    height:210px;
}

.main-display{
    display:flex;
    left:-50px;
    width: 160px;
    height:160px;
}

.creation-section-accessory {
    position: absolute;
    top: 350px;
    left: 50px;
}



.creation-section-accessory h3 {
    top: -15px;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 3px rgba(10, 10, 1, 5);
    color: #ffb94f;
    position: absolute;
    bottom: 20px;
    left: 160px;
    font-size:30px;
}

.combined-preview-section {
    flex:0 0 auto;
    position:relative;
    background-size: cover; /* make it cover the div */
    background-position: center; /* center the image */
    background-repeat: no-repeat; /* don�t tile */
    width: 600px;
    height: 600px;
    padding: 10px 20px;
    color: black;
    text-align: center;
}

    .combined-preview-section h3 {
        position: absolute;
        top: 50px;
        left: 100px;;
        width: 200px;
        height: 10px;
        color: #ffb94f;
        padding: 20px 40px;
        font-size: 20px;
        font-weight: bold;
        transition: all 0.3s ease;
        font-family: 'Press Start 2P', monospace;
        
    }

.combined-preview-circle {
    position: absolute;
    top:10px;
    left: 15px;
    width: 400px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.preview-names {
    position: absolute;
    bottom: 100px;
    left: 100px;
    display: flex;
    justify-content: center;
    gap: 45px;
}

.canvas-stack {
    position:absolute;
    top:-90px;
    left:-20px;
    display: grid;
    width: 200px;
    height: 200px;
    position: relative;
}

.canvas-stack canvas {
    grid-area: 1 / 1; /* All canvases in the same grid cell */
    width: 350px;
    height: 350px;
}

.combined-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between canvas and text */
}

.combined-preview-circle {
    width: 200px;
    height: 200px;
    /* Your existing canvas-stack styles */
}

.preview-names {
    position:absolute;
    bottom:40px;
    left:228px;
    width: 200px; /* Match canvas width */
    text-align: center;
    padding: 8px;
    box-sizing: border-box; /* Include border in width */
    color:white;
    background-color:#a06041;
    box-shadow:5px 5px 10px rgba(160, 96, 65, 0.7);
    border-radius:10px;
    width:300px;
}



