html {
    /* 22px przy 1440px */
    font-size: calc(12px + 0.28vw);
}

body {
    margin: 0;
    padding: 0;
    background: #87011c;
    background: linear-gradient(270deg, rgb(135, 1, 28) 0%, rgb(135, 0, 53) 100%);
    display: flex;
    flex-direction: column;
}

div {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

:focus, :active {
    outline: 0;
}

select:focus, select:active, button:focus, button:active {
    outline: 0;
    border: 0;
}

input, select {
    outline: 0;
    border: 0;
}

button::-moz-focus-inner {
    border: 0;
}

.horizontal-section {
    width: 100%;
}

#horizontal-footer {
    background: #eee;
}

header, main, footer {
    display: flex;
    box-sizing: border-box;
    padding: 2rem;
    margin: 0 auto 0 auto;
}

header {
    text-align: center;
    margin: 0 auto 0 auto;
    font: 1rem 'Open Sans', sans-serif;
    color: white;
    max-width: 1200px;
    width: 100%;
}

#logo {
    margin: 1rem 0 0 6rem;
    width: 15rem;
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    min-height: 100vh;
    max-width: 1440px;
}

main > section {
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

main .input-group {
    margin: 0.5rem;
    font-size: 1.5rem;
}

main .input-group > label {
    margin-right: 0.5rem;
    font: bold 1.1rem 'Ubuntu', sans-serif;
    text-transform: lowercase;
}

main .configuration {
    color: #fff;
    font: 1rem 'PT Serif', sans-serif;
    display: flex;
    flex-direction: column;
    border-radius: 0.2rem;
    margin: 1rem;
}

main .configuration .input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0.5rem;
}

main .configuration .input-group div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

main .configuration .input-group input[type="number"] {
    padding: 0.5rem;
    text-align: center;
    max-width: 3rem;
}

main .configuration .input-group input {
    height: 1.5rem;
    font: 1.5rem "Lato", sans-serif;
    background: #fff;
}

main .configuration .input-group select {
    height: 2rem;
    min-width: 12rem;
    font: 1rem "Lato", sans-serif;
    cursor: pointer;
    background: #fff;
}

main .chat {
    width: 100%;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.check-radio {
    border: 4px solid #aa0223;
    background: #aa0223;
    border-radius: 8px;
    padding: 5px 10px;
    margin: 0 0.5rem;
    cursor: pointer;
}

.check-radio label {
    cursor: pointer;
    font: 2rem "PT Serif", sans-serif;
}

.check-radio input {
    cursor: pointer;
    margin-left: 0;
}

#iam-age-input-group {
    padding: 6px;
    background: #aa0223;
    border: 3px dashed #aa0223;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.search-age-input-group {
    padding: 6px;
    background: #aa0223;
    border: 3px dashed #aa0223;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.search-age-input-group span {
    margin-right: 0.5rem;
}

.location-input-group {
    padding: 6px;
    background: #aa0223;
    border: 3px dashed #aa0223;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.input-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 2rem;
    height: 2rem;
    border: 5px solid #aa0223;
    border-radius: 10px;
    color: #aa0223;
    font: bold 1.5rem 'Ubuntu', sans-serif;
    cursor: pointer;
}

#message-list {
    box-sizing: border-box;
    overflow-y: scroll;
    height: 60vh;
    background: #fff;
    margin: 0.5rem;
    border-radius: 0.2rem;
}

#system-message {
    margin: 0 0 0 0.5rem;
    font: 0.8rem 'Lato', sans-serif;
    height: 1rem;
    color: #fff;
}

#message-list .message {
    padding: 1rem 1rem 1rem 2rem;
    font: bold 1.1rem 'Open Sans', sans-serif;
    color: #000;
    display: flex;
    flex-direction: column;
}

#message-list .message.mine {
    font: normal 1rem 'Open Sans', sans-serif;
    background: linear-gradient(90deg, rgb(235, 235, 235) 0%, rgb(255, 255, 255) 100%);
    padding-left: 1rem;
}

#message-list .message .date {
    color: #333;
    font: 0.8rem 'Lato', sans-serif;
    text-align: right;
}

#message-list .message .content {
    white-space: pre-line;
}
#message-list .message.mine .content {
    margin-right: 5rem;
    text-align: right;
}

#input-group-send-enter {
    margin: 0 0 1rem 0.5rem;
    color: #fff;
    font: 1rem 'Lato', sans-serif;
}

#input-group-send-enter input, #input-group-send-enter label {
    cursor: pointer;
}

#message-to-send {
    resize: vertical;
    margin: 0.5rem;
    padding: 0.5rem;
    min-height: 4rem;
    font: 1rem "Open Sans", sans-serif;
    color: #333;
    border-radius: 0.2rem;
}

.button-control {
    display: inline-block;
    min-width: 20rem;
    height: 3rem;
    font: 1rem 'Lato', sans-serif;
    color: #fff;
    border: 0;
    outline: 0;
    border-radius: 0.3rem;
    cursor: pointer;
    padding: 0.5rem;
    outline: none;
}

