@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
}

html,
body {
    padding: 0;
    margin: 0;
}

body {
    font-family: "Montserrat", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}


#movie-query-input {
    background-image: url(/static/images/search.svg);
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: left 5px center;
    padding-left: 25px;
}

table.grid {
    border-collapse: collapse;
    min-width: 100%;
}

.grid th,
.grid td {
    padding: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid th {
    position: sticky;
    top: 0;
    background: #35004D;
    text-align: left;
    font-weight: normal;
    font-size: 1.1rem;
    color: #ddd;
}

.grid .buttonWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.grid th:last-child {
    border: 0;
}

.grid td {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #222222;
    white-space: wrap;
}

.grid tr:nth-child(even) {
    background: #f8f6ff;
}

.grid tr:hover {
    transition: 0.3s;
    background-color: #acb3c8 !important;
}

.grid .titleColumnWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}


.grid .titleColumnWrapper img {
    height: 50px;
    flex-shrink: 0;
}

.grid .titleColumnWrapper .titleColumn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.grid .titleText {
    font-weight: 500;
}

.grid .detailText {
    font-size: 12px;
    color: #646464;
}

.standardBtn {
    border-radius: 5px;
    border: 1px solid #8e26bd;
    background-color: #8e26bd;
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
}

.standardBtn:hover {
    background-color: #fff;
    color: #8e26bd;
    transition: 0.3s;
}


.standardBtn-inverted {
    border-radius: 5px;
    background-color: #fff;
    border-color: #8e26bd;
    color: #8e26bd;
    transition: 0.3s;
    cursor: pointer;
}

.standardBtn-inverted:hover {
    background-color: #8e26bd;
    color: #fff;
}

.standardBtn.standardBtn--submit {
    border-radius: 5px;
    border: 1px solid #35004D;
    background-color: #35004D;
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
}

.standardBtn.standardBtn--submit:hover {
    background-color: #fff;
    border-width: 2px;
    font-weight: bold;
    color: #35004D;
    transition: 0.3s;
}


.iconBtn {
    background-color: transparent;
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.editBtn {
    color: #262626;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-size: contain;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center;
}

.editBtn:hover {
    color: #424242;
}

.deleteBtn {
    color: #262626;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-size: contain;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center;
}

.deleteBtn:hover {
    color: #d50000;
}

.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flex-row-baseline {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}


.flex-row-gap--5 {
    column-gap: 5px
}

.flex-row-gap--10 {
    column-gap: 10px;
}

tr.htmx-swapping td {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.editWindow {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
}

.editWindowWrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    background-color: #000000ab;
    left: 0;
    overflow: scroll;
    top: 0;
}

.editWindowWrapper.visible {
    display: block;
}

.editWindow form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    flex: 1;
}

.editWindow form input[type=text] {
    height: 35px;
    border-radius: 5px;
}


.editWindow form input[type=submit] {
    height: 35px;
}

.editWindow .closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.editWindow .edit-poster {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.editWindow form button[type=submit] {
    height: 40px;
    width: 100%;
}

.posterDetailsWrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-evenly;
}

.navBar {
    color: #ffffff;
    background-color: #35004D;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.navBar__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navBar__brand .title {
    margin: 0;
    font-size: 1.5rem;
}

