@font-face {
    font-family: 'juyofont';
    src: url('itc-avant-garde-gothic-medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
	--font-family: "juyofont", "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
	--primary: #c17d20;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #000;
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
	min-height: 100vh;
}

html {
	background-color: #3f3f3f;
}

body {
	display: flex;
	flex-direction: column;
	max-width: 1920px;
	margin-left: 50%;
	transform: translate(-50%, 0);
	background-color: #000;
}

header {
    background: #3f3f3f;
    z-index: 1;
    width: 100%;
	max-width: 1920px;
	display: flex;
	flex-direction: column;
	position: fixed;
	padding: 0 1.5rem 0 1.5rem;
	top: 0;
}	

#header {
    height: 80px;
    width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}	

#dlogo {
    top: 16px;
    position: relative;
    background: #3f3f3f;
    padding: 0 16px 16px;
    border-radius: 32px;
    height: calc(100% + 16px);
	display: flex;
}

#dlogo>img {
	width: auto;
	height: 100%;
}

a {
	white-space: nowrap;
	text-decoration: none;
	color: var(--primary);
	--font-family: "juyofont", "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

a:hover {
	text-decoration: underline;
}

button {
	color: #fff;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 4px;
	padding: 1rem;
}

.icon {
	width: 24px;
}

button:hover {
    background-color: var(--primary);
}

footer {
    background: #3f3f3f;
    padding: 1rem 4rem;
    width: 100%;
	max-width: 1920px;
    color: #fff;
	align-items: flex-end;
	justify-content: space-between;
	display: flex;
}

footer>a {
	display: flex;
	align-items: flex-end;
}

footer>a>img {
	height: 4rem;
}

footer>a:last-child>img {
	height: 5rem;
}

footer>div {
	display: flex;
	flex-direction: column;
	text-align: center;
}

main {
	flex-grow: 1;
	margin: 4rem 10rem 2rem 10rem;
	display: flex;
	flex-direction: column;
	width: calc(100% - 20rem);
	position: relative;
    border: 8px solid var(--primary);
    border-radius: 8rem;
	background-color: #fff;
	align-self: center;
}

main>.container {
	background: url(juyo_bg.png) no-repeat center/cover;
    border-radius: 8rem;
}

main>.container>img {
	width: 100%;
	visibility: hidden;
}

main>.header {
	width: 100%;
	display: flex;
	justify-content: space-between;
    color: #000;
    padding: 3rem 3rem 0 3rem;
	height: 240px;
}

main>.header h1 {
	font-size: 4rem;
	margin: 0;
	border: 6px solid #c17d20;
	border-radius: 1.5rem;
	padding: .5rem 1.5rem;
}

main>.header>img {
	width: auto;
	height: 100%;
}

main>.header>div {
	margin-left: 3rem;
	align-items: flex-start;
	flex-direction: column;
	display: flex;
}

#menu {
    width: 100%;
    padding-top: 2rem;
	display: none;
}

#menu.visible {
	display: block;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li>a {
	color: #fff;
	width: 100%;
}

li {
	padding: .5rem 0 .5rem .5rem;
	border-radius: 4px;
	display: flex;
}

li:hover {
	background-color: var(--primary);
}

#menu li {
	cursor: pointer;
}

main .button {
    border: 1px solid black;
    border-radius: 3rem;
    background-color: white;
    box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    color: #333;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
	transform: translate(-50%,-50%);
}

main a {
    padding: 1.5rem 4rem;
}

main input {
    outline: none;
    padding: 1.5rem 2rem;
    text-align: left!important;
	width: 16rem;
}

main a::after {
    width: auto;
    content: "";
    border-bottom: 1px solid #000;
    padding: 0;
    display: flex;
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: -8px;
    transition: all 0.3s ease;
}

main a:hover {
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}


main a:hover::after {
    width: auto;
    content: "";
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    display: flex;
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0px;
}

#input {
	top: calc(240px + 25%);
	left: 35%;
}

#output {
	top: calc(240px + 25%);
	left: 64%;
}

#rotte {
	top: calc(240px + 40%);
	left: 50%;
}

#team {
	top: calc(240px + 76%);
	left: 40%;
}

#progetto {
	top: calc(240px + 84%);
	left: 40%;
}

#cerca {
	top: calc(240px + 81%);
	left: 65%;
}

@media (max-width: 1600px) {
	#team {
		top: calc(240px + 75%);
	}
	#progetto {
		top: calc(240px + 83%);
	}
	#cerca {
		top: calc(240px + 80%);
	}
}
@media (max-width: 1440px) {
	#rotte {
		top: calc(240px + 39%);
	}
	#team {
		top: calc(240px + 74%);
	}
	#progetto {
		top: calc(240px + 82%);
	}
	#cerca {
		top: calc(240px + 79%);
	}
}

