body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 35px 30px 30px 30px;
}

h1 {
    text-align: center;
}

#top {
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 38vh; 
}

header {
	position: fixed;
    top: 0;
	width: 95%; 
    text-align: center; 
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

nav {
    max-width: 1080px; 
    margin: 0 auto; 
}

ul {
    list-style-type: none;
    display: flex; 
    justify-content: space-around;
}

li {
    position: relative; 
}

a {
    color: white; 
    text-decoration: none; 
    padding: 10px 15px; 
    transition: background-color 0.3s, color 0.3s; 
}

.gameLogo {
	width: 50%;
}

.links_a:hover {
    background-color: #555; 
    color: #fff; 
}

.container {
    display: flex;
    margin-top: 20px;
	align-items: flex-start;
}

.image {
    flex: 1;
    padding-right: 5px;
}

.description {
    margin-left: 5px;
    flex: 1; 
	margin-top: -17px;
}

.p {
    text-align: left;
}

.links {
	height: 70px;
	width: auto;
}

.siteName {
    margin-left: 20px;
	font-family: 'Brush Script MT', cursive;
	font-size: 5em;
	margin-top: 1px;
	margin-bottom: 1px;
}

.games {
    margin: 0 auto;
	margin-top: -25px;
    width: fit-content;
    font-family: 'Brush Script MT', cursive;
    font-size: 2em;
    margin-bottom: 1px;
    text-align: center;
}

img {
    max-width: 100%; 
    height: auto; 
}

.fif {
    border: 3px solid #73AD21;
    padding: 15px;
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; 
	justify-content: center;
}

.game-item img {
    width: 480px;  
    height: 300px; 
    object-fit: cover; 
}

.game-item {
    margin: 10px; 
}

.game-name {
	margin: 0 auto;
    width: fit-content;
    text-align: center;
}

.row {
    display: flex;
	align-items: flex-start; 
}

.fog-games {
    display: flex; 
    align-items: center; 
}

.inline-right {
    display: inline-block;
    padding: 25px;
    margin-top: 0; 
    vertical-align: top; 
}

.footer {
    position: fixed;
    right: 0;
    bottom: 0;
    text-align: center; 
    width: 99%;   
    font-size: 15px;
    font-weight: bold;
    color: #fafaff;  
	background-color: black;
 }

@media (max-width: 1080px) {
    .container {
        flex-direction: column; 
        align-items: center; 
    }
    
    .image {
        padding-right: 0;
        margin-bottom: 10px; 
    }
    
    .description {
        margin-left: 0;
    }
	.footer {
		font-size: 10px;
	}
    a {
        padding: 10px; 
    }
	
	.links {
		height: 50%;
		width: 50%;
	}
	
	.gameLogo {
		width: 100%;
	}
	
	ul {
		margin-right: 70px;
	}
	
	.fog-games img {
		max-width: 100%;
		height: auto;
	}

	.game-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
		padding: 15px;
	}
	
	.game-item {
		margin-top: -35px;
		flex: 1 1 200px;
		text-align: center;
	}

	.game-item img {
		max-width: 100%;
		height: 100px;
		display: flex; 
		flex-direction: column; 
		align-items: center;
		text-align: center; 
	}
	
	.siteName {
		font-size: 3em;
	}
	
	#top {
		margin: -25px 0 0 0;
		padding: 0;
		transform: scale(0.7);
		padding-right: 80px;
	}
	
	.games {
		margin-top: -50px;
		margin-bottom: 5px;
	}
	
	.game-name {
		margin-top:5px;
	}
}

@media (orientation: landscape) and (max-width: 1080px) {
    header {
	width: 99%; 
	}
	
	.container {
        flex-direction: column;
        align-items: center; 
    }
    
    .image {
        padding-right: 0; 
        margin-bottom: 10px; 
    }
    
    .description {
        margin-left: 0; 
    }
	.footer {
		font-size: 10px;
	}
	.gameLogo {
		width: 100%;
	}
	
	ul {
		margin-right: 70px;
	}
	
	.game-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
		padding: 15px;
	}

	.game-item {
		flex: 1 1 200px;
		text-align: center;
	}

	.game-item img {
		max-width: 100%;
		height: 100px;
		display: flex; 
		flex-direction: column; 
		align-items: center;
		text-align: center; 
	}
	
	.games {
		margin-top: 0;
		margin-bottom: 25px;
	}
	
	#top {
		margin: 5px;
		text-align: center;
		padding: 35px 0;
		transform: scale(0.5);
	}
}

@media (orientation: landscape) and (min-width: 1080px) and (max-width: 2160px){
	#top {
		margin: 50px;
	}
}

@media (orientation: portrait) and (min-height: 1000px) and (max-height: 2160px) {
	.game-item img {
		height: 200px; 
	}
	
	.games {
		margin-top: -75px;
		margin-bottom: 25px;
	}
}
