@import url('https://fonts.googleapis.com/css?family=Montserrat');

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(29 42 65);
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
  
::-webkit-scrollbar-track {
    background: transparent;
    margin: 1rem;
}

::-webkit-scrollbar-thumb {
    background: #f9f9f969;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(189, 189, 189);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.plus i {
    font-size: 25px;
}

button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    background-color: #5784a173;
    color: #fff;
  }
  
button:hover {
    background-color: #449cd5;
}

button:active {
    background-color: #21618c;
}  

#sidebar, #history {
    display: none;
    align-items: center;
    flex-direction: column;
    background-color: #23282f;
    height: 100vh;
    position: fixed;
    left: 0;
    z-index: 100;
    animation: slideRight .5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: scroll;
    width: 20rem;
}

#history {
    width: 25rem;
    overflow-y: initial;
}

#sidebar-close, #history-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: cursive;
    color: white;
    font-size: 20px;
    opacity: .7;
    cursor: pointer;
}

#sidebar-title, #history-title {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: 1.3rem;
}

#sidebar > hr, #history > hr {
    margin: 1rem 0;
    width: 40%;
}

#sidebar-image {
    width: 16rem;
    border-radius: 20px;
}

#sidebar-anime {
    font-family: 'Montserrat';
    color: white;
    margin: 1rem 1rem 0 1rem;
    font-size: 1.3rem;
    text-align: center;
}

#sidebar-season {
    font-family: system-ui;
    color: rgb(189, 189, 189);
}

#sidebar-synopsis {
    color: #c1c8d1;
    font-size: 15px;
    font-family: system-ui;
    margin: 3rem 1rem 1rem 1rem;
}

#anime-info {
    position: absolute;
    top: 150px;
    right: 30px;
    background-color: #728197;
    padding: 1rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    opacity: .8;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

#anime-info:active {
    transform: scale(0.95);
}

#anime-history {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: #728197;
    padding: 1rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    opacity: .8;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

#anime-history:active {
    transform: scale(0.95);
}

#anime-share {
    position: absolute;
    top: 90px;
    right: 30px;
    background-color: #728197;
    padding: 1rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    opacity: .8;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

#anime-share:active {
    transform: scale(0.95);
}

#history ul {
    width: 98%;
    overflow-y: scroll;
    height: 85%;
    border: 3px solid #1a1f25;
    box-shadow: inset 2px 1px 11px 0 #0000007d;
}

#history li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1f25;
    margin: 1rem;
    border-radius: 20px;
    opacity: .7;
    box-shadow: 0 0 14px 0 #ffffff14;
}

#history li:hover {
    transform: scale(.98);
}

.history-del {
    font-family: cursive;
    color: white;
    font-size: 20px;
    opacity: .7;
    cursor: pointer;
    margin-right: 1rem;
}

.history-del-all {
    color: #fafafa;
    font-family: 'Montserrat';
    font-weight: bold;
    background-color: #798aa53b;
    padding: .5rem 2rem;
    border-radius: 20px;
    opacity: .8;
    position: fixed;
    bottom: 15px;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

.history-del-all:hover {
    background-color: #738db7;
}

.history-del-all:active {
    transform: scale(.95);
}

.history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.history-item > p:nth-child(1) {
    font-size: 12px;
    width: 15rem;
    font-family: Montserrat;
    font-weight: bolder;
    color: white;
    text-wrap: pretty;
    text-align: center;
}

.history-item > p:nth-child(2) {
    font-family: Montserrat;
    color: #728197;
    font-size: 10px;
    text-align: center;
    width: 12rem;
}

.history-img {
    height: 5rem;
    border-radius: 20px 0 0 20px;
}

.title {
    position: relative;
}

.title-img {
    width: 10rem;
    cursor: pointer;
}

.credits {
    position: absolute;
    color: #8da3e1;
    font-family: 'Montserrat';
    font-size: 8px;
    font-weight: bold;
    bottom: 33px;
    left: 45px;
    transition: all .2s ease-in-out;
    cursor: default;
}

.credits:hover {
    text-shadow: 0 0 7px #fff;
}

.controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#anime-play {
 margin-left: 1rem;
}

#anime-search {
    width: 45vw;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: monospace;
    transition: border-color 0.3s ease-in-out;
}
  
#anime-search:focus {
    border-color: #3498db;
    outline: none;
}

#anime-search-clear {
    display: none;
    position: absolute;
    top: 10px;
    right: 103px;
    font-family: 'Montserrat';
    font-weight: bold;
    color: #a3a0a0;
    cursor: pointer;
    transition: .3s all ease-in-out;
}

#dialog-container {
    position: relative;
}

#dialog {
    width: max-content;
    max-width: 50rem;
    min-width: 30rem;
    position: fixed;
    padding: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #596885;
    border: transparent;
    border-radius: 10px;
    z-index: 1;
    font-family: system-ui;
    color: white;
}

#dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
    display: none; /* Initially hide the backdrop */
  }

#themes-form {
    display: flex;
    flex-direction: column;
}