.button-control:active, .button-control:focus {
    outline: none;
}

.button-control span:focus, .button-control span:active {
    outline: none;
}

.button-control i {
    color: #fff;
    margin-left: 0.5rem;
}

#button-control-start {
    background: green;
    border: 1px solid #00eb00;
    margin: 0.5rem auto 4rem auto;
}

#button-control-start:hover {
    background: forestgreen;
}

#button-control-stop {
    background: #410110;
    margin: 0 auto 0.5rem auto;
    visibility: hidden;
}

#button-control-stop:hover {
    background: #550110;
}

footer {
    display: flex;
    flex-direction: column;
    background: #eee;
    min-height: 5rem;
    max-width: 1200px;
}

#company-info {
    display: flex;
    flex-direction: column;
}

#company-name {
    font: 1.5rem 'Ubuntu', sans-serif;
    color: #333;
    margin-bottom: 0.2rem;
}

#company-email {
    font: 1rem 'Lato', sans-serif;
    text-decoration: none;
    color: #333;
    margin-bottom: 1rem;
}

#company-email:hover {
    text-decoration: underline;
}

#ad-link {
    /*display: inline-block;*/
    display: none;
    width: 7rem;
    text-align: center;
    padding: 0.5rem;
    background: #87011c;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0.2rem;
    font: 1rem 'Ubuntu', sans-serif;
    pointer-events: none;
}

#ad-link i {
    position: absolute;
    font-size: 0.75rem;
}

#ad-link span {
    margin: 0 0.5rem 0 0;
}

#modal-leave-question {
    display: none;
    position: fixed;
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font: bold 1rem 'Lato', sans-serif;
}

#modal-leave-question > div {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto 0 auto;
    padding: 1rem;
    width: 40vw;
    min-height: 7rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #000;
    border-radius: 0.5rem;
}

#modal-leave-question button {
    border: 1px solid #333;
    outline: none;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    width: 5rem;
    height: 4rem;
    font: bold 1.2rem 'Lato', sans-serif;
    color: #000;
}

#cookies-message {
    box-sizing: border-box;
    display: none;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    width: 100%;
    bottom: 0;
    background: #eee;
    color: #333;
    padding: 1rem;
    font: 1rem 'PT Serif', sans-serif;
}

#cookies-message p {
    box-sizing: border-box;
    width: 70%;
    margin: 0 auto 0 auto;
}

#cookies-message button {
    display: inline-block;
    margin: 6px auto 0 auto;
    padding: 0.5rem;
    border-radius: 6px;
    font: 1rem 'Ubuntu', sans-serif;
    color: #fff;
    background: #87011c;
    cursor: pointer;
}

.spinner {
    box-sizing: border-box;
    display: none;
    width: 3rem;
    text-align: left;
    margin: 0 0 auto 0;
    padding-left: 0.5rem;
}

.spinner > div {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
    -moz-animation: bouncedelay 1.4s infinite ease-in-out;
    -ms-animation: bouncedelay 1.4s infinite ease-in-out;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    -moz-animation-delay: -0.32s;
    -ms-animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    -moz-animation-delay: -0.16s;
    -ms-animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0.0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@-moz-keyframes bouncedelay {
    0%, 80%, 100% {
        -moz-transform: scale(0.0)
    }
    40% {
        -moz-transform: scale(1.0)
    }
}

@-ms-keyframes bouncedelay {
    0%, 80%, 100% {
        -ms-transform: scale(0.0)
    }
    40% {
        -ms-transform: scale(1.0)
    }
}

/* Extra large devices - 45 kolumny */

/* Very large devices - 45 kolumny*/
@media (max-width: 1440px) {

}

/* Large devices (desktops, 992px and up) - 15 kolumn */
@media (max-width: 1100px) {

}

/* Medium devices (tablets, 768px and up) 15 kolumn */
@media (max-width: 850px) {
    #logo {
        margin: 0 auto 0 0;
    }

    main {
        flex-direction: column;
    }

    #input-group-send-enter {
        display: none;
    }

    .configuration:nth-child(3) {
        align-self: flex-end;
    }

    .configuration:nth-child(3) .input-group {
        justify-content: flex-end;
    }

    .configuration:nth-child(3) .input-group input:last-child {
        margin-right: 0;
    }
}

/* Small devices (landscape phones, 576px and up) - 15 kolumn*/
@media (max-width: 700px) {
    body {
        background: linear-gradient(0deg, rgb(135, 1, 28) 0%, rgb(135, 0, 53) 100%);
    }

    header {
        padding-bottom: 0;
    }

    main {
        padding-top: 1rem;
    }

    main .configuration .input-group input {
        height: 2rem;
    }

    main .configuration .input-group select {
        height: 2.5rem;
    }

    #modal-leave-question > div {
        width: 60vw;
    }

    #cookies-message p {
        width: 95%;
    }
}

/* Extra small devices (portrait phones, less than 576px) - 5 kolumny */
@media (max-width: 550px) {
    #logo {
        margin: 0 auto 0 auto;
    }

    #modal-leave-question > div {
        width: 80vw;
    }
}