body {
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    background-image: url('/img/kostki/tlo_app.png');
    font-family: 'Montserrat', sans-serif;
    font-family: 'Roboto', sans-serif;
    font-family: 'Roboto Condensed', sans-serif;
    font-family: 'Rubik', sans-serif;
    font-size: 30px;
}

#roll-btn {
    position: absolute;
    width: 90%;
    background: rgb(249,249,249);
    background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #D60000;
    border-radius: 20px;
    box-shadow: 0px 5px 10px #00000080;
    font-weight: bold;
}

#settings-results-row {
    display: flex;
    position: absolute;
    top: 16vh;
    width: 90%;
    gap: 20px;
}

#settings {
    background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
    height: 5vh;
    aspect-ratio: 1;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    height: 7vh;
}

#result-box{
    color: white;
    border: 5px solid #FFFFFF;
    border-radius: 18px;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.checked {
    border: solid 2px #d60000;
}

@supports (-webkit-touch-callout: none) {
/* CSS specific to iOS devices */ 

    @media screen and (min-height: 320px) {
        body {
            background-image: url('/img/kostki/tlo_app.png');
            background-size: 100% 100vh;
        }

        #roll-btn {
            bottom: 25vh;
            font-size: 30px;
        }

        #settings-options {
            background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
            width: 100%;
            aspect-ratio: 1;
            display: flex;
            border-radius: 20px;
            position: absolute;
            top: 0vh;
            left: 0vh;
            flex-direction: row;
            z-index: 100;
        }

        #settings-options .settings-button{
            display: flex;
            align-items: flex-start;
            align-content: flex-start;
            flex-direction: column;
            height: 100%;
            padding-top: 1vh;
            padding-left: 1vh;
            width: 10%;
        }

        #settings-options .settings-button img {
            width: 58%;
            margin-left: 0.75vh;
            margin-top: 0.75vh;
        }
        
        #settings-options .settings-choose {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 90%;
            padding: 30px;
        }
        
        .settings-choose .title {
            color: #D60000;
            font-size: 30px;
            font-weight: bold;
        }
        
        .settings-choose .checkbox-list {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
        }
        
        .settings-choose .choose-button {
            color: #D60000;
            border: solid 1px #d60000;
            border-radius: 40px;
            width: 100%;
            height: 50px;
            display: flex;
            align-content: center;
            justify-content: center;
            align-items: center;
            font-size: 30px;
            font-weight: bold;
            margin-top: 10px;
            cursor: pointer;
        }
        
        .check-item-box {
            width: 50%;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .check-item {
            width: 7vh;
            aspect-ratio: 1;
            border: solid 2px #d1d1d1;
            border-radius: 100px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
        }
        .checked {
            border: solid 2px #d60000;
        }
    }

    @media screen and (min-height: 425px) {
        body {
            background-image: url('/img/kostki/tlo_app.png');
        }
    
        #roll-btn {
            bottom: 15vh;
            font-size: 25px;
        }
    }
}

@supports not (-webkit-touch-callout: none) {
/* CSS for other than iOS devices */ 
    @media screen and (min-height: 320px) {
        body {
            background-image: url('/img/kostki/tlo_app.png');
        }

        #roll-btn {
            bottom: 15vh;
            font-size: 50px;
        }
    }

    @media screen and (min-height: 425px) {
        body {
            background-image: url('/img/kostki/tlo_app.png');
        }
    
        #roll-btn {
            bottom: 10vh;
            font-size: 25px;
        }

        #settings-options {
            background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
            width: 45vh;
            aspect-ratio: 1;
            display: flex;
            border-radius: 20px;
            position: absolute;
            top: 0vh;
            left: 0vh;
            flex-direction: row;
            height: 60vh;
            z-index: 100;
        }
        
        #settings-options .settings-button{
            display: flex;
            align-items: flex-start;
            align-content: flex-start;
            flex-direction: column;
            height: 100%;
            padding-top: 1vh;
            padding-left: 1vh;
            width: 10%;
        }

        #settings-options .settings-button img {
            width: 58%;
            margin-left: 0.75vh;
            margin-top: 0.75vh;
        }
        
        #settings-options .settings-choose {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 90%;
            padding: 30px;
        }
        
        .settings-choose .title {
            color: #D60000;
            font-size:25px;
            font-weight: bold;
        }
        
        .settings-choose .checkbox-list {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
        }
        
        .settings-choose .choose-button {
            color: #D60000;
            border: solid 1px #d60000;
            border-radius: 40px;
            width: 100%;
            height: 30px;
            display: flex;
            align-content: center;
            justify-content: center;
            align-items: center;
            font-size: 25px;
            font-weight: bold;
            margin-top: 15px;
            cursor: pointer;
        }
        
        .check-item-box {
            width: 50%;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .check-item {
            width: 7vh;
            aspect-ratio: 1;
            border: solid 2px #d1d1d1;
            border-radius: 100px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            cursor: pointer;
        }
        .checked {
            border: solid 2px #d60000;
        }

        #result-box{
            color: white;
            border: 4px solid #FFFFFF;
            border-radius: 18px;
            width: 100%;
            display: flex;
            align-content: center;
            justify-content: space-between;
            align-items: center;
            padding-left: 20px;
            padding-right: 20px;
            font-size: 20px !important;
        }        
    }
}

