@font-face {
    font-family: omori;
    src: url("../fonts/OMORI.ttf");
}

* {
    font-family: omori;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #ffffff;
}

body {
    background-image: url("../img/omoriBackground.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 50px;
    padding-bottom: 50px;
}

#header {
    display: flex;
    justify-content: space-between;
    height: 70px;
    background-color: #b86ad9; /* Light purple background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

footer {
    background-color: #b86ad9; /* Red background */
    padding: 10px;
    text-align: center;
    color: #ffffff; /* White text */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Logo styling with uppercase bold white text */
#logo {
    color: #ffffff;
    font-size: 37px;

    text-transform: uppercase;
    margin-top: 14px;
    margin-left: 20px;
}

#logo a {
    text-decoration: none;
    color: #ffffff;
}

#logo a:hover {
    color: #f24130;
}

/* Navigation menu styling */
#main-nav ul {
    display: flex; /* Horizontal layout for navigation items */
    padding: 0;
    margin: 0;
    list-style: none; /* Remove default bullet points */
}

#main-nav li a {
    background-color: #5e5ba6; /* Purple background */
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 26px;
    display: inline-block;
    transition: 200ms; /* Smooth hover effect */
}

#main-nav li a:hover {
    background-color: #f24130; /* Change background on hover */
}

#home {
    width: 500px;
    margin: auto;
    margin-top: 50px;
    background-color: #253759;
    color: #ffffff; /* White text */

    padding: 26px;
    text-align: center;
}

#home p {
    font-size: 20px;
}

#home h1 {
    font-size: 40px;
}

#topGames {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#index main {
    background-color: #253759;
    width: 900px;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    overflow-y: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #ffffff;
}

#index .top-game img {
    width: 200px;
    height: 300px;
}

#index .top-game img:hover {
    transform: scale(1.1);
    transition: 300ms;
}

#categories {
    display: flex;
    justify-content: space-around;
}

#categories a {
    background-color: #5e5ba6; /* Purple background */
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 26px;
    margin-top: 5px;
    display: inline-block;
    transition: 200ms; /* Smooth hover effect */
    border-radius: 5px;
}

#game {
    background-color: #253759;
    width: 1100px; /* Use a percentage width for responsiveness */
    height: 700px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #ffffff;
}

#games {
    width: 200px;
}

#Switch a:hover {
    background-color: #e60012;
    transform: scale(1.1);
}

#Xbox a:hover {
    background-color: #0e7a0d;
    transform: scale(1.1);
}

#Ps4 a:hover {
    background-color: #006fcd;
    transform: scale(1.1);
}

#Pc a:hover {
    background-color: #171a21;
    transform: scale(1.1);
}

img {
    width: 200px;
    height: 300px;
}

main {
    background-color: #253759;
    width: 1100px;
    height: 700px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #ffffff;
}

#Switchgames {
    background-color: #e60012;
}

#Xboxgames {
    background-color: #0e7a0d;
}

#Ps4games {
    background-color: #006fcd;
}

#Pcgames {
    background-color: #171a21;
}

/* Centering category title */
.category-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    width: 100%;
}

/* Container for games */
.game-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the games */
    width: 100%;
    margin: 0 auto; /* Centers the container */
}

/* Individual game styling */
.game {
    max-width: 220px; /* Prevents items from getting too small */
    margin: 5px; /* Small margin */
    text-align: center;
    background-color: rgba(205, 205, 205, 0.9);
    border-radius: 15px;
    color: #171a21;
    display: flex;
    flex-direction: column;
    padding: 10px;
    min-height: 400px;
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* Price tag styling */
.price-tag {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #5e5ba6;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

#games {
    display: flex;
    width: 100%;
}

#details {
    background-color: #253759;
    width: 70%;
    text-align: left;
    height: 700px;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.message {
    background-color: #253759;
    width: 100%;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 25px;
}

.heading2 {
    font-size: 24px;
    font-weight: bold;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgba(205, 205, 205, 0.5);
    border-radius: 5px;
    width: fit-content;
    padding: 5px;
}

#about main {
    height: 700px;
    overflow-y: hidden;
}

#about main h1 {
    font-size: 40px;
}

#about main p {
    font-size: 30px;
}

.dropbtn {
    background-color: #5e5ba6;
    color: #ffffff;
    text-decoration: none;
    padding: 27px;
    display: inline-block;
    transition: 200ms;
    border: 0px;
    cursor: pointer;
}

.dropbtn:hover,
.dropbtn:focus {
    background-color: #f24130;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f24130;
    color: #ffffff;
    min-width: 160px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: 200ms;
}

.dropdown-content a:hover {
    background-color: #5e5ba6;
}

.show {
    display: block;
}

#contact form {
    width: 1000px;
    padding: 20px;
    border-radius: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
}

input,
textarea,
select {
    display: block;
    width: 95%;
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
}

label {
    color: #ffffff;
    font-size: 18px;
    padding: 10px;
}

button,
.btn {
    background-color: #5e5ba6; /* Purple background */
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 26px;
    width: auto;
    display: inline-block;
    transition: 200ms; /* Smooth hover effect */
    border-radius: 5px;
}

.btn:hover {
    background-color: #f24130;
}

.login main {
    overflow-y: hidden;
}

#contact main {
    overflow-y: hidden;
}

.login main a {
    background-color: #5e5ba6; /* Purple background */
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 26px;
    display: inline-block;
    transition: 200ms; /* Smooth hover effect */
    border-radius: 5px;
}

.login main a:hover {
    background-color: #f24130;
}

.button:hover {
    background-color: #f24130;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: auto;
    margin-top: 20px;
    background-color: rgba(240, 240, 240, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

table th,
table td {
    padding: 15px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

table a {
    color: #ffffff;
    text-decoration: none;
    transition: 200ms; /* Smooth hover effect */
}

table a:hover {
    color: #f24130; /* Darker red for hover effect */
}

table thead tr {
    background-color: #9f3fbf; /* Darker purple for the header */
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
}

table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1); /* Alternating row color */
}

#iframe {
    overflow: hidden;
    background-image: none;
}

#iframe audio {
    margin-top: 1000px;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

#blog {
    display: flex;
}

sidebar {
    background-color: #253759;
    width: 200px;
    height: 300px;
    margin: 0;
    margin-top: 20px;
    padding: 20px;
    left: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #ffffff;
    position: fixed;
}

sidebar a:hover {
    color: #f24130;
}

#blogMain {
    height: auto;
    overflow: hidden;
}

.blogPosts {
    font-size: 32px;
    text-align: left;
    padding: 5px;
}

.comment {
    text-align: left;
    font-size: 28px;
    padding: 5px;
    margin-bottom: 5px;
    background-color: rgba(205, 205, 205, 0.2);
    border-radius: 10px;
}

#popupForm {
    margin: 5px;
    padding: 5px;
}