@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Codystar:wght@300;400&family=Indie+Flower&family=Titan+One&family=Press+Start+2P&family=Caveat&display=swap');

@font-face { font-family: 'DOSFont'; src: url('Perfect DOS VGA 437.ttf') format('truetype'); }
/*
SCREEN SIZE ON PHONE: 415px about.
My screen is: 440x800. 

font-family: 'Bungee', cursive;
font-family: 'Codystar', cursive;
font-family: 'Indie Flower', cursive;
font-family: 'Titan One', cursive;
font-family: 'Press Start 2P', cursive;
font-family: 'Caveat', cursive;

*/
html, body {
    font-family: 'Bungee', cursive;
    background-color: #333333;
    color: black;  
    font-size: 14px;
    padding:0;
    margin:0;
	height: 100vh;
	background-image: url("../images/background.png");
	background-size: cover;
	background-position: center; 
	overflow: auto; 
}
.maincontainer {
	display: flex;
	margin: auto;	
	height: 100vh; 
	max-width: 800px;
    background-image: url("../images/MainBackground.png");
	background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: stretch;
	justify-content: center;
	padding-bottom: 10px;
}


a {
    color: black;
}

input {
    font-family: 'Bungee', cursive;
    border: 0;
    font-size: 24px;
    line-height: 24px;
    height: 24px;
    width: 250px;
}
input:hover, input:active, input:focus-visible, button:hover, button:active, button:focus-visible {
    border: 0;
    outline: 0;    
}
input[type="checkbox"] {
	width: 24px;
	line-height: 24px;
    height: 24px;
	margin: 0;
}
.checkboxlabel {
	line-height: 24px;
	margin-left: 10px;
}
.checkboxdiv {
	display: flex;
	justify-content: center;
    align-items: center;
}
.cookieexplain {
	background-color: #444444;
	color: #c0edbe;
	font-family: 'DOSFont', sans-serif;
    font-size: 18px;
	cursor: default;
	user-select: none;
	padding: 2px;
	border: 3px solid grey;
	border-top: 3px solid #636363;
	border-right: 3px solid #636363;
	border-bottom: 3px solid #878787;
	border-left: 3px solid #878787;
	margin: 30px 5px 0 5px;
	flex-basis: 45%;
	border-radius: 5px;
}	

.cookieexplain span {
	display: block;
	border: 3px ridge grey;
	padding: 5px;
	border-radius: 5px;
	background-color: #000000;
}
.cookieexplain a {
	color: #c0edbe !IMPORTANT;
	text-decoration: underline !IMPORTANT;
	background: none !IMPORTANT;
	display: inline !IMPORTANT;
	line-height: normal !IMPORTANT;
	font-size: 18px !IMPORTANT;
	font-family: 'DOSFont', sans-serif !IMPORTANT;
	margin: 0 !IMPORTANT;
	padding: 0 !IMPORTANT;
	border: 0 !IMPORTANT;
	font-weight: normal !IMPORTANT;
	text-shadow: none !IMPORTANT;
	box-shadow: none !IMPORTANT;
}
.cookieexplaincontainer {
	transition: max-height 1s ease-in-out;
	max-height: 1000px;
	overflow: hidden;
}
.hidden {
	max-height: 0;
	transition: max-height 1s ease-in-out;
}
.loginbox {
    padding: 5px;
}
.formbuttons label {
	text-shadow: -1px 1px 0px #a1a1a1;
}


