html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: rgb(245, 247, 250);
}

#topBar {
    display: flex;
    flex-direction: column; /* Default layout: stacked */
    align-items: center;
    gap: 10px;
}

#topBar.selected {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    display: flex
;
}



#board {
    width: 100%;
    height: 100%;
    overflow: hidden;

}

.card {
    width: 320px;
    height: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 1%;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    background-color: white;
    transform: translateX(-50%) translateY(-50%) scale(0.95);
}

@media screen {

}

#title{
    background-color: rgb(245, 247, 250);
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}


#userContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgb(245, 247, 250);
    padding: 50px;
    justify-content: space-evenly;
}

.user-box {
    width: 150px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    background-color: #f9f9f9;
}

.user-box:hover {
    transform: scale(1.05);
    /*border-color: #007bff;*/
}

/*.user-box.selected {*/
/*    border-color: #007bff;*/
/*    background-color: #e6f0ff;*/
/*}*/

.user-image {
    width: 60%;
    aspect-ratio: 1 / 1;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.username.test {
    font-size: 16px;
    font-weight: 500;
}

.user-box.selected{
    border: none;
    background-color: rgb(245, 247, 250);
}


.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: confettiAnimation 5s infinite;
}

.confetti-gif {
    max-width: 100%;
    height: auto;
}

.voting-complete-message {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: white;
    z-index: 10000;
}

.card * {
    margin: 0;
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


.swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.like-icon, .dislike-icon {
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: rgba(0, 128, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
}

.dislike-icon {
    background: rgba(255, 0, 0, 0.7);
}


.new-dest-msg {
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    color: white;
    z-index: 10000;
}

.new-dest-msg button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.new-dest-msg button:hover {
    background-color: #45a049;
}

#tripContainer.hidden {
    display: none;
}

#tripContainer {
    margin: 20px;
}

.trip-section p {
    padding: 10px;
}

.trip-section h2 {
    margin-top: 1em;
    font-size: 1.2em;
    color: #333;
}

.trip-box {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    background: white;
    transition: background 0.3s;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trip-box:hover {
    background: #f0f0f0;
}

.trip-box.selected {
    background: #dff0d8;
}

.leaderboard-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.leaderboard-btn:hover {
    background-color: #0056b3;
}