/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}
.parent-h1 {
    font-size: 28px; /* Example font size */
    color: #333; /* Example text color */
    text-align: center; /* Example alignment */
    margin-top: 20px; /* Example margin */
}

/* Specific styles for penalties */
.penalty-list .item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    display: flex;
    align-items: center;
}

.penalty-list .item img {
    max-width: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.penalty-list .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/no.png');
    background-size: cover; /* Use cover to ensure the image covers the entire area */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
}

.penalty-list .item-details {
    flex: 1;
    color: red; /* Text color for penalties */
}

/* Additional reward and penalty list styles */
.list {
    margin-bottom: 30px;
}

ul {
    list-style-type: none;
    padding: 0;
}

.item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.item img {
    max-width: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.item-details {
    flex: 1; /* Ensure details take remaining space */
}

.reward-item {
    background-color: #ffffff; /* Background color for rewards */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-item img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    margin-right: 15px;
}

.reward-details {
    flex: 1; /* Ensure details take remaining space */
}

/* Styles for child selector dropdown */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #4caf50; /* Header background color */
    color: white; /* Header text color */
    position: relative; /* Ensure relative positioning for children dropdown */
}

.child-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: center; /* Center align dropdown items */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.rounded-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    background-color: #4caf50; /* Header background color */
    color: white; /* Header text color */
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
}

section.list {
    margin-bottom: 30px;
}

/* Chore and Reward lists */
ul {
    list-style-type: none;
    padding: 0;
}

.item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.item img {
    max-width: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.item-details {
    flex: 1; /* Ensure details take remaining space */
}

.reward-item {
    background-color: #ffffff; /* Background color for rewards */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-item img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    margin-right: 15px;
}

.reward-details {
    flex: 1; /* Ensure details take remaining space */
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
    background-color: #4caf50; /* Footer background color */
    color: white; /* Footer text color */
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Form styles */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 10px;
}

form select,
form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    background-color: #4caf50; /* Button background color */
    color: white; /* Button text color */
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049; /* Button hover background color */
}

.points-balance {
    font-size: 18px;
    margin-left: 20px; /* Adjust spacing from the child dropdown */
}

.child-info {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.child-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1em;
}

.child-info h2 {
    margin: 0 0 0.5em 0;
}

.child-info p {
    margin: 0;
}

/* Penalties section */
/* CSS for penalty item and image */
.penalty-list .item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    display: flex;
    align-items: center;
}

.penalty-list .item .penalty-item {
    position: relative;
    display: flex;
    align-items: center;
}

.penalty-list .item .penalty-image {
    position: relative;
    overflow: hidden;
    max-width: 80px; /* Adjust as needed */
    border-radius: 50%;
    margin-right: 20px;
}

.penalty-list .item .penalty-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
}


.penalty-list .item-details {
    flex: 1;
    color: red; /* Text color for penalties */
}
  .progress-bar {
            height: 20px;
            background-color: #f1f1f1;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .progress {
            height: 100%;
            width: 0;
            background-color: #4caf50;
            border-radius: 10px;
            text-align: center;
            line-height: 20px;
            color: white;
        }
        .reward-item {
            margin-bottom: 20px;
        }
        .checkmark {
            float: right;
            color: #4caf50;
            font-size: 20px;
            margin-top: -20px;
        }

footer a {
    color: white;
    font-weight: bold;
    text-decoration: none; /* Remove underline */
}

footer a:hover {
    text-decoration: none; /* Remove underline on hover as well */
}