#themes-form > p {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Montserrat';
    text-align: center;
    margin-bottom: 1rem;
}

#themes-container {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 30rem;
    background-color: #4e5c77;
    border-radius: 10px;
}

#themes-container label {
    display: inline-block;
    width: 100%;
    padding: .8rem;
    cursor: pointer;
}

#themes-container label:hover {
    background-color: #37486385;
}

.theme-label-clicked {
    background-color: #37486385;
}

#themes-container input[type="radio"] {
    display: none;
}

#themes-container input {
    margin: 0.5rem 0;
}

#themes-container span {
    font-weight: lighter;
}

#themes-container span > strong {
    color: antiquewhite;
}

#themes-container .tip {
    white-space: nowrap;
    font-size: 12px;
    background-color: #728197;
    color: white;
    padding: .2rem .5rem;
    border-radius: 20px;
    font-family: monospace;
    margin-right: .2rem;
    margin-bottom: .2rem;
}

#form-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

#themes-form button {
    outline: none;
    margin: 0 .5rem;
    border-radius: 10px;
    background-color: #e4f5ff54;
}

#themes-form button:hover {
    background-color: #e4f5ffa1;
}

.disabled-dialog-submit, .disabled-dialog-submit:hover {
    background-color: #1a1f25 !important;
    cursor: not-allowed;
}

.refresh {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0.5rem;
    padding: 8px 8px;
    border-radius: 10px;
}
  
.plyr {
    aspect-ratio: 16 / 9;
    width: 80%;
    margin: 0 5rem;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px #00000090;
}

.watch {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.suggestions {
    background-color: #29374d;
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr)
}

.suggestions-title {
    position: absolute;
    left: 30px;
    top: 15px;
    color: white;
    font-family: 'Montserrat';
    font-weight: bold;
    opacity: .4;
}

.suggestion {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.suggestion:hover {
    transform: scale(.98);
}

.suggestion:active {
    transform: scale(.92);
}

.suggestion-img {
    height: 12rem;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 1px 2px 11px 0 #0000007d;
    opacity: .8;
    transition: .3s all ease-in-out;
}

.suggestion-img:hover {
    opacity: 1;
}

.suggestion-title {
    color: white;
    font-family: Montserrat;
    width: 10rem;
    height: 1rem;
    text-wrap: wrap;
    font-size: 10px;
    text-align: center;
}

.page-interact {
    display: none;
    z-index: 1000;
    background-color: #29374d;
    height: 100vh;
    width: 100vw;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: slideRight 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 1s ease-out;
}

.page-interact:active {
    background-color: #1d2737;
}

.page-interact > img {
    width: 15rem;
}

.page-interact > p {
    font-size: 1rem;
    color: white;
    font-family: 'Montserrat';
    opacity: .85;
    text-align: center;
}

.page-interact > p > span {
    display: inline-block;
    font-weight: bold;
    background-color: #232f43;
    padding: .8rem;
    margin: .3rem;
    border-radius: 16px;
    box-shadow: 2px 3px 13px 0px #23282f1c;
}

@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fade-out {
    from {
      opacity: 100%;
    }
    to {
      opacity: 0%;
    }
}

.bg-splash {
    position: fixed;
    left: 50%;
    font-size: 100rem;
    color: white;
    z-index: -1;
    opacity: .02;
    font-family: 'Montserrat';
}

.bg-splash-1 {
    transform: translate(-50%, -70%);
}

.bg-splash-2 {
    transform: translate(-75%, -115%) rotate(180deg);
}

.grow-animation {
    opacity: 1;
    animation: grow .3s ease-in-out;
}

@keyframes grow {
    from {
        transform: scale(0);
    } to {
        transform: scale(1);
    }
}

@media only screen and (max-width: 1200px) {
    .suggestions {
        display: grid;
        grid-template-columns: repeat(4,1fr);
    }
}

@media only screen and (max-width: 1000px) {
    .suggestions {
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }
}

@media only screen and (max-width: 600px) {
    .plyr {
        margin: 0;
        width: 100%;
        height: initial;
        border-radius: initial;
    }

    .suggestions {
        display: flex;
        flex-direction: column;
        padding: 5rem;
    }

    .suggestion-img {
        height: 20rem;
    }
    
    #dialog {
        max-width: 18rem;
        min-width: initial;
    }

    #themes-container {
        overflow-x: scroll;
    }

    #themes-container strong {
        display: block;
        text-wrap: balance;
    }

    .page-interact > p {
        font-size: 12px;
    }
}

@media only screen and (max-width: 450px) {

    .title-img {
        width: 15rem;
    }

    .credits {
        bottom: 50px;
        left: 76px;
    }

    .suggestions {
        padding: 3rem;
        margin-bottom: 1rem;
    }

    .suggestion-img {
        height: 15rem;
    }

    .refresh {
        bottom: 3px;
    }

    #dialog {
        max-width: 15rem;
    }

    #history {
        width: unset;
    }

    .history-item > p:nth-child(1) {
        width: unset;
    }

    .history-item > p:nth-child(2) {
        width: 10rem;
    }
}
