/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.theme-dark {
    --text: 222, 222, 222;
    --background: 19, 19, 19;
    --background_element: 33, 33, 33;
    --primary: 57, 185, 55;
    --secondary: 19, 78, 19;
    --accent: 137, 194, 51;
    --textrgb: rgb(222, 222, 222);
    --backgroundrgb: rgb(19, 19, 19);
    --background_elementrgb: rgb(33, 33, 33);
    --primaryrgb: rgb(57, 185, 55);
    --secondaryrgb: rgb(19, 78, 19);
    --accentrgb: rgb(137, 194, 51);
}

.theme-light {
    --text: 30, 30, 30;
    --background: 222, 222, 222;
    --background_element: 206, 206, 206;
    --primary: 57, 185, 55;
    --secondary: 229, 255, 229;
    --accent: 51, 73, 19;
    --textrgb: rgb(30, 30, 30);
    --backgroundrgb: rgb(222, 222, 222);
    --background_elementrgb: rgb(206, 206, 206);
    --primaryrgb: rgb(57, 185, 55);
    --secondaryrgb: rgb(229, 255, 229);
    --accentrgb: rgb(51, 73, 19);
}

a {
    all: unset;
    cursor: pointer;
}

body {
    /* background-color: var(--background); */
    color: var(--textrgb);
    font-size: large;
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: auto;
    /*background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 98%); */
    animation: gradient 60s ease infinite;
    background-size: 200% 200%;
    background-attachment: fixed;
}

.navbar {
    width: 100%;
    position: fixed;
    display: flex;
    height: 6VH;
    align-content: center;
    margin-bottom: 2VH;
    border-bottom: var(--accentrgb);
    padding-bottom: 15px;
    border-bottom-style: solid;
    background: var(--backgroundrgb);
}

.navbar-list {
    align-items: center;
    width: 100%;
    display: flex;
    padding: 4px;
    margin-left: 1VW;
    list-style-type: none;
}

.navbar-list-item {
    padding: 15px;
    /* border-radius: 3em;
    border-color: var(--background);
    border-style: solid; */
    margin: 20px;
    padding-bottom: 5px;
    text-wrap: nowrap;
}

.navbar-list-item:hover {
    /* border-color: var(--secondary); */
    box-shadow: 0px 3px 0px var(--secondaryrgb);
}

.logo {
    margin-left: 1VW;
    height: 4VH;
    width: 4VH;
    padding-top: 0.5VH;
}

img {
    height: inherit;
}

.login-button {
    align-self: center;
    display: flex;
    width: 6VW;
    padding: 15px;
    padding-bottom: 5px;
    align-content: center;
    align-items: center;
    text-wrap: nowrap;
    justify-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    /* border-radius: 3em;
    border-color: var(--background);
    border-style: solid; */
    margin: 20px;
}

.login-button:hover {
    /* border-color: var(--secondary); */
    box-shadow: 0px 3px 0px var(--secondaryrgb);
}

.theme-switcher {
    align-self: center;
    display: flex;
    width: fit-content;
    padding: 15px;
    align-content: center;
    align-items: center;
    justify-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 20px;
    /* border-radius: 3em;
    border-style: solid;
    border-color: var(--background); */
    padding-bottom: 5px;
    text-wrap: nowrap;
}

.theme-switcher:hover {
    /* border-color: var(--secondary); */
    box-shadow: 0px 3px 0px var(--secondaryrgb);
}

.login-form {
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.dns-records-all-box {
    background-color: var(--background_elementrgb);
    width: max-content;
    padding: 6VH;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2em;
    border-style: solid;
    /* border-color: var(--accent); */
    border-color: var(--background_elementrgb);
    border-width: 3px;
}

.dns-records-section-box {
    padding-top: 1VH;
    padding-bottom: 1VH;
}

.domain-text-area {
    background-color: var(--backgroundrgb);
    color: var(--textrgb);
    padding: 15px;
    border-style: solid;
    border-color: var(--background_elementrgb);
    border-radius: 2em;
    border-width: 2px;
    resize: none;
    text-justify: center;
    vertical-align: middle;
    width: 8vw;
}

.domain-text-area:hover {
    border-color: var(--secondaryrgb);
}

.save-deploy-button {
    margin-left: auto;
    margin-right: auto;
    background-color: var(--backgroundrgb);
    color: var(--textrgb);
    padding: 10px;
    border-style: solid;
    border-color: var(--background_elementrgb);
    border-radius: 2em;
    border-width: 2px;
    width: 10vw;
}

.save-deploy-button:hover {
    border-color: var(--secondaryrgb);
}

.servers {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: max-content max-content;
}

.single_server {
    justify-self: center;
    background-color: var(--background_elementrgb);
    border-radius: 10%;
    border-style: solid;
    padding: 1vh;
    width: max-content;
    margin: 20;
}

.codeBlock {
    font-family: "Lucida Console", "Menlo", "Monaco", "Courier", monospace;
    font-size: medium;
    background-color: var(--background_elementrgb);
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
}

.htmx-indicator {
    display: none
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.wave-container {
    position: absolute;
}

.wave {
    /* background: rgb(255 255 255 / 25%); */
    background: color-mix(in srgb, var(--primaryrgb) 25%, transparent);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 2500%;
    height: 20em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

.cheatsheet-navbar {
    background: rgba(var(--background), 0.5);
    width: max-content;
    backdrop-filter: blur(5px);
    box-shadow: inset 0px 0px 40px 40px rgb(var(--background));
    border-style: solid;
    border-radius: 10px;
    margin: 5px;
}

.cheatsheet-navbar-element:hover {}

.accordion {
    cursor: pointer;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.accordion:hover {
    box-shadow: 0px 3px 0px var(--secondaryrgb);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.code {
    /*  min-width: max-content; */
    white-space: pre;
    font-family: monospace;
    /* word-wrap: break-word; */
    box-decoration-break: clone;
    padding: .4rem .8rem .6rem;
    border-radius: 1rem;
    background: var(--background_elementrgb);
    box-shadow: 0px 0px 1px 1px var(--backgroundrgb);
    width: 800px;
    overflow: overlay;
    text-align: left;
    margin: 0.5rem;
}

.codeButton {
    width: 100%;
}
