/* Sections */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    transition: transform 0.3s ease;
}

.spin:hover {
    animation: spin 1s linear infinite;
}
main {
    margin-top: 4rem;
}

.bg-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert {
    background: #ffd20a;
    padding: 1rem;
    width: 100%;
    max-height: fit-content;
    display: flex;
    justify-content: center;
    overflow: hidden;
    animation: alertDisappear 1s ease 5s forwards;
}

@keyframes alertDisappear {
    0% {
        max-height: 50px;
    }

    100% {
        max-height: 0px;
        padding: 0;
        display: none;
    }
}

.subtitle {
    font-size: 3rem;
    color: white;
}

.undertitle {
    font-size: 2rem;
    color: white;
}

.home {
    background: linear-gradient(to right top, #f46b45, #eea849);
    flex-direction: column;
}

.home2 {
    background: linear-gradient(270deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 800% 800%;
    animation: rgbGradient 10s linear infinite;
    flex-direction: column;
}

/* Keyframes for the animation */
@keyframes rgbGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bots {
    background: linear-gradient(to right top, #36393f, #2f3136);
    flex-direction: column;
    padding: 2rem 0;
}

.contact {
    background: linear-gradient(to right top, #e53935, #e35d6b);
}

/* Bot grid */
.bot-list {
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 3rem 3rem;
    justify-content: center;
    align-items: center;
}

.bots-more {
    font-weight: bold;
    transition: opacity 100ms ease-in-out;
    background: #fff;
    color: #000000;
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.25);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.4rem;
    font-size: 1.1rem;
}

.bots-more div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.bots-more p {
    display: block;
    margin: 0 0.5rem;
}

.bots-more svg {
    height: 1.25rem;
    margin: 0 0.5rem;
}

.bots-more:hover {
    opacity: 75%;
}

.bots-more:active {
    transform: translateY(2px);
}

.bot-card {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 26rem;
    width: 20rem;
    min-width: 250px;
    color: white;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background-color: #23272a;
    border-radius: 0.6rem;
}

/* Bot Status */

.bot-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bot-author {
    display: flex;
    align-items: center;
    max-width: 70%;
}

.bot-author h5 {
    overflow: auto;
}

.bot-author h5::-webkit-scrollbar {
    height: 0.25rem;
}

.bot-author img {
    width: 27px;
    border-radius: 100px;
    margin-right: 5px;
}

.bot-status {
    display: flex;
    align-items: center;
}

.bot-status h6 {
    font-size: 11px;
    padding-right: 6px;
}

.bot-status-img {
    width: 12px;
    height: 12px;
}

/* Bot index */

.bot-index {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    margin: 5px 0;
}

.bot-name {
    font-size: 1.8rem;
}

.bot-index img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
}

.bot-prefix {
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.bot-prefix h5 {
    font-size: 12px;
}

.bot-prefix-box {
    margin-left: 6px;
    font-size: 13px;
    background: #e2e2e2;
    color: #000000;
    padding: 2px 5px;
    border-radius: 5px;
}

/* Bot desc */

.bot-desc {
    overflow: auto;
    padding: 1rem 0;
    margin-bottom: 55px;
    font-size: 0.9rem;
}

.bot-desc::-webkit-scrollbar {
    width: 0.25rem;
}

/* Bot invite */

.bot-interact {
    display: flex;
    position: absolute;
    bottom: 1.5rem;
    left: 0.75rem;
    right: 0.75rem;
}

.bot-interact-button {
    flex: 1;
    margin: 0 0.75rem;
}

.bot-interact-button a {
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    text-align: center;
}

.bot-interact-button h3 {
    padding: 0.8rem 1.1rem;
    border-radius: 0.3rem;
}

.bot-interact-button a h3:active {
    transform: translateY(2px);
}

.bot-invite a h3 {
    background-color: #43b581;
}

.bot-vote a h3 {
    background-color: #7289da;
}

/* Contact sections */

.contact {
    display: flex;
    flex-direction: row;
    color: #ffffff;
}

.contact-textfield {
    margin: 2rem;
    width: 19rem;
}

.contact-textfield p {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    margin: 2rem;
    width: 30%;
}

/* Contact form success */

.form-success {
    background: #27ae60;
    padding: 1rem;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 20px;
    display: none;
    overflow: hidden;
}

/* Contact form error */

.form-error {
    background: #008dff;
    padding: 1rem;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 20px;
    display: none;
    overflow: hidden;
}

@keyframes formMessage {
    0% {
        opacity: 100%;
        display: block;
    }

    50% {
        opacity: 100%;
        display: block;
    }

    90% {
        opacity: 0%;
        max-height: fit-content;
        padding: 1rem;
    }

    100% {
        opacity: 0%;
        max-height: 0;
        display: none;
        padding: 0;
    }
}

/* Contact group form */

.form-input-group {
    display: flex;
    flex-direction: column;
    margin: 0.25rem;
}

.contact-form label {
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-form label::after {
    content: "*";
    color: #008dff;
}

.form-input-group input,
.form-input-group textarea {
    font-size: 20px;
    padding: 0.5rem;
    border-radius: 0.3rem;
    font-family: "Montserrat", sans-serif;
    border: none;
}

.form-submit {
    background: #ffffff;
    cursor: pointer;
}

.form-submit:active {
    transform: translateY(2px);
}

.form-input-group input:focus,
.form-input-group textarea:focus {
    outline: none;
}

.form-username {
    display: flex;
    flex-direction: row;
    margin: 0.25rem;
    align-items: center;
}

.form-username h2 {
    padding-left: 0.5rem;
}

.form-username img {
    width: 3rem;
    border-radius: 50%;
}

/* Discord Log In */

.contact-login img {
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-login p {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0%;
    margin-right: 1rem;
}

.contact-login-a {
    text-decoration: none;
}

.contact-login {
    height: 4rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background: #5865f2;
    border-radius: 0.3rem;
    box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.3);
}

.contact-login-container {
    margin-top: 2rem;
}

.contact-login:active {
    transform: translateY(2px);
}

/* Screen sizes */

@media screen and (max-width: 1100px) {
    /* Bot List direction */

    .bot-list {
        grid-template-columns: 1fr;
    }

    .bot-card {
        margin: 1rem;
    }

    .contact-form {
        width: 40%;
    }
}

@media screen and (max-width: 620px) {
    .contact {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .contact-form {
        width: 75%;
    }

    .contact-textfield {
        margin: 2rem;
        width: 75%;
    }
}
