.popup {
    position: fixed;
    width: 310px;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 1000;
    border-radius: 12px;
}

.popup h4 {
    font-size: 28px;
    text-decoration: underline;
    margin-top: 0px;
    margin-bottom: -20px;
}

.popup .close-x-button {
    font-size: 34px;
    margin-right: -10px;
    margin-top: -30px;
    border: none;
    cursor: pointer;
    float: right;
    font-weight: bold;
}

.popup .close-x-button:hover {
    scale: 1.2;
}

.popup .reset-color {
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

.popup-content {
    max-height: 92%;
    overflow-y: auto;
}

.class-group {
    margin-bottom: 10px;
}

.class-flex-section-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.class-category {
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
} 

.class-group hr {
    margin: 20px 12px 20px 12px;
    border: none;
    width: 20%;
    margin-bottom: 20px;
    margin-top: 20px;
}

.class-options.collapse {
    display: none;
}

.class-option {
    text-align: center;
    padding-left: 15px;
    cursor: pointer;
    max-width: 30px;
    width: 30px;
    font-weight: bold;
    padding: 16px 10px 16px 10px;
    margin: 10px;
    border-radius: 8px 8px 0px 8px;
}

.class-options {
    justify-content: center;
    display: flex;
    align-items: center;
}

.class-arrow {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 5px;
}

.classrotate {
    transform: rotate(90deg);
}

.alle-button {
    margin-top: 10px;
    padding: 12px 30px 12px 20px;
    border: none;
    font-size: 26px;
    border-radius: 10px 10px 0px 10px;
    cursor: pointer;
}

.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.color-picker-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.color-picker-button input {
    width: 120px;
    height: 40px;
    margin: 5px;
}

.color-picker-button label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.color-table {
    min-width: 800px;
    border-collapse: collapse;
    width: 100%;
}

.color-table th, .color-table td {
    padding: 8px;
    text-align: left;
}

.color-table th {
    font-weight: bold;
}

.daily-message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 1000;
    border-radius: 12px;
}

.popup2-content {
    padding: 6px;
    border-radius: 8px;
    max-width: 700px;
    position: relative;
}

.daily-message-popup-close {
    position: absolute;
    top: 16px;
    right: -4px;
    font-size: 24px;
    cursor: pointer;
}

.popup-content h2 {
    margin-top: 0;
}

.second-text {
    margin-left: 10px;
}

.underline {
    text-decoration: underline;
}

.help-welcome {
    margin-bottom: -18px;
}

.datum-and-message-content {
    margin-left: 160px;
}

.message-container {
    margin-left: -160px;
}

.rotate {
    transition: transform 0.3s ease-in-out;
}

.rotate.active {
    transform: rotate(180deg);
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 120px;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.1);
}

.card-thumbnail {
    height: 80%;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 4px;
    text-align: center;
}

.cards-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cards-row::-webkit-scrollbar {
    height: 6px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 6px;
}

.save-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.save-button button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}