@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=swap');

body {
    background-image: url('/spell-generator/static/bg.jpg');
    background-repeat: no-repeat;
    background-position: top;
    background-color: #1f2024;
    color: white;
    font-family: Inter, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

a {
    color: white;
    text-decoration: none;
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

button:hover {
    opacity: 0.8;
}

.content {
    padding: 0 36px;
}

@media (max-width: 767px) {
    .content {
        padding: 0;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    font-size: 16px;
    max-width: 1900px;
    padding: 0 36px 0 36px;
    font-weight: 600;
}

@media (max-width: 767px) {
    header {
        padding: 36px 0 0 0;
    }
}

footer {
    height: 50px;
}

header .header-inner {
    width: 100%;
    display: grid;
    align-items: center;
    grid-auto-flow: dense;
    grid-template-columns: auto 1fr;
    column-gap: 28px;
    row-gap: 28px;
    min-height: 100px;
}

@media (max-width: 767px) {
    header .header-inner {
        display: block;
        text-align: center;
    }
}

@media (max-width: 767px) {
    header .header-logo {
        margin-bottom: 20px;
    }
}

header .header-logo a {
    display: block;
}

header .header-logo img {
    max-height: 40px;
}

header nav {
    align-items: center;
    row-gap: 28px;
    margin: 0 16px 0 16px;
}

header ul {
    list-style: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    row-gap: 18px;
    column-gap: 28px;
}

header ul li {
    line-height: 25.6px;
}

@media (max-width: 767px) {
    header ul {
        flex-wrap: wrap;
        justify-content: flex-between;
    }
}

.nav-fantasy-chats a {
    color: #b4ff00;
}

.spell-generator-outer {
    max-width: 800px;
    margin: 30px auto 70px auto;
    background: linear-gradient(#BCE3EF, #DBEFBC);
    border-radius: 5px;
    padding: 5px;
}

@media (max-width: 767px) {
    .spell-generator-outer {
        padding: 5px 0;
        border-radius: 0;
    }
}

.spell-generator {
    min-height: 300px;
    background-color: #1D1D1D;
    border-radius: 5px;
    padding: 50px;
}

@media (max-width: 767px) {
    .spell-generator {
        padding: 40px 20px;
        border-radius: 0;
    }
}

.spell-generator h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 50px;
    background: linear-gradient(91deg, #02FF85 0%, #BDFF02 50.94%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
}

@media (max-width: 575px) {
    .spell-generator h1 {
        font-size: 36px;
    }
}

.spell-generator form {
    margin-top: 50px;
}

.spell-generator textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 150px;
    border: none;
    padding: 20px;
    margin: 20px 0;
    font-size: 16px;
}

.spell-generator button,
.spell-generator a.button {
    padding: 15px 80px;
    background-color: #75F9AA;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 1s;
}

.spell-generator button:hover,
.spell-generator a.button:hover {
    background-color: #d1ff84;
}

.spell-generator .examples {
    margin-top: 100px;
}

.spell-generator .examples a {
    opacity: 1;
}

.spell-generator .examples a:hover .spell-name {
    color: #62871c;
}

.spell-generator .examples h2 {
    font-size: 36px;
}

@media (max-width: 575px) {
    .spell-generator .examples h2 {
        font-size: 28px;
    }
}


.spell-generator .spell {
    background-color: #FDFCDF;
    color: black;
    border-radius: 3px;
    margin: 30px 0;
    padding: 40px;
}

.spell-generator .spell .spell-name {
    font-size: 32px;
    font-weight: 900;
}

@media (max-width: 767px) {
    .spell-generator .spell {
        padding: 20px;
    }

    .spell-generator .spell .spell-name {
        font-size: 28px;
    }
}

.spell-generator .spell .spell-pronunciation {
    font-style: italic;
    margin-top: 10px;
}

.spell-generator .spell .spell-description {
    margin-top: 30px;
}

.spell-details {
    margin-top: 50px;
}

.spell-generator .copy-link-button {
    background-color: #c0aaff;
}

.spell-generator .copy-link-button:hover {
    background-color: #2578ff;
}

.spell-actions {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .spell-actions {
        flex-direction: column;
        margin: 10px 0;
        row-gap: 20px;
    }
}

.spell-actions a.button {
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.products-list {
    display: flex;
    column-gap: 30px;
    row-gap: 30px;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .products-list {
        justify-content: space-around;
        row-gap: 60px;
    }
}

.products-list a.product {
    display: block;
    text-decoration: none;
}

.products-list .product .product-preview img {
    height: 200px;
    border: 15px solid white;
    border-radius: 5px;
}

.products-list .product .product-preview img:hover {
    -webkit-filter: opacity(.8);
    filter: opacity(.8);
}

.products-list .product .product-name {
    margin-top: 10px;
    max-width: 200px;
    min-height: 70px;
}

.products-list .product button {
    width: 100%;
    background-color: #575757;
    color: white;
    border: none;
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }

.products-list .product button:hover {
    background-color: #575757;
}

.products-list .product .product-price {
    position: relative;
}

.products-list .product .product-price span {
    position: absolute;
    bottom: 0;
    font-size: 8px;
    bottom: 10px;
    margin-left: 2px;
}
