body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
}

#container {
    width: 100vw;
    height: 100vh;
    background-color: whitesmoke;
    overflow: auto;
}

#countersPanel {
    background-color:whitesmoke;
}

#statusBar {
    display: flex;
    background-color:  #eee;
    color: black;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 32px;
    width: 100%;
}

#imageNumber {
    margin: 3px;
    margin-right: 10px;
    padding: 5px 10px 5px;
    border-radius: 5px 20px;
    background-color: #95afc0;
    
}

#totalCount {
    margin: 3px;
    border-radius: 5px 20px;
    background-color: #95afc0;
    padding: 5px 10px 5px;
}

#statusMessage {
    flex-grow: 1;
}

#buymeacoffee{
    outline: none;
    height: 30px;
    
}

.counter {
    transition: width 0.3s, height 0.3s;
    display: inline-block;
    min-height: 200px;
    width: 150px;
    background-color: lightgrey;
    margin: 5px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    user-select: none;
}

.counterContainer {
    display: flex;
    flex-direction: column;
    height: 200px;
    
}

.selectedCounter {
    background-color: white;
}

.currentCounter {
    display: flex;
    flex-grow: 2;
    font-size: 40px;
    align-items: center;
    justify-content: center;
}

.totalCounter {
    display: flex;
    flex-grow: 2;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    
}

.counterName {
    flex-grow: 1;
    text-align: center;
    outline: none;
    margin-right: 5px;
    margin-left: 5px;
    font-size: 20px;
}

/* Styles for the counterName input in counting mode */
.counterName.readOnly {
    pointer-events: none;
    background: transparent; /* make the input's background transparent */
    border: none; /* remove any border from the input */
    outline: none; /* remove focus outline */
    color: inherit; /* use the same text color as its parent element */
}

/* Styles for the counterName input in editing mode */
.counterName.editing {
    pointer-events: auto;
}

#toolbar {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    background-color: whitesmoke;
    width: 100%;
    user-select: none;
    padding: 0 10px;
    overflow: hidden;
}

.toolbarButton {
    display: inline-flex;
    align-items: center;
    text-align: center;
    background-color: #95afc0;
    overflow: hidden;
    padding: 10px;
    border: 1px solid black;
    border-radius: 10px; /* This will give the buttons rounded corners */
    margin: 0 5px; /* Optional: To give some space between buttons */
}

.toolbarButton:hover {
    background-color: cornflowerblue;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

#counterSize {
    width: 100px; 
    margin-left: 10px;
}

.slider-container {
    position: relative;
    display: inline-block;
}

#slider-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: rgb(155, 73, 73);
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 5px;
    visibility: hidden;  
    opacity: 0;
    transition: opacity 0.2s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.tooltip {
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    white-space: nowrap;
}

.switch:hover .tooltip {
    display: block;
}

/*settings panel*/
#settings{
    display: none;
}

#settingsPanel{
    display: grid;
    grid-template-columns: auto auto auto;
}

#settingsPanel .title{
    text-align: center;
    padding: 5px;
    border: 1px solid;
    text-size-adjust: initial;
    background-color: beige;
}

#settingsPanel .commandName{
    text-align: center;
    padding: 5px;
    border: 1px solid;
    text-size-adjust: initial;
}

#settingsPanel .key{
    background-color: aliceblue;
    text-align: center;
    padding: 5px;
    border: 1px solid;
    cursor: pointer;
}

#settingsPanel .waitingKey{
    background-color: chocolate;
    text-align: center;
    padding: 5px;
    border: 1px solid;
    cursor: none;
    animation: blinker 1s linear infinite;
}
 
@keyframes blinker {  
    50% { opacity: 0; }
}




/*
* Menu bar
*/
#menu
{
    background-color: #eee;
    color: #888;
    height: 32px;
    width: 100%;
    user-select: none;
}
.menu{
    float: left;
    cursor: pointer;
    padding-right: 8px;
    color: #888;
}

.menuTitle{
    display: inline-block;
    color: #888;
    margin: 0;
    padding: 8px;
    line-height: 16px;
    cursor: pointer;
}

.menuOptions{
    position: fixed;
    display: none;
    z-index: 20000;
    padding: 5px 0;
    background: #eee;
    width: 250px;
    max-height: calc(100% - 80px);
    overflow: auto;
    cursor: pointer;
    color: #888;
}

.menuOption{
    color: #666;
    background-color: transparent;
    padding: 5px 10px;
    margin: 0 !important;
    cursor: pointer;
}


.menuOption:hover{
    background-color: cadetblue;
}

.horizontalRule{
    border-color: #ddd;
    color: #888;
}

.menu:hover .menuOptions{
    display: block;
}

#messageBoxCopiedToClipboard {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    position: fixed; /* Fixed positioning to show on top */
    top: 10%; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    z-index: 1000; /* Make sure it's on top of other elements */
}

.hidden {
    display: none;
}