body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
}

nav {
    text-align: center;
    word-spacing: 30px;
    padding: 10px;
    background-color: bisque;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #000000;
    font-size: larger;
}

nav a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

section {
    margin: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.post-text-box {
    flex: 100%;
    padding: 20px;
}

.grid-container {
    display: flex;
    justify-content: space-around;
}

.grid-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.movie-post, .book-post, .game-post {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
}

/* Post content styling */
.movie-post h2, .book-post h2, .game-post h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

/* Post hyperlink styling */
.movie-post h2 a, .book-post h2 a, .game-post h2 a {
    text-decoration: none;
}

.movie-post h2 a:hover, .book-post h2 a:hover, .game-post h2 a:hover {
    color: #FF6347; /* Tomato color on hover */
    text-decoration: underline;
}

.rating {
    position: relative;
    font-size: 1.5em;
    unicode-bidi: bidi-override;
    color: #ffffff;
    display: inline-block;
}

.rating::before {
    content: "★★★★";
    -webkit-text-stroke: 1px #FFD700; /* Gold outline */
    letter-spacing: 3px;
}

.rating::after {
    content: "★★★★";
    letter-spacing: 3px;
    position: absolute;
    top: 0;
    left: 0;
    color: #FFD700;  /* Gold color */
    overflow: hidden;
    width: 0;
}

.rating[data-rating="4"]::after {
    width: 100%;
}

.rating[data-rating="3.5"]::after {
    width: 86%;
}

.rating[data-rating="3"]::after {
    width: 75%;
}

.rating[data-rating="2.5"]::after {
    width: 60.7%;
}

.rating[data-rating="2"]::after {
    width: 50%;
}

.rating[data-rating="1.5"]::after {
    width: 35.5%;
}

.rating[data-rating="1"]::after {
    width: 25%;
}

.rating[data-rating="0.5"]::after {
    width: 12.5%;
}

.rating[data-rating="0"]::before {
    content: '\f165'; /* Thumbs down icon from Font Awesome */
    font-family: 'Font Awesome 5 Free'; /* Ensure correct Font Awesome family */
    font-weight: 900;
    color: #FFD700; /* Gold color */
}
