/* css/layout.css */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* MAIN APP WRAPPER */
.app {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LAVA BACKGROUND */
.lava-lamp {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    filter: blur(40px) saturate(160%);
}

/* BANNER */
.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    padding: 20px;
    text-align: center;

    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(160,130,200,0.2);
}

/* PUSH CONTENT BELOW FIXED HEADER */
.container {
    width: 100%;
    max-width: 1000px;
    margin-top: 160px;
    padding: 30px 12px;
}

/* PANEL */
.panel {
    width: 100%;
    display: grid;
    gap: 20px;
}

/* TOP ROW LAYOUT */
.top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* CENTERING FIX */
.result-area,
.selection {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel{
    background: var(--card);
    border-radius:18px;
    padding:26px;
    border:1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    display:grid;
    gap:18px;
}

.result-card{
    background:rgba(255,255,255,0.7);
    border-radius:14px;
    padding:18px;
    max-width:760px;
    width:100%;
}

.result-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
}

.banner{
    position:fixed;
    top:0;
    left:0;
    right:0;
    padding:16px;
    text-align:center;
    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(10px);
    z-index:50;
}

.banner h1{
    margin:0;
    font-size:42px;
}

.top-row{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:space-between;
    align-items:center;
}

.selection{
    width:100%;
    text-align:center;
}

.result-area{
    display:flex;
    flex-direction:column;
    gap:16px;
    align-items:center;
}

label.opt{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.6);
    border:1px solid rgba(0,0,0,0.05);
    cursor:pointer;
    font-weight:600;
}

label.opt input[type="number"]{
    margin-left:6px;
}

#resultHolder{
    display:none;
    width:100%;
    justify-content:center;
}

#finalBlock{
    display:none;
    width:100%;
    max-width:760px;
    padding: 18px;
    border-radius: 14px;
}

.banner{
    position:fixed;
    top:0;
    left:0;
    right:0;
    padding:20px;
    text-align:center;
    background:rgba(255,255,255,0.5);
    backdrop-filter:blur(12px) saturate(120%);
    border-bottom:1px solid rgba(160,130,200,0.2);
    z-index:80;
}

/* rainbow glow */
.banner::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-10%);
    width:80%;
    height:70px;
    border-radius:50px;
    background:conic-gradient(
        #ff6aa6,#ffb86b,#7fffb3,#7fbfff,#c58bff,#ff6aa6
    );
    filter:blur(14px);
    opacity:0.25;
}

.container{
    width:100%;
    max-width:1000px;
    margin:140px auto 40px;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.panel{
    width:100%;
    max-width:900px;
}

.top-row{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.selectors{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

.result-area{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
}

.stat{
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    text-align:center;
    width:100%;
}

.final-block{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.result-title {
    margin: 0;
    padding: 6px 0 10px;
    line-height: 1;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    opacity: 0.6;
}

.banner h1 {
    font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}
