@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');

body,html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000000;
	overflow: auto;
}

#background-video {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%; 
	min-height: 100%;
	z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	object-fit: cover;
}



div#header-wrapper {
    width: calc( 100vw - 20px);
	min-width: 980px;
    height: 160px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

div#head {
    width: calc(100vw - 446px);
	min-width: 555px;
    height: 50px;
    /* padding-top: 0px; */
    background: url(
    ../images/sfondi/index/pirateswar_top.png) repeat-x;
    position: absolute;
    left: 176px;
    top: 0;
    z-index: 1;
}

div#bussola {
    position: absolute;
    right: 0;
    top: -1px;
    width: 260px;
    height: 160px;
    background: url(../images/sfondi/index/bussola.png) no-repeat;
    z-index: 2;
}

div#ago {
	position: absolute;
    background: url(../images/sfondi/index/agoBussola.png) no-repeat;
    right: 75px;
    top: 39px;
    height: 70px;
    width: 14px;
    background-size: contain;
}

div#head-logo {
    position: fixed;
    top: 10px;
    left: 50%;
    width: 577px;
    height: 132px;
    background: url(../images/sfondi/index/head-logo.png) no-repeat;
    z-index: 10;
    transform: translateX(-50%);
	z-index: 100;
}





div#menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 176px;
    height: 580px;
    float: left;
    padding: 0;
    margin: 0;
    background: url(../images/sfondi/index/pirates-war-menu.png) no-repeat;
}

div#menu {
	position: absolute;
    bottom: 165px;
    left: 5px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 162px;
    align-items: center;
}

div#menu .btt a{
	width: 135px;
	font-family: 'Pirata One', cursive, serif;
	font-size: 21px;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);

}

div#menu .btt a:hover{
	text-shadow:1px 1px 10px #fff, 1px 1px 10px #ccc;
}

div#menu .btt a:active{
	text-shadow:1px 1px 10px #fff, 1px 1px 10px #ccc;
	zoom: 0.95;
}

div#menu .btt.active a{
	text-shadow:1px 1px 10px #fff, 1px 1px 10px #ccc;
}


div#content {
	width: calc(100vw - 290px);
    color: #fff;
    z-index: 10;
    position: absolute;
    left: 190px;
    padding: 20px;
}

div#content-wrapper {
	float: left;
	width: calc(100% - 40px);
	margin: 180px 10px 110px 10px;
	padding: 15px;
	background-color: rgba(255,255,255,0.8);
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
}


div.error {
	color: #ffae00;
	background-color: #000000ad;
	padding: 10px;
	border-radius: 10px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	width: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	
}

div.error img {
	width: 150px;
	height: 150px;
	margin:10px;
}

div#cookie-bar {
    width: calc(100% - 20px);
	height: auto;
}


#audioSwitch {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 1001;
    font-size: 24px;
    background: rgba(34, 34, 34, 0.95);
    color: #c9a14a;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid #c9a14a;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
 }

 #audioSwitch:hover {
    transform: scale(1.1);
    color: #ffd700;
    border-color: #ffd700;
 }

@media screen and (max-width: 900px) {
    div#header-wrapper {
        width: 100%;
        min-width: auto;
    }

    div#head {
        display: none;
    }

    div#bussola {
        display: none;
    }

    div#head-logo {
        width: 300px;
        top: 20px;
		z-index: 1;
    }

    div#content {
        width: calc(100% - 20px);
        left: 10px;
    }

	div#head-logo {
        left: calc(50%);
        transform: translateX(-50%);
        width: 80vw;
        background-size: contain;
		height: 170px;
    }

	div#menu-wrapper {
        background: rgba(0, 0, 0, 0.8);
        position: fixed;
        top: 20px;
        left: 10px;
        z-index: 1000;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        width: calc(100% - 40px);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        visibility: hidden;
        opacity: 0;
    }

    div#menu-wrapper.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    div#menu {
        position: absolute;
        bottom: 0;
        left: 5px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        align-items: center;
    }

    div#menu-toggle {
        display: block;
        position: fixed;
        top: 30px;
        left: 20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        z-index: 1001;
        cursor: pointer;
    }

	div#menu-toggle:hover {
		transform: scale(1.1);
	}

    div#menu-toggle::before,
    div#menu-toggle::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: #fff;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    div#menu-toggle::before {
        top: 12px;
        box-shadow: 0 8px 0 #fff;
    }

    div#menu-toggle::after {
        bottom: 12px;
    }

    div#menu-toggle.active::before {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        box-shadow: none;
    }

    div#menu-toggle.active::after {
        bottom: 50%;
        transform: translate(-50%, 50%) rotate(-45deg);
    }
}

#language-selector {
    position: absolute;
    bottom:  0px;
    left: 50%;
    width: calc(100% - 70px);
    z-index: 1001;
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 5px;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
}

#language-selector a {
    color: #c9a14a;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

#language-selector a:hover, #language-selector a.active {
    color: #ffd700;
}