.navBar__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navBar__username {
    font-size: 0.95rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navBar__logout {
    font-size: 1.2rem;
    color: #ffffff;
    transition: transform 0.2s, opacity 0.2s;
}

.navBar__logout:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.navBar__controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.navBar__search {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 0;
}

.navBar__searchInput {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    background-color: #ffffff;
    background-image: url(/static/images/search.svg);
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 12px center;
    padding-right: 40px;
}

.navBar__searchInput:focus {
    outline: 2px solid #8e26bd;
}

.navBar__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navBar__iconBtn {
    font-size: 1.1rem;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.navBar__iconBtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navBar__randomBtn,
.navBar__exportBtn {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.navBar__btnText {
    display: inline;
}

.hero {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: start;
}

.hero .title {
    margin-bottom: 0;
}

.hero .logout {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #1414ff;
    font-weight: bold;
}
.loginWrapper {
    background-color: #280039;
}
.loginForm {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap:10px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    padding:20px;
    height: 100%;
    max-height: 240px;
    width: 100%;
    max-width: 350px;
    background-color: #fff;
    border-radius:5px;
}

input[type=text],
input[type=password] {
    height: 40px;
    font-size: 16px;
    border-radius: 5px;
}

input[type=submit] {
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    height: 40px;
    background-color: #35004D;
    border: 1px solid #35004D;
    color: #fff;
}

input[type="submit"]:hover {
    background: #35004DDE;
    transition: 0.3s;
}

input[type="submit"]:disabled {
    background: #598baa;
    border-color: #598baa;
    color: #94b8ce;
}


.closeBtn {
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: none;
    /*background-image: url(/static/images/x-circle.svg);*/
    background-color: transparent;
    background-size: contain;
}

.fWeight-bold {
    font-weight: 500;
}

.fColor-black {
    color: #262626
}

#movie-details {
    font-size: 11px;
    white-space: wrap;
    text-align: center;
}

.movie-settings {
    text-align: center;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.movie-settings .combo-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.movie-settings .combo-wrapper label {
    flex-shrink: 0;
    min-width: 70px;
}

.movie-settings .combo-wrapper select {
    height: 35px;
    flex: 1;
    max-width: 200px;
}

.tag {
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
    display: inline-block;
}

.cat-dumb {
    color: #fff;
    background-color: #5c0ad5;
}

.cat-serious {
    color: #fff;
    background-color: #0a7ad5;

}

.cat-none {
    color: #868686;
    background-color: #cecece;
}

.filterWindow {
    position: fixed;
    z-index: 1;
    background-color: #35004d;
    padding: 10px;
    flex-direction: column;
    text-align: left;
    display: none;
    width: 100%;
    max-width: 300px;
    border: 1px solid #8e26bd;
    border-radius: 5px;
}

.filterWindow.visible {
    display: flex;
}


.unselectable {
    user-select: none;
}

label {
    user-select: none;
}

.gridBbar {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #35004D;
    position: fixed;
    color: #ddd;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


@media screen and (max-width: 768px) {
    .navBar {
        padding: 12px 15px;
    }

    .navBar__brand .title {
        font-size: 1.3rem;
    }

    .navBar__username {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .navBar__controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navBar__search {
        min-width: 100%;
        order: -1;
    }

    .navBar__actions {
        justify-content: space-between;
        width: 100%;
    }

    .navBar__btnText {
        display: none;
    }

    .navBar__randomBtn,
    .navBar__exportBtn {
        padding: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media screen and (max-width: 450px) {
    .grid .commentColumn {
        display: none;
    }

    .posterDetailsWrapper {
        flex-direction: column;
        align-items: center;
    }

    .editWindow {
        width: 95%;
        padding: 20px 15px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .editWindow .closeBtn {
        top: 5px;
        right: 5px;
    }

    .posterDetailsWrapper img {
        max-width: 150px;
        width: 100%;
        height: auto;
    }

    .movie-settings .combo-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .movie-settings .combo-wrapper label {
        text-align: left;
        min-width: unset;
    }

    .movie-settings .combo-wrapper select {
        width: 100%;
        max-width: 100%;
    }

    .navBar__brand .title {
        font-size: 1.2rem;
    }

    .navBar__iconBtn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .navBar__randomBtn,
    .navBar__exportBtn {
        width: 36px;
        height: 36px;
    }
}

.runtime {
    color: #262626;
    font-style: italic;
    font-size: 14px;
}

.runtime.no-runtime {
    color: #cecece;
}


.shimmer {
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 50% 100%;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-animation-name: shimmer;
    -moz-animation-name: shimmer;
    animation-name: shimmer;
    -webkit-animation-duration: 2s;
    -moz-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    background-repeat: repeat;
    background-position: 0 0;
    background-color: #6b19bd;
    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    animation-timing-function: linear;
}

@-moz-keyframes shimmer {
    0% {
        background-position: center left;
    }

    100% {
        background-position: center left;
    }
}

@-webkit-keyframes shimmer {
    0% {
        background-position: center left;
    }

    100% {
        background-position: center left;
    }
}

@-o-keyframes shimmer {
    0% {
        background-position: center left;
    }

    100% {
        background-position: center left;
    }
}

@keyframes shimmer {
    0% {
        background-position: center left;
    }

    100% {
        background-position: center right;
    }
}


.pulsate {
	color:#178617;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
		color:#178617;
		font-weight:400;
    }
	25% {
		color:#107910;
		font-weight:450;
	}
    50% {
        color:#080;
		font-weight:500;
    }

	75% {
		color:#107910;
		font-weight:450;

	}
    100% {
    	color:#178617;
		font-weight:400;
	}
}
