/**
 * COPYRIGHT 2023 Micah De Silva
 */

 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #264653;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px;
}

button {
    font-family: 'Source Sans Pro', sans-serif;
}

.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 40vh;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-card,
.on-the-block-card {
    background-color: #2a9d8f;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
    transition: all .3s ease-in-out;
    position: relative;
}

.player-card input[type="text"],
.on-the-block-card input[type="text"] {
    margin: 5px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    width: 100%;
}

.player-card input[type="text"]:disabled,
.on-the-block-card input[type="text"]:disabled {
    color: #ffffff;
    background-color: #264653;
    border-color: #264653;
}

.add-player-btn {
    width: 100%;
    padding: 10px;
    background-color: #E76F51;
    color: #ffffff;
    font-size: 24px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border: 0;
}

.add-player-btn:hover {
    background-color: #E76F51;
}

.save-btn {
    width: 100%;
    padding: 10px;
    background-color: #e76f517a;
    color: #ffffff;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border: 0;
}

.save-btn:hover {
    background-color: #e76f517a;
}


.voting-btn,
.next-btn {
    width: 49%;
    padding: 10px;
    background-color: #E76F51;
    color: #ffffff;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border: 0;
}

.edit-btn,
.prev-btn {
    width: 49%;
    padding: 10px;
    background-color: #e76f517a;
    color: #ffffff;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border: 0;
}


.edit-btn:hover {
    background-color: #e76f517a;
}

.voting-btn:hover {
    background-color: #E76F51;
}

.button-row {
    display: flex;
    justify-content: space-between;
}

.cycling-btn {
    flex: 1;
    margin: 5px;
    padding: 10px;
    font-size: 14px;
    color: #ffffff;
    background-color: #264653;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.on-the-block {
    padding-bottom: 10px;
}

.voting-for-graphic {
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
}


/* VOTE RESULTS */

.vote-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 10px auto;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all .3s ease-in-out;
}

.vote-results-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.vote-result {
    font-size: 18px;
    margin-bottom: 10px;
}

.socialist-text {
    color: #F4A261;
    font-weight: bold;
}
  
.capitalist-text {
    color: #2a9d8f;
    font-weight: bold;
}


/* anims */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* info container */

.info-icon {
    position: fixed;
    top: 0.5em;
    right: 0.5em;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.info-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.info-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    font-size: small;
}

.close-btn {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}