*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Arial';
    user-select: none;
    /*font-family: 'Open Sans', sans-serif;*/
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

#nav{
    width: 300px;
    transition: width .3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    background: rgb(88,18,66);
    background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
    font-size: 24pt;
    position: relative;
    color: #fff;
    box-shadow: 2px 2px 58px -30px rgba(66, 68, 90, 1);
}

#nav li{
    /*padding: 10px 40px 0 40px ;*/
    /*padding: 0 20px;*/
    margin: 5px 60px 10px 60px;
    list-style: none;
    text-align: start;
    text-decoration: none;
    color: #fff;
    font-size: 22px;
}

#nav li img{
    float: left;
    margin-right: 10px;
}

a{
    text-decoration: none;
    color: inherit;
}

#nav li:hover{
    border-bottom: 1px solid lightpink;
    color: lightpink;
    cursor: pointer;
}

main{
    padding: 50px 75px 0 75px;
    width: 100%;
    flex: 1;
    color: rgba(33,14,14,1);
}

hr{
    margin: 10px 0;
    width: 100%;
    border: 1px solid #6D5B73;
}

body{
    background-color: gainsboro;
}

.flex{
    display: flex;
    flex-wrap: wrap;
}

.right{
    float: right;
}

.left{
    float: left;
    padding: 0 10px;
}

.down{
    position: absolute;
    bottom: 0;
    width: 300px;
    padding: 10px 0;
}

.m25{
    margin: 25%;
}

.m25l{
    margin: 25%;
    display: none;
}

#listnav{
    padding-top: 40px;
}

.titleText{
    color: rgba(33,14,14,1);
    font-size: 28pt;
}

.wine-icon{
    width: 100px;
    margin: 0 0 0 0;
    opacity: .5;
    float: right;
}

.miejscenawino{
    width: 80px;
    height: 80px;
}

.miejscenawino img{
    width: 80px;
    height: 80px;
}

.polkanawino{
    display: flex;
}

.polkanawino  div{
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 10px;
}

.polkanawino > div{
    border: 0.001em solid #704e65;
}

.polkanawino > div:active{
    border: 1px dotted #882e65;
}

.active {
    border: 1px solid red !important;
}

.wina{
    background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
    color: #fff;
    opacity: 0.95;
    width: -webkit-fit-content;
    height: -webkit-fit-content;
    display: flex;
    flex-direction: column;
}

.mt50{
    margin-top: 50px;
}

table textarea{
    width: 100%;
    height: fit-content;
    font-family: "Arial";
    font-size: inherit;
}

table option, select{
    width: 100%;
    font-family: "Arial";
    font-size: inherit;
}

.submitbutton{
    float: right;
    width: 25%;
    height: 40px;
    padding: 12px;
    border-radius: 10px;
    margin-top: 30px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    opacity: .9;
    background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
}

.tabbutton{
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 5px;
    opacity: .9;
    background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
}

h2{
    margin-top: 40px
}

.brakwin{
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}

.tab{
    max-width: 800px;
    height: auto;
    padding: 20px;
    margin: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 7px 21px -14px var(--outline);
}

.tab-wine{
    padding: 30px;
    text-align: center;
    width: calc(50% - 5px);
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 7px 21px -14px var(--outline);
}
.tab-wine b{
    font-weight: bold;
    color: #3d3d3d;
    margin-top: 5px;
    display: block;
}

.tab-wine div img{
    width: 100%;
}

.form{
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-around;
}

.form div{
    display: flex;
    padding: 20px 0;
    align-items: center;
    justify-content: flex-end;
}

.form div img{
    padding-right: 5px;
    padding-left: 5px;
}

.circle-color{
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: auto;
}

.current-place{
    display: flex;
    margin-top: 30px;
    margin-bottom: 20px;
}

.current-place img{
    width: inherit;
}

.current-place div{
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-place span{
    background-color: #fff;
    width: 100%;
    padding: 10px;
    margin: 20px;
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
    #nav{
        width: calc(100vw - 20px) !important;
        height: 50px !important;
        position: fixed;
        bottom: 0;
        margin: 10px;
        border-radius: 20px;
    }

    main{
        padding: 10px;
    }

    body{
        display: block;
    }

    table{
        font-size: 11px;
        width: 100%;
    }

    #listnav{
        background: rgb(88,18,66);
        background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
    }

    #nav ul{
        position: absolute;
        z-index: 1;
        width: 100%;
        box-shadow: 2px 2px 58px -30px rgba(66, 68, 90, 1);
        transition: width .3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .down{
        display: none;
    }

    .m25{        
        margin: 13px;
        position: absolute;
        z-index: 2;
        right: 0;
    }

    .m25l{
        margin: 13px;
        position: absolute;
        display: block;
        z-index: 2;
        left: -10px;
    }

    .wine-icon{
        width: 110px;
        opacity: .7;
    }

    .titleText{
        margin: -10px 10px 0 -10px;
        background: linear-gradient(150deg, #65101d 10%, #4c0c16 50%, #65101d 90%);
        color: #fff;
        padding: 40px;
        border-radius: 0 0 40px 40px;
        font-size: 24px;
        font-weight: bold;
        display: block;
        width: 60%;
        text-align: center;
    }
    
    .miejscenawino{
        width: 100%;
        height: 100%;
    }
    
    .miejscenawino img{
        width: 70%;
        height: 70%;
    }

    .polkanawino div{
        aspect-ratio: 1;
        align-items: center;
        justify-content: center;
        display: flex;
        width: 20%;
        width: -webkit-fill-available;
        padding: 0;
    }

    .wina{
        width: 100%;
    }

    td, th{
        padding: 10px 5px;
    }

    .tab{
        max-width: calc(100vw - 20px);
        margin: 0;
    }
}