/* Reset some basic elements */
body, h1, h2, h3 {
    margin: 0;
    padding: 0;
}

/* Basic styling */
body {
    font-family: Roboto, Tahoma, Geneva, Verdana, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 0 10px;
}

header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

p {
    margin-bottom: 1.5em;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

#brand h1 {
    font-size: 24px;
    color: #333;
}

#menu {
    list-style: none;
    display: flex;
}

#menu li {
    padding: 0 15px;
}

#menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

#menu a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    margin: 40px auto;
}

article h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

article h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Welcome box styles */
.welcome-box {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 50px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 900px;
  overflow: hidden;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
}

.welcome-text h1 {
  margin: 0;
  color: #333;
  font-size: 1.8em;
}

.welcome-text p {
  color: #666;
}

.highlight {
  color: #000000;
}

/* Responsive layout for nav menu and welcome box */
@media screen and (max-width: 768px) {
    body {
        padding: 0 5%;
    }

    nav {
        flex-direction: column;
    }

    #menu {
        padding-top: 20px;
    }

    #menu li {
        padding-bottom: 10px;
    }

    #menu a {
        font-size: 19px; /* Larger text for mobile */
    }

    .welcome-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-picture {
        margin: 0 auto 20px; /* Centered and with margin below on mobile */
        width: 120px; /* Smaller size for mobile */
        height: 120px; /* Smaller size for mobile */
    }

    .welcome-text h1 {
        font-size: 1.5em; /* Slightly smaller headline on mobile */
    }

    .welcome-text p {
        font-size: 1em; /* Adjust paragraph text size for mobile */
    }

    p {
        margin-bottom: 1.5em;
    }
}
.review-box {
    width: 200px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    color: black;
    font-size: 35px;
    font-weight: bold;
}

/* Dynamic background color based on the score */
.review-box[data-score='10'],
.review-box[data-score^='9'] {
    background-color: #4CAF50; /* Dark Green for scores 9-10 */
}

.review-box[data-score^='8'] {
    background-color: #4CAF50; /* Light Green for scores 8-8.9 */
}

.review-box[data-score^='7'] {
    background-color: #FFEB3B; /* Yellow for scores 7-7.9 */
}

.review-box[data-score^='6'] {
    background-color: #FFC107; /* Amber for scores 6-6.9 */
}

.review-box[data-score^='5'],
.review-box[data-score^='4'] {
    background-color: #FF9800; /* Orange for scores 4-5.9 */
}

.review-box[data-score^='3'],
.review-box[data-score^='2'],
.review-box[data-score^='1'],
.review-box[data-score^='0'] {
    background-color: #F44336; /* Red for scores 0-3.9 */
}
