body {
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    background-color: #ededed;
    color: #2e8b57;
}

.navbar {
    width: 100%;
    background-color: #2e8b57;
    color: white;
    padding: 1vh 2vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.navbar h1 {
    margin: 0;
    font-size: 2.5vh;
}

.manual-mode {
    text-align: left;
    max-width: 600px;
    margin: auto;
    margin-top: 2vh;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2vh 0 0.5vh;
}

label>span {
    flex: 1;
}

input,
select {
    flex: 0.3;
    padding: 1vh;
    text-align: right;
    margin-left: 2vh;
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
}

.status-emoji {
    font-size: 2vh;
    margin-left: 1vh;
    flex: 0;
}

#finalDecision {
    font-size: 2vh;
    font-weight: bold;
    margin-top: 2vh;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2vh;
    border-radius: 1vh;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 40vh;
    width: 100%;
}

.modal-content label {
    text-align: left;
    margin-bottom: 1vh;
}

.modal-buttons {
    margin-top: 2vh;
    display: flex;
    justify-content: center;
}

.modal-buttons button {
    margin: 0.5vh;
    padding: 1vh 2vh;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
}

.modal-buttons button:hover {
    background-color: #276b4a;
}

#showResultButton {
    margin-top: 3vh;
    padding: 1vh 2vh;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#showResultButton:hover {
    background-color: #276b4a;
}

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

.column {
    flex: 1;
    padding: 2vh;
    box-sizing: border-box;
    min-width: 40vh;
}

.column-container {
    padding: 2vh;
    box-sizing: border-box;
    margin-bottom: 1vh;
}

.section {
    margin-bottom: 1vh;
}

.section h3 {
    margin-bottom: 2vh;
}

.output-container {
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
    padding: 1vh;
    box-sizing: border-box;
    min-height: 25vh;
    background-color: #ffffff;
}

.square-container {
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
    padding: 2vh;
    box-sizing: border-box;
    width: 25vh;
    height: 25vh;
    margin: auto;
    background-color: #ffffff;
}

@media (max-width: 900px) {
    .column {
        flex: 100%;
    }
    .square-container {
        width: 24vh;
        height: 24vh;
    }
    label {
        margin: 1vh 0;
    }
    #showResultButton {
        margin-top: 1vh;
    }
    .navbar h1 {
        font-size: 2vh;
    }
}

input::placeholder {
    color: #2e8b57;
}

select {
    color: #2e8b57;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5vh;
    padding-left: 1vh;
    justify-content: space-between;
}

.checkbox-container label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.checkbox-container input {
    transform: scale(1.2);
    accent-color: #2e8b57;
}

.checkbox-container input:checked {
    background-color: #2e8b57;
    color: white;
}

.vote-result {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2vh;
    font-weight: bold;
    margin-top: 1vh;
    margin-bottom: 0vh;
    text-align: center;
    background-color: #ffffff;
    color: #2e8b57;
    padding: 0.5vh;
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
}

.vote-container {
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
    padding: 1vh;
    box-sizing: border-box;
    height: 39vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.documentation-container {
    padding: 1vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10.5vh;
    flex-wrap: wrap;
}

.vote-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.result-image {
    width: 100%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
}

.result-text {
    font-size: 2vh;
    font-weight: bold;
    margin-top: 1vh;
}

.footer {
    width: 100%;
    background-color: #2e8b57;
    color: white;
    padding: 0.5vh 0vh;
    text-align: right;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer a {
    color: white;
    margin-right: 1vh;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .vote-result {
        font-size: 1.5vh;
        padding: 0.3vh;
    }
}

.documentation-button {
    background-color: #2e8b57;
    color: white;
    padding: 1vh;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    width: 10vh;
    height: 10vh;
    box-sizing: border-box;
    margin: 0 2vh;
    gap: 0.75vh; 
}

.documentation-button:hover {
    background-color: #276b4a;
}

.documentation-button i {
    font-size: 4vh;
}

.mail-results-button {
    align-self: center;
    background-color: #2e8b57;
    color: white;
    padding: 1vh 2vh;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.mail-results-button:hover {
    background-color: #276b4a;
}

.modal-buttons button,
#showResultButton,
.mail-results-button {
    font-weight: bold;
}

sup {
    color: orange;
}

/* Save dialog styles */
.save-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.save-dialog-content {
    background: white;
    padding: 2vh;
    border-radius: 1vh;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.save-preview {
    max-width: 100%;
    max-height: 50vh;
    margin-bottom: 2vh;
    border: 1px solid #ccc;
    box-shadow: 0 0.2vh 0.4vh rgba(0, 0, 0, 0.1);
}

.filename-container {
    display: flex;
    align-items: center;
    margin-bottom: 2vh;
    width: 100%;
    justify-content: center;
}

.save-filename {
    padding: 1vh;
    border: 1px solid #2e8b57;
    border-radius: 0.5vh;
    margin: 0 1vh;
    width: 50%;
}

.save-dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 2vh;
}

.save-dialog-buttons button {
    padding: 1vh 2vh;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
    font-weight: bold;
    min-width: 10vh;
}

.save-dialog-buttons button:hover {
    background-color: #276b4a;
}