body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/trinity.jpg');
	background-size: cover; min-height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
    min-height: 100vh;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.2rem 0;
    text-align: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
}

.switch {
    position: absolute;
	top:50%;
	right:20px;
    transform: translateY(-50%);
}

.metrics {
    position: absolute;
	top:50%;
	left:20px;
    transform: translateY(-50%);
	font-size: 0.7rem;
	color: grey;
}

header h1 {
    margin: 0;
}

main h2 {
	margin-top: 0;
	margin-bottom: 0.5em;
	color: white;
}

a {
	text-decoration: none;
}

p {
	margin-top: 0;
	margin-bottom: 0;
}

.main-grid {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    width: 100%;
    max-width: 864px; /* 20px + 382px + 20px + 20px + 20px + 382px + 20px*/
}

.zone {
    width: 382px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    backdrop-filter: blur(5px);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-item {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    transition: transform 0.2s;
}

.grid-item:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.4);
}

.grid-item img {
    width: 80px;
    height: auto;
    border-radius: 10px;
}

.grid-item p {
    margin: 2px 0 0;
    font-size: 0.8rem;
	color: white;
	margin-bottom: -0.2em;
	margin-top: -0.2em;
}

.secondary-link {
    position: absolute;
    top: 6px;
    right: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.secondary-link:hover {
    transform: scale(1.3);
}

.secondary-link img {
    width: 25px;
    height: 25px;
}

.off {
	opacity : 0.4;
	filter: grayscale(100%);
}

.off p {
	color: #D3D3D3;	
}

.off:hover {
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.2);
}


footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
}

@media screen and (max-width: 880px)
{
	.main-grid {
		grid-template-columns: repeat(1, 1fr);
		max-width: 422px; /* 20px + 382px + 20px */
	}
}

@media screen and (max-width: 600px)
{
	header {
		padding: 0;
	}
	
	main h2 {
		margin-bottom: 0;
		font-size: 1.2rem;
	}
	
	footer {
		padding: 3px;
	}
	
	footer p {
		font-size: 0.6rem;
	}
	
	.main-grid {
		max-width: 320px; /* 10px + 300px + 10px */
	}
	
	.zone {
		width: 300px;
		padding: 10px;
		backdrop-filter: blur(5px);
}	
	.grid-container {
		gap: 10px;
	}
	
	.grid-item img {
		width: 60px;
	}
	
	.secondary-link img {
    width: 20px;
    height: 20px;
	}
			
	.grid-item p {
		font-size: 0.6rem;
	}

}