body, html {
    overflow: hidden;
    background-color: transparent; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/bg.png');
    background-repeat: repeat;
    z-index: -1;
}

#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#splash-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#splash-screen {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#menu-buttons {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#menu button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 19px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}

#menu button:hover {
    background-color: #45a049;
}

#game-container {
    position: relative;
    width: 800px;
    height: 664px;  /* 600px (gra) + 64px (UI) */
    margin: 20px auto;
    background-color: transparent;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 21px;
    text-shadow: -2px 2px 0 #000,
                 1px 1px 0 #000,
                 1px -1px 0 #000,
                 -1px -1px 0 #000;
    z-index: 10;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    background-image: url('assets/images/ui_bg.png');
    background-repeat: no-repeat;
    background-size: 800px 64px;
}

#score-depth {
    display: flex;
    gap: 20px;
    padding: 8px;
}

#controls {
    display: flex;
    gap: 10px;
    padding: 8px;
}

#pause-btn, #music-btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 17px;
    cursor: pointer;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

#pause-btn.paused, #music-btn.active {
    background-color: #FF0000;
}

#gameCanvas {
    width: 800px;
    height: 600px;
    display: block;
    background-image: url('assets/images/bg_game.png');
    background-repeat: repeat;
    background-color: transparent;
}

#hall-of-fame-container, #how-to-play-container {
    position: relative;
    width: 800px;
    height: 664px;  /* 600px (content) + 64px (UI) */
    margin: 20px auto;
    background-color: transparent;
}

#hall-of-fame-ui, #how-to-play-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 21px;
    text-shadow: -2px 2px 0 #000,
                 1px 1px 0 #000,
                 1px -1px 0 #000,
                 -1px -1px 0 #000;
    z-index: 10;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    background-image: url('assets/images/ui_bg_scores.png');
    background-repeat: no-repeat;
    background-size: 800px 64px;
}

#hall-of-fame-title, #how-to-play-title {
    padding: 8px;
    font-size: 24px;
}

#hall-of-fame-controls, #how-to-play-controls {
    display: flex;
    gap: 10px;
    padding: 8px;
}

#hall-of-fame-back-btn, #hall-of-fame-music-btn,
#how-to-play-back-btn, #how-to-play-music-btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 17px;
    cursor: pointer;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

#hall-of-fame-music-btn.active, #how-to-play-music-btn.active {
    background-color: #FF0000;
}

#hall-of-fame, #how-to-play-content {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100% - 64px);
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

#hall-of-fame table {
    width: 100%;
    border-collapse: collapse;
}

#hall-of-fame th, #hall-of-fame td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

#hall-of-fame th {
    background-color: #333;
}

#hall-of-fame tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1);
}

#how-to-play-content {
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}

#nameInputPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    color: white;
}

#nameInputPopup input {
    margin: 10px 0;
    padding: 5px;
    width: 200px;
}

#nameInputPopup button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#social-media-links {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 1000;
}

#social-media-links p {
    color: white;
    font-size: 14px;
    margin-right: 10px;
    text-shadow: -1px 1px 0 #000,
                 1px 1px 0 #000,
                 1px -1px 0 #000,
                 -1px -1px 0 #000;
}

#social-media-links a {
    border: none;
    color: white;

    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}
