body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
.header {
    position: sticky;
    top: 0;
    background-color: #3e3e3e;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.header h1 {
    margin: 0;
    font-size: 1.5em;
}
.hamburger {
    font-size: 1.5em;
    cursor: pointer;
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none!important;
}


/* Movies */


.movie {
    margin: 10px;
    flex: 1 1 300px;
    color: #111;
}

.movie h2 {
    background-color: #000983;
    color: #fff;
    margin: 0;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

.movie .info {
    padding: 10px;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.movie .info, .movie h2 {
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.4)
}

.movie .info .meta {
    font-size: 0.8em;
    font-weight: 300;
    display: flex;
}

.movie .info .meta div {
    flex: 1;
}

.movie .info .meta div:first-child {
    text-align: left;
}

.movie .info .meta div:last-child {
    text-align: right;
}

.movie .info ul.nominations {
    padding: 0;
    list-style: none;
}

.movie .info ul.nominations li {
    display: inline-block;
    margin-right: 5px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin: 5px 5px 0 0;
}

.movie .info ul.nominations li span.primary-recipient {
    font-weight: 300;
    font-style: italic;

}

.movie .info ul.nominations li span.primary-recipient::before {
    content: ' (';
}

.movie .info ul.nominations li span.primary-recipient::after {
    content: ')';
}


/* Movie Modal */

#modal-backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
}

body.modal-visible #modal-backdrop {
    display: flex;
}

#modal-backdrop .modal {
    position: relative;
    margin: auto;
    z-index: 1001;
    max-width: 600px;
    width: 80%;
    max-height: 80vh;
    flex: none;
    
}

.modal .close-button {
    /* close button should be in an outlined circle, and floating up and to the right of the modal, slightly overlapping the modal */

    position: absolute;
    top: -20px;
    right: -20px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1002;


}

.modal .close-button::before {
    content: '×';
}



    




/* Category Box */
.category-box h2 {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-box table {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.category-box {
    /* background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px; */
    margin: 10px;
    flex: initial;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    color: #111;
}

.category-box h2 {
    background-color: #6a1b9a;
    color: #fff;
    margin: 0;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}

.category-box h2.complete {
    background-color: #ffeb3b;
    color: #333;
}

.category-box h2 .counter {
    font-size: 0.6em;
    font-weight: 300;
    float: right;
    padding-left: 10px;
}

.category-box table {
    width: 100%;
    border-collapse: collapse;
}
.category-box table th, .category-box table td {
    padding: 10px;
    text-align: left;
}
.category-box table th {
    background-color: #f5f5f5;
}
.category-box table td {
    border-bottom: 1px solid #ddd;
    
}


.category-box table td.movie-title {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.category-box table td.movie-title.selected {
    background-color: #ffeb3b81;
}

.category-box table td.movie-title .secondary {
    font-size: 0.8em;
    font-weight: 300;
}


.category-box table tr td div.info-button {
    display: none;
    cursor: pointer;
    background-color: #252c8f;
    color: #fff;
    
    width: 1em;
    height: 1em;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 10px;
    top: 10px;
}

.category-box table tr td:hover div.info-button {
    display: flex;
}

@media (max-width: 768px) {
    .category-box table tr td div.info-button {
        display: flex!important;
    }
}


.category-box table tr.rating-G td.movie-title::after,
    .category-box table tr.rating-PG td.movie-title::after,
    .category-box table tr.rating-PG-13 td.movie-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-bottom: 10px solid green;
    }   





/* Info Panel */

#info-panel {
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1001;
    color: #111;
    transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s ease;
    transition-behavior: allow-discrete;
    opacity: 0;
    transform: translateY(-20px);
    
}

.header.info-visible #info-panel {
    display: block;
    opacity: 1;
    transform: translateY(0);

    @starting-style {
        /* Entry Styles */
        opacity: 0;
        transform: translateY(-20px);
      }

}

#info-panel table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#info-panel table th, #info-panel table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#info-panel table th.label, #info-panel table td.label {
    text-align: right;
}

#info-panel table th.value, #info-panel table td.value {
    text-align: left;
}

#info-panel tr.small-only {
    display: none;
}

#info-panel td.action {
    text-align: right;
}

#info-panel td.action a {
    color: #fff;
    background-color: #ddd;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

#info-panel td.action a:hover {
    background-color: #6f0e0e;
    color: #fff;
}

.header .hamburger-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.header .hamburger {
    position: relative;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease;
}

.header .hamburger-container .hamburger::before,
.header .hamburger-container .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header .hamburger-container .hamburger::before {
    top: -8px;
}

.header .hamburger-container .hamburger::after {
    top: 8px;
}

.header.info-visible .hamburger-container .hamburger {
    background-color: transparent;
}

.header.info-visible .hamburger-container .hamburger::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.header.info-visible .hamburger-container .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}








/* Responsive */

@media (max-width: 480px) {
    .header .info{
        display: none;
    }

    #info-panel tr.small-only {
        display: table-row;
    }


}

@media (max-width: 768px) {
    .category-box {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 20px 0;
    }


}

