body {
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: "main";
    color: rgb(20, 20, 20);
}

button:focus, input:focus, textarea:focus {
    outline: none;
}

/* CLASSES */

.logo-container {
    display: block;
    margin: auto;
    margin-bottom: 180px;
    width: 450px;
    max-height: 160px;
}

.logo {
    position: absolute;
    height: 160px;
    margin: auto;
}

.scrolling-bg-container {
    overflow: hidden;
    margin: 0%;
    padding: 0%;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -3;
}
  
.scrolling-bg {
    background: url("images/bg.png") repeat;
    width: 1000vw;
    height: 100vh;
    background-size: auto contain;
    background-position: center;
    animation: bg 30s linear infinite;
}

.button-container {
    display: flex;
    gap: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-left: 10px;
    margin-bottom: 20px;
}

.name, .order, .search, .add-ability, .card-name, .card-class, .card-cost, .card-description, .card-confirm {
    box-sizing: border-box;
    padding: 0 5px 0 5px;
    background-color: white;
    font-family: "main";
    color: rgb(20, 20, 20);
    height: 50px;
    font-size: 20px;
    line-height: 45px;
    border-radius: 10px;
    border: solid rgb(50, 50, 50) 4px;
    box-shadow: 0 6px rgb(25, 25, 25);
    transition: all 0.1s;
    text-wrap: nowrap;
}

.name {
    width: 350px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    font-family: "main";
}

.order {
    width: 135px;
    font-size: 18px;
}

.search {
    width: 125px;
    font-size: 24px;
}

.name:hover, .order:hover, .search:hover, .add-ability:hover, .card-name:hover, .card-class:hover, .card-cost:hover, .card-description:hover, .card-confirm:hover {
    transform: scale(1.02);
}

.add-ability {
    font-size: 20px;
}

.display {
    width: 100%;
    height: 550px;
    background-color: rgb(0, 0, 0, 0.15);
    box-shadow:
    0 0 10px rgb(0, 0, 0, 0.2);
    display: flex;
    overflow-x: scroll;
    align-items: center;
    margin-bottom: 5px;
}

.display::-webkit-scrollbar {
    height: 15px;
}

.display::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.display::-webkit-scrollbar-thumb {
    background: rgb(20, 20, 20);
    border-radius: 15px;
}

.ability-container {
    width: 350px;
    min-width: 350px;
    min-height: 400px;
    height: 90%;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 12.5px;
    border-radius: 20px;
    margin: auto 15px auto 15px;
    border: solid rgb(50, 50, 50) 8px;
    box-shadow: 0 8px rgb(25, 25, 25);
}

.ability-name {
    margin: auto;
    max-width: 340px;
    text-align: center;
    font-size: 32.5px;
    padding-bottom: 5px;
    margin-top: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ability-additional {
    display: flex;
    width: 100%;
    height: 32.5px;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
    background-color: rgb(235, 235, 235);
}

.ability-description-header {
    font-size: 32.5px;
    text-align: left;
    margin-left: 15px;
}

.ability-description {
    margin: auto;
    background-color: rgb(235, 235, 235);
    border-radius: 15px;
    padding: 10px;
    font-size: 28px;
    margin: 0 15px 0 15px;
    line-height: 32.5px;
    height: 253px;
    overflow: hidden;
    line-clamp: 8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
}

.ability-edit {
    background: none;
    border: none;
    font-family: "main";
    color: rgb(20, 20, 20);
    line-height: 24px;
    width: 60px;
    height: 24px;
    font-size: 24px;
    display: block;
    margin: auto;
    margin-bottom: 12px;
    transition: all 0.1s;
}

.ability-edit:hover {
    text-shadow: 0 0 10px rgb(80, 80, 230);
    transform: scale(1.05);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.pagination-button {
    display: inline-block;
    width: 35px;
    min-width: 35px;
    height: 35px;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    color: rgb(20, 20, 20);
    border-radius: 10px;
    background-color: white;
    text-decoration: none;
    border: solid rgb(50, 50, 50) 4px;
    box-shadow: 0 6px rgb(25, 25, 25);
    transition: all 0.1s;
}

.pagination-button:hover {
    transform: scale(1.03);
}

.pagination-button:disabled {
    color: rgb(40, 40, 40);
    border: solid rgb(60, 60, 60) 4px;
    box-shadow: 0 6px rgb(35, 35, 35);
}

.pagination-input {
    width: 80px;
    height: 30px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    color: rgb(20, 20, 20);
    border-radius: 10px;
    border: solid rgb(50, 50, 50) 4px;
    box-shadow: 0 6px rgb(25, 25, 25);
    font-family: "main";
    transition: all 0.1s;
}

.pagination-input:hover {
    transform: scale(1.02);
}

.pagination-input::-webkit-inner-spin-button, .pagination-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.secret {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    top: 0;
    left: 0;
    opacity: 0.8;
    pointer-events: none;
}

.card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.card-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    width: 500px;
    background-color: white;
    border: solid rgb(50, 50, 50) 6px;
    box-shadow: 0 8px rgb(25, 25, 25);
    color: rgb(20, 20, 20);
    border-radius: 15px;
    z-index: 2;
    background-size: cover;
    scale: 0;
    transition: scale 0.5s;
}

.card-header {
    width: 100%;
    height: 20px;
    padding: 15px 0 15px 0;
    text-align: center;
    font-size: 26px;
    line-height: 20px;
    background-color: rgb(235, 235, 235);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.close-button {
    width: 40px;
    position: absolute;
    top: 1%;
    right: 1%;
    transition: all 0.15s;
    filter: brightness(0.2);
}

.close-button:hover {
    transform: scale(1.08);
}

.card-darken {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 500px;
    padding-bottom: 10px;
}

.card-form > * {
    width: 90%;
}

.card-description {
    height: 200px;
    resize: none;
    line-height: 24px;
    padding-top: 5px;
    text-wrap: wrap;
}

.card-confirm {
    width: 200px;
}

/* ANIMATIONS */

@keyframes bg {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100vw, 0);
    }
}

/* FONTS */

@font-face {
    font-family: "main";
    src: url(fonts/main.ttf);
}