.mainlogo {
    flex-basis: 100%;
	max-height: 105px;
    display: block;
	text-align: center;
}
.mainlogo img {
	width: auto;
	height: 85px;
	margin: 10px;
}
.choice {
    text-align: center;
	flex-basis: 45%;
	padding: 5px;
	margin: 3px;
    background-color: #7f7f7f;	
	border-top: 3px solid #878787;
	border-right: 3px solid #878787;
	border-bottom: 3px solid #636363;
	border-left: 3px solid #636363;
	border-radius: 5px;
	box-shadow: -1px 1px 2px black;
	background-image: url("../images/scratches2.png"), url("../images/screw.png"), url("../images/screw.png"), url("../images/screw.png"), url("../images/screw.png");
	background-size: cover, 15px 15px, 15px 15px, 15px 15px, 15px 15px;
	background-position: center center, top 5px left 5px, top 5px right 5px, bottom 5px left 5px, bottom 5px right 5px;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
.choice a, .otherbuttons {
    display: block;
    margin: 30px;
    height: 90px;
    width: 300px;
    line-height: 30px;
    font-size: 30px;
    background-color: #959595;
    text-decoration: none;
	font-family: 'Bungee', cursive;
	background-image: url("../images/scratches2.png");
	border-top: 3px solid #9d9d9d;
	border-right: 3px solid #9d9d9d;
	border-bottom: 3px solid #636363;
	border-left: 3px solid #636363;
	border-radius: 5px;
	box-shadow: -1px 1px 2px black;
	text-shadow: -1px 1px 0px #b9b9b9;
}
.choice a {
	padding: 30px 0;
	height: 30px;
	width: 294px;
}
.choice a:hover, .choice a:active, .otherbuttons:hover, .otherbuttons a:active {
    border-top: 3px solid #636363;
	border-right: 3px solid #636363;
	border-bottom: 3px solid #9d9d9d;
	border-left: 3px solid #9d9d9d;
	box-shadow: 0px 0px 2px black, 1px -1px 2px black;
}
.choice a:hover, .choice a:active {
	padding-top: 31px;
	padding-bottom: 29px;
}
.choice a.smallbutton {
	height: 20px;
	font-size: 14px;
	line-height: 20px;
	padding: 10px 0;
	width: 180px;
	margin: 30px auto;
}

/* SWITCHES */
input[type="checkbox"] {
	display: none;
}
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 20px;
	background-color: #444444;
	background-image: linear-gradient(0deg, rgba(255,255,255,0) 40%, rgba(0,0,0,1) 50%, rgba(255,255,255,0) 60%);
	background-size: 50% 50%;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 5px;
	padding: 5px;
	cursor: pointer;
	margin-right: 10px;
	border: 3px ridge grey;
	border-top: 3px solid #636363;
	border-right: 3px solid #636363;
	border-bottom: 3px solid #878787;
	border-left: 3px solid #878787;
}
.handle {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 12px;
	height: 12px;
	background: radial-gradient(circle, rgba(90,0,0,1) 25%, rgba(0,0,0,1) 100%);
	border-radius: 50%;
	transition: all 0.3s ease-in-out;
	border:4px solid black;
	box-shadow: -2px 2px 3px 0px black;
}
.switch:hover .handle {
	transition: all 0.3s ease-in-out;
}
input[type="checkbox"]:checked + .handle {
	transform: translateX(30px);
	background: radial-gradient(circle, rgba(255,0,0,1) 25%, rgba(0,0,0,1) 100%);
}

.copyright a.smallbutton {
	margin: 10px auto;
}
.choice h2 {
    font-size: 25px;
	line-height: 25px;
    text-shadow: -1px 1px 0px #a1a1a1;
}
.choice img {
    width: 50%;
    height: 50%;
}
.errortext {
    font-weight: bold;
    background-color: #830a0a;
    border: 1px solid black;
    padding: 5px;
    margin: 20px;
}
.policy {
	text-align: left;
    flex-basis: 100% !IMPORTANT;
}
.policy a {
    color: #c1c1c1;
	font-weight: bold;
}
.news {
	background-color: #000000;
	color: #c0edbe;
	font-family: 'DOSFont', sans-serif;
    font-size: 18px;
	cursor: default;
	user-select: none;
	padding: 5px;
	border: 3px solid grey;
	border-style: ridge;
	margin: 3px;
	box-shadow: -1px 1px 2px black;
	flex-basis: 45%;
	border-radius: 5px;
}
.news img {
	vertical-align: middle;
}

form {
    width: 100%;
}
.box {
    display: flex;
    flex-flow: column;
    height: 100%;
}
.row { 
    width: 400px;    
    max-width: 400px;    
    margin: auto;  
    display: block;
    vertical-align: top;
}
.box .row.diceomatic {
    flex: 0 1 auto;
    padding-left: 5px;
    padding-right: 5px;
	background-image: url("../images/MainBackground-Mobile.png");
	background-size: cover;	
}
.box .row.previousrolls {
    flex: 1 1 auto;
    padding-top: 2px;
}
.diceomatic-bottom {
    height: 5px;
}

.copyright {
    text-align: center;
	flex-basis: 100%;
	margin: 10px 20px;
    background-color: #7f7f7f;	
	border-top: 3px solid #878787;
	border-right: 3px solid #878787;
	border-bottom: 3px solid #636363;
	border-left: 3px solid #636363;
	border-radius: 5px;
	box-shadow: -1px 1px 2px black;
	text-shadow: -1px 1px 0px #a1a1a1;
	background-image: url("../images/scratches2.png"), url("../images/screw.png"), url("../images/screw.png");
	background-size: cover, 15px 15px, 15px 15px;
	background-position: center center, center left 5px, center right 5px;
	background-repeat: no-repeat, no-repeat, no-repeat;
}
	