@media screen and (min-height: 768px) {
    #settings-options {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        width: 45vh;
        aspect-ratio: 1;
        display: flex;
        border-radius: 20px;
        position: absolute;
        top: 0vh;
        left: 0vh;
        flex-direction: row;
        height: 55vh;
    }
}

@media screen and (min-width: 1024px) {
    
    body {
        background-image: url('/img/kostki/tlo.png');
    }

    #roll-btn {
        bottom: 4.5vh;
        font-size: 30px;
        width: 95%;
        border-radius: 35px;
        height: 6vh;
    }
    
    #result-box {
        color: white;
        border: 5px solid #FFFFFF;
        border-radius: 18px;
        width: 49vh;
        display: flex;
        align-content: center;
        justify-content: space-between;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
        position: absolute;
        right: -4vh;
        top: 3vh;
        height: 5vh;
    }

    #settings {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        height: 5vh;
        aspect-ratio: 1;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        border-radius: 100px;
        height: 7vh;
        position: absolute;
        top: -12vh;
        left: -2vh;    
    }

    #settings-options {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        height: 35vh;
        aspect-ratio: 1;
        display: flex;
        border-radius: 20px;
        position: absolute;
        top: -12vh;
        left: -2vh;    
        flex-direction: row;
        z-index: 100;
    }
    
    #settings-options .settings-button{
        display: flex;
        align-items: flex-start;
        align-content: flex-start;
        flex-direction: column;
        height: 100%;
        padding-top: 1vh;
        padding-left: 1vh;
        width: 15%;
    }
    
    #settings-options .settings-choose {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 85%;
        padding: 10px;
    }
    
    .settings-choose .title {
        color: #D60000;
        font-size: 25px;
        font-weight: bold;
    }
    
    .settings-choose .checkbox-list {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .settings-choose .choose-button {
        color: #D60000;
        border: solid 1px #d60000;
        border-radius: 20px;
        width: 100%;
        height: 34px;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        font-size: 17px;
        font-weight: bold;
        margin-top: 10px;
        cursor: pointer;
    }
    
    .check-item-box {
        width: 50%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .check-item {
        width: 5vh;
        aspect-ratio: 1;
        border: solid 2px #d1d1d1;
        border-radius: 46px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
    }

    .checked {
        border: solid 2px #d60000;
    }
}

@media screen and (min-width: 1440px) {
    #settings-options {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        height: 39vh;
        aspect-ratio: 1;
        display: flex;
        border-radius: 20px;
        position: absolute;
        top: -12vh;
        left: -3vh;
        flex-direction: row;
    }

    #settings {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        height: 5vh;
        aspect-ratio: 1;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        border-radius: 100px;
        height: 7vh;
        position: absolute;
        top: -12vh;
        left: -3vh;
    }
}

@media screen and (min-width: 1920px) {
    #settings-options {
        background: linear-gradient(180deg, rgba(249,249,249,1) 0%, rgba(216,216,216,1) 100%);
        height: 35vh;
        aspect-ratio: 1;
        display: flex;
        border-radius: 20px;
        position: absolute;
        top: -12vh;
        left: -6vh;
        flex-direction: row;
    }
}



.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex: 1;
	 color: #444444;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.ui-controls {
    position: relative;
    width: 100%;
    max-width: 500px;
    user-select: none;
    line-height: 1.5;
    padding: 10px;
	 margin-top: -5%;
}

.ui-controls .score {
    margin-left: .25em;
}

.ui-controls #score-result {
    display: inline-block;
    min-width: 1.8em;
}

.ui-controls #roll-btn {
    background-color: #4BC0C8;
    font-weight: bold;
    border: none;
    padding: .5em 1em;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin: 1em 0 0 0;
    transition: background-color 0.2s, transform 0.1s;
}

.ui-controls #roll-btn:active {
    transform: translateY(4px);
}

.links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    font-family: sans-serif;
}
a {
    text-decoration: none;
    color: black;
    margin-left: 1em;
}
a:hover {
    text-decoration: underline;
}
a img.icon {
    display: inline-block;
    height: 1em;
    margin: 0 0 -0.1em 0.3em;
}