body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
}

:root {
    --bg-color: #f0f0f0;
    --text-color: #000;
    --primary-color: #6200ea;
    --secondary-color: #444;
}

.dark-theme {
    --bg-color: #333;
    --text-color: #fff;
    --primary-color: #bb86fc;
    --secondary-color: #bbb;
}

#app {
    width: 80%;
    max-width: 600px;
    background: rgb(15 55 89 / 30%); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 20px;
}

header {
    background: inherit;
    color: white;
    padding: 10px;
    text-align: center;
    position: relative;
    font-family: 'Cursive', sans-serif;
}

#appTitle {
    font-family: 'Cursive', sans-serif;
    font-size: 2.5em;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

main {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.player {
    text-align: center;
    margin: 20px;
}

.crowns {
    margin-bottom: 10px;
}

.score {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score button {
    padding: 10px;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.score span {
    font-size: 48px;
    width: 50px;
    display: inline-block;
    text-align: center;
}

.expert-btn {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background: none;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

footer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: inherit;
    color: white;
}

footer a {
    color: white;
    font-size: 24px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.modal-content input[type="text"],
.modal-content select,
.modal-content input[type="checkbox"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-content button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #5b00d4;
}

/* Game View Styles */
.hidden {
    display: none;
}

#gameView {
    width: 80%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 20px;
}

#gameView h1 {
    font-family: 'Cursive', sans-serif;
    font-size: 2em;
    text-align: center;
    color: var(--primary-color);
}

.game-section {
    margin-top: 20px;
}

.game-section h2 {
    font-size: 1.5em;
    color: var(--primary-color);
}

.cards,
#cameraView {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
}

#cameraView {
    width: 100%;
    height: auto;
}

/* Full-screen background styles */
.fullscreen-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    display: none;
}

.fullscreen-bg-enabled .fullscreen-bg {
    display: block;
}

.fullscreen-bg-enabled #appTitle,
.fullscreen-bg-enabled #gameView h1 {
    display: none;
}

.fullscreen-bg-enabled #app,
.fullscreen-bg-enabled #gameView {
    background: none;
    box-shadow: none;
}

