body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#gameCanvas {
    width: 100%;
    height: 100%;
}

.building {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #333;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.category {
    width: 64px;
    height: 64px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

#fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    font-family: Arial, sans-serif;
}

.fullscreen-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    z-index: 1000;
}

/*Friends dialog*/
.dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#addFriendDialog h2 {
    margin-top: 0;
    color: #333;
}

#friendSearchInput {
    flex-grow: 1;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#searchButton, #closeDialog {
    padding: 8px 15px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 100%;
    margin-left: 10px;
}

#closeDialog {
    background-color: #f44336;
    margin-top: 10px;
    margin-left: 10px;
    float: right;
}

#searchResults {
    margin-top: 15px;
}

    #searchResults ul {
        list-style-type: none;
        padding: 0;
    }

    #searchResults li {
        margin-bottom: 5px;
        padding: 5px;
        background-color: #f1f1f1;
        border-radius: 3px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #searchResults button {
        padding: 5px 10px;
        background-color: #008CBA;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

.checkmark {
    background-color: green;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
}
