/* ===========================
   RESET
=========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:#d8c7ea;

    font-family:"Quicksand",sans-serif;

    overflow:hidden;

}

/* ===========================
   GAME WINDOW
=========================== */

.game{

    width:1280px;
    height:720px;

    margin:0 auto;

    background:#efe7f8;

    border:3px solid #8267b8;

    display:flex;

    flex-direction:column;

    transform-origin:top center;

}

/* ===========================
   TOP BAR
=========================== */

.topbar{

    height:58px;

    background:#7b68b8;

    border-bottom:2px solid #5f4b98;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 18px;

}

.logo{

    font-family:"Press Start 2P";

    color:white;

    font-size:15px;

}

nav{

    display:flex;

    gap:8px;

}

nav a{

    color:white;

    text-decoration:none;

    padding:10px 14px;

    cursor:pointer;

}

nav a.active{

    background:#6652a8;

}

nav a:hover{

    background:#5f4b98;

}

.currency{

    display:flex;

    gap:8px;

}

.currencyBox{

    background:#8d7acc;

    color:white;

    border:2px solid #5f4b98;

    padding:8px 12px;

}

/* ===========================
   CONTENT
=========================== */

.content{

    flex:1;

    display:grid;

    grid-template-columns:210px 1fr;

    gap:12px;

    padding:12px;

    overflow:hidden;

}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.playerCard{

    background:white;

    border:2px solid #c9b1e8;

}

.playerName{

    background:#f2e8fb;

    border-bottom:2px solid #c9b1e8;

    text-align:center;

    padding:10px;

    font-weight:bold;

}

.avatarFrame{

    width:160px;
    height:210px;

    margin:15px auto;

    background:#f8f2ff;

    border:2px solid #c9b1e8;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:80px;

}

.playerInfo{

    padding:12px;

}

.playerInfo p{

    margin-bottom:12px;

}

.xpBar{

    width:100%;

    height:12px;

    background:#ece4f8;

    border:2px solid #c9b1e8;

    margin:8px 0 15px;

}

.xpFill{

    width:35%;

    height:100%;

    background:#8f74d8;

}

.menu{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.menu button{

    height:42px;

    background:white;

    border:2px solid #c9b1e8;

    cursor:pointer;

    font-family:"Quicksand";

    font-size:16px;

}

.menu button:hover{

    background:#f4edfd;

}

/* ===========================
   ROOM
=========================== */

.roomSection{

    display:flex;

    flex-direction:column;

}

.roomHeader{

    background:#f2e8fb;

    border:2px solid #c9b1e8;

    border-bottom:none;

    padding:10px 14px;

    font-weight:bold;

}

.room{

    flex:1;

    border:2px solid #c9b1e8;

    position:relative;

    overflow:hidden;

}

/* Wall */

.wall{

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:72%;

    background:#e7dcf6;

}

/* Floor */

.floor{

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:28%;

    background:#d7c4ef;

}

/* ===========================
   BOTTOM BAR
=========================== */

.bottomBar{

    height:110px;

    display:grid;

    grid-template-columns:1fr 1fr 1fr;

    gap:12px;

    padding:12px;

}

.panel{

    background:white;

    border:2px solid #c9b1e8;

    padding:10px;

}

.panel h3{

    font-family:"Press Start 2P";

    font-size:10px;

    margin-bottom:10px;

}

/* ===========================
   SCALE TO SCREEN
=========================== */

@media (max-width:1300px){

.game{

    zoom:0.82;

}

}

@media (max-width:1100px){

.game{

    zoom:0.70;

}

}

/* ===========================
   ROOM OBJECTS
=========================== */

/* Wallpaper */

.wall{

    position:absolute;

    inset:0;

    background:#efe6fb;

}

/* Window */

.window{

    position:absolute;

    width:170px;
    height:140px;

    left:120px;
    top:55px;

    background:#ffffff;

    border:4px solid #b99bdd;

}

.sky{

    width:100%;
    height:100%;

    background:#bfe6ff;

}

/* Floor */

.floor{

    position:absolute;

    bottom:0;

    width:100%;
    height:170px;

    background:#d8b58b;

}

/* Rug */

.rug{

    position:absolute;

    width:300px;
    height:120px;

    left:300px;
    bottom:80px;

    background:#f8cbe6;

    border:3px solid #ffffff;

}

/* Bed */

.bed{

    position:absolute;

    width:180px;
    height:110px;

    right:60px;
    bottom:120px;

    background:#ffd3ea;

    border:4px solid #b48ad8;

}

/* Desk */

.desk{

    position:absolute;

    width:160px;
    height:70px;

    left:60px;
    bottom:120px;

    background:#d6b08b;

    border:4px solid #8b6544;

}

/* Chair */

.chair{

    position:absolute;

    width:55px;
    height:55px;

    left:110px;
    bottom:75px;

    background:#c99873;

}

/* Bookshelf */

.bookshelf{

    position:absolute;

    width:70px;
    height:220px;

    right:20px;
    top:40px;

    background:#d6b08b;

    border:4px solid #8b6544;

}

/* Plant */

.plant{

    position:absolute;

    width:45px;
    height:70px;

    left:250px;
    bottom:120px;

    background:#6ebf74;

    border:3px solid #4b8d52;

}

/* Character */

.player{

    position:absolute;

    width:70px;
    height:110px;

    left:420px;
    bottom:120px;

    background:#ffffff;

    border:3px solid #7c67b5;

}
