@media (max-width: 1366px) {
	#rotte {
		top: calc(240px + 38%);
	}
	#team {
		top: calc(240px + 72%);
	}
	#progetto {
		top: calc(240px + 80%);
	}
	#cerca {
		top: calc(240px + 78%);
	}
	main>.header h1 {
		font-size: 3rem;
	}
}

@media (max-width: 1280px) {
	main a {
		padding: 1rem 2rem;
	}
	main input {
		padding: 1rem 2rem;
	}
	main .button {
		font-size: 1.5rem;
	}
	input {
		width: 12rem!important;
		font-size: 1.5rem;
	}
	#cerca {
		top: calc(240px + 77%);
		left: 63%;
	}
}

@media (max-width: 1152px) {
	main>.header>img {
		height: 120px;
	}
	main>.header h1 {
		font-size: 2rem;
	}
	main>.header {
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		gap: 1rem;
		height: 360px;
	}
	main>.header>div {
		margin-left: 0;
	}
	#rotte {
		top: calc(360px + 34%);
	}
	#input {
		top: calc(360px + 25%);
	}
	#output {
		top: calc(360px + 25%);
	}
}

@media (max-width: 1024px) {
	main {
		margin: 4rem 0 2rem 0;
		width: 100%;
	}
	#rotte {
		top: calc(360px + 35%);
	}
	#input {
		top: calc(360px + 23%);
	}
	#output {
		top: calc(360px + 23%);
	}
	#team {
		top: calc(360px + 66%);
	}
	#progetto {
		top: calc(360px + 73%);
	}
	#cerca {
		top: calc(360px + 71%);
	}
}

@media (max-width: 870px) {
	#rotte {
		top: calc(360px + 33%);
	}
	#team {
		top: calc(360px + 64%);
	}
	#progetto {
		top: calc(360px + 70%);
	}
	#cerca {
		top: calc(360px + 69%);
	}
}

@media (max-width: 760px) {
	#team {
		top: calc(360px + 62%);
	}
	#progetto {
		top: calc(360px + 69%);
	}
	#cerca {
		top: calc(360px + 66%);
	}
}

@media (max-width: 700px) {
	#team {
		top: calc(360px + 61%);
	}
	#progetto {
		top: calc(360px + 68%);
	}
	#cerca {
		top: calc(360px + 65%);
	}
}

@media (max-width: 680px) {
	#team {
		top: calc(360px + 59%);
	}
	#progetto {
		top: calc(360px + 66%);
	}
	#cerca {
		top: calc(360px + 63%);
		left: 66%;
	}
}

@media (max-width: 600px) {
	main>.header {
		height: 480px;
	}
	#rotte {
		top: calc(480px + 27%);
	}
	footer {
	    flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	main a, main input {
		padding: .5rem 1rem;
	}
	#team {
		top: calc(480px + 51%);
	}
	#progetto {
		top: calc(480px + 56%);
	}
	#cerca {
		top: calc(480px + 55%);
	}
}

@media (max-width: 540px) {
	#rotte {
		top: calc(480px + 26%);
	}
	#team {
		top: calc(480px + 49%);
	}
	#progetto {
		top: calc(480px + 54%);
	}
	#cerca {
		top: calc(480px + 53%);
		left: 71%;
	}
}

@media (max-width: 480px) {
	#rotte {
		top: calc(480px + 24%);
	}
	#team {
		top: calc(480px + 47%);
	}
	#progetto {
		top: calc(480px + 52%);
	}
	#cerca {
		top: calc(480px + 51%);
		left: 71%;
	}
	main input {
		width: 8rem!important;
	}
}

@media (max-width: 440px) {
	#rotte {
		top: calc(480px + 23%);
	}
	#team {
		top: calc(480px + 45%);
	}
	#progetto {
		top: calc(480px + 50%);
	}
	#cerca {
		top: calc(480px + 49%);
	}
}

@media (max-width: 425px) {
	#team {
		top: calc(480px + 44%);
	}
	#progetto {
		top: calc(480px + 49%);
	}
	#cerca {
		top: calc(480px + 48%);
	}
}

@media (max-width: 375px) {
	#rotte {
		top: calc(480px + 22%);
	}
	#team {
		top: calc(480px + 42%);
	}
	#progetto {
		top: calc(480px + 47%);
	}
	#cerca {
		top: calc(480px + 46%);
	}
}

@media (max-width: 320px) {
	#rotte {
		top: calc(480px + 21%);
	}
	#team {
		top: calc(480px + 40%);
	}
	#progetto {
		top: calc(480px + 45%);
	}
	#cerca {
		top: calc(480px + 44%);
	}
}