:root {
    background-color: #f0f0f0;
    min-height: 100vh;
    padding: 40px 0;
    --button-hover-bg-color: #dcdcdc;   
    --modal-url-button-bg-color: rgb(241, 241, 241);        
    --button-bg-color: rgb(255, 255, 255); /* #f44336;*/
    --option-bar-bg-color: lightgray; /* #a0a1f6; */
    --option-label-color: rgb(0, 0, 0);
    --font-family-alt: "Barlow Condensed", sans-serif;
    --font-family: "Barlow", sans-serif;
    --main-modal-background-color: #ffffff;
}   

body {
    font-family: var(--font-family);
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.minimum-spacing 
{
  letter-spacing: -0.005rem;
  font-weight: 700;
  font-style: italic;
}

.zero-spacing 
{
  letter-spacing: -0.5rem;
}

.app-logo-style {
    font-family: var(--font-family);
    font-weight: 700; 
    font-size: 3em;
    text-align: center;
}

h1 {
    color: #6b6b6b;
}

h2 {
    text-align: center;
}

input {
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #2e2e2ea2 dotted;
  border-bottom-width: 0.1rem;
  
}

.poll {
    margin: 1em 0;
    padding: 1rem;
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 0.3rem solid #040404;
}


.poll h2 {
    margin-top: 0;
    justify-content: center;
    text-align: center;
}   


.poll-value {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.poll-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.poll-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.mode-icon {
    font-size: 1.2rem;
    font-family: var(--font-family-alt);
    margin: 0.1rem;
    vertical-align: middle;
    text-align: right;
}

.poll-title {
    font-family: var(--font-family-alt);
    font-size: 2rem;
    font-weight: 500;
    text-align: left;
    border-width: 0;
    padding-left: 0.2rem;
    word-wrap: break-word;
    background-color: transparent;
    resize: none;
    overflow-wrap: break-word;
    white-space: normal;
    height: auto;
    min-height: 1.5em;
    width: 100%;
    color: rgb(42, 42, 42);
}

.poll-options {
    margin: 0.2rem;
    margin-bottom: 2em;

}

.poll-option-container {
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
    /* background-color: #f0f0f0; */
    padding: 0.4rem;
    border-style: dotted;
    border-color: lightgray;
}

.poll-option-bar-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.poll-option-label {
    font-family: var(--font-family-alt);    
    font-size: 1.5rem;
    text-align: left;
    border-width: 0;
    background-color: transparent;
    padding-left: 0.5em;
    width: 80%;
    color: var(--option-label-color)
}

.poll-option-bar-buttons {
    padding-left: 0.03rem;
    padding-top: 0.1rem;
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-buttons-container
{
    display: flex;
    margin-left: 1em;

}

.app-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

button {
    color: black; /* Explicitní barva textu */
    -webkit-appearance: none; /* Vypnutí nativního stylu iOS */
    appearance: none;
    font-family: var(--font-family);
    font-weight: 700;
    background-color: var(--button-bg-color);
    padding: 0.4rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 0.2rem;
    cursor: pointer;
    position: relative;
    opacity: 1;
    border-style: solid;
    border-color: black;
    border-width: 0.2rem;
    filter: drop-shadow(0.3rem 0.3rem 0 black);
}

.button-main {
    color: black;
    background-color: white;
    opacity: 1;
    font-size: 1.1rem;    

}

.button-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

button:hover {
    background-color: var(--button-hover-bg-color);
}

.button-small {
    line-height: 1.2rem;
    font-weight: normal;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0.1em;
    padding: 0;
    width: 1.2em;
    height: 1.2em;
    border-radius: 2em;
    padding-bottom: 0.12em;
    filter: drop-shadow(0.2rem 0.2rem 0 black);
}

.button-small:hover {
    color: white;
    opacity: 1;
}
    
.option-bar {
    cursor: pointer;
    width: 100%;
    height: 2em;
    align-items: center;    
    padding-left: 0em;
    position: relative;
    /* background-color: var(--option-bar-bg-color); */
    
    box-sizing: border-box;
    background-color: black;
    color: black;
}

.option-bar.disabled {
    cursor: not-allowed;
    pointer-events: none;
    background: repeating-linear-gradient(
     -45deg, transparent, transparent 0.3rem,
     rgba(0, 0, 0, 0.8) 0.3rem,
     rgba(0, 0, 0, 0.8) 0.6rem); 
}

.new-option-button {
    margin-top: 0.3rem;
    margin-left: 0rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-dialog {
    position: relative;
    background: var(--main-modal-background-color);
    padding: 2rem;
    border-radius: 0.2rem;
    min-width: 20rem;
    max-width: 40rem;
    font-weight: normal;
    border-width: 0.3rem;
    border-style: solid;
    border-color: black;
}

.modal-paragraph {
    font-family: var(--font-family);
    margin: 1rem;
    width: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
}

.modal-button-container {
    position: absolute;
    top: 0em;
    right: 0em;
    margin: 1em;
}

.modal-url-button {
   font-size: 0.9rem;
    padding: 0.3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;

    background: var(--modal-url-button-bg-color);
    filter: drop-shadow(0.2rem 0.2rem 0 black); 
}