body {
    font-family: "Jersey 10", sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
}

.jersey-10-regular {
  font-family: "Jersey 10", sans-serif;
  font-weight: 400;
  font-style: normal;
}


#game-container-welcome {
    display: block;
    justify-content: space-between;
    padding: 20px;
}
#game-container, #question-list {
    display: inline-block;
    justify-content: space-between;
    padding: 20px;
}

#game-container-create {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

#user-scores {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

.form-panel, .questions-panel {
    width: 48%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.checkbox { display: -webkit-box; }

.label {
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"],
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.question-card {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.answers {
    margin-top: 10px;
}

button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background-color: #ff5a4f;
}

.hidden {
    display: none;
}

.existing-question-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #eef;
    border-radius: 5px;
}

.existing-question-item input {
    margin-right: 10px;
}


h3 {
    text-align: left;
}

.create-game-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.create-game-btn:hover {
    background-color: #16a085;
}

.content {
    display: flex;
    justify-content: space-between;
}

.game-list, .top-users {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.game-list {
    width: 75%;
}

.top-users {
    width: 25%;
}

.game-item {
    list-style: none;
    margin-bottom: 15px;
}

.game-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-name {
    font-size: 16px;
    color: #333;
}

.start-game-btn {
    padding: 5px 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.start-game-btn:hover {
    background-color: #2980b9;
}

.user-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}




@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
    body {
/*        background-color: #ccc;  Dark background for contrast */
    }
    
    #game-container, #question-list {
    display: inline-block;
    width: 95%;
    justify-content: space-between;
    padding: 20px;
    }

    #game-container-welcome {
        color: white;
    }

    .game-card {
        background-color: #444; /* Slightly lighter than the background */
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .game-name {
        font-size: 18px;
        margin-bottom: 10px;
        display: block;
    }

    .start-game-btn, .competition-mode-btn, .create-game-btn {
        background-color: #00008B; /* Dark blue */
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .start-game-btn:hover, .competition-mode-btn:hover, .create-game-btn:hover {
        background-color: #0000CD; /* Slightly lighter blue on hover */
    }
    
    
    #user-scores {
    margin-top: 100px;
    width: 25%;
    float: right;
    }

    .top-users {
        background-color: #d6d3d3;
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .user-item {
        color: #585555;
        margin-bottom: 10px;
    }

    h2, h3 {
        color: #000;
        margin-bottom: 20px;
    }

    .create-game-btn {
        display: block;
        width: 200px;
        margin: 20px auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center;
    }

    .game-list, .top-users {
        width: 100%;
        margin-bottom: 20px;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

button {
    background: #1abc9c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #16a085;
}

.input-field {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.question {
    font-weight: bold;
    margin: 20px 0;
    text-align: inherit;
}

.answer-options {
    list-style: none;
    padding: 0;
}

.answer-options li {
    margin-bottom: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.notification a {
    color: #fff;
    text-decoration: underline;
}

.section h2 {
    background: #18bc9d;
    color: #fff;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}

.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.game-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.game-card h3 {
    margin: 0 0 10px 0;
}

.answer-option {
    margin: 5px 0;
}

#user-scores {
    margin-top: 60px;
    width: 25%;
    float: right;
}

.score-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-name {
    font-weight: bold;
    color: #333;
}

.score-value {
    background-color: #c6ebc8;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

#game-questions {
    width: 70%;
    float: left;
}

.question-card {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.vote-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.vote-buttons span {
    margin: 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-buttons i {
    font-size: 20px;
    color: #555;
    transition: color 0.2s;
}

.vote-buttons i:hover {
    color: #333;
}

.vote-count {
    font-size: 16px;
    color: #666;
}


.answer-option {
    margin: 5px 0;
}

.submit-btn, .abort-btn {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.abort-btn {
    background-color: #f44336;
    color: white;
}

.submit-btn:hover, .abort-btn:hover {
    opacity: 0.8;
}



#game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.game-info-section {
    flex: 1;
    margin: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

#game-password {
    background-color: #f9f9f9;
}

.password-boxes {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.password-char {
    display: inline-block;
    padding: 10px;
    margin: 2px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
}

#game-qr-code img {
    margin-top: 10px;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.score-card {
    background-color: #f4f4f4;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.score-value {
    color: #2ecc71;
}

.notification {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

footer {
    margin: 20 20px;
    display: block;
    unicode-bidi: isolate;
}
