* {
    padding: 0;
    margin: 0;
}

:root {
    --body-background: rgb(29, 36, 37);
    --body-color: rgb(0, 204, 255);
    --footer-bt: rgb(182, 186, 190);
    --button-border: #999;
    --ctn-textarea: #444;
    --bg-textarea: #222;
    --fr-textarea: #eee;
    --bg-copy: #333;
    --br-copy: #f9f9f9;
    --bx-copy: rgba(0, 0, 0, 0.2);
}

body {
    color: var(--body-color);
    background-color: var(--body-background);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', Courier, monospace;
    font-size: small;
}

h2 {
    font-size: large;
    font-weight: bold;
    margin: 4px;
}

.kofi_logo {
    width: 50px;
    height: auto;
}

label {
    font-size: large;
    font-weight: bold;
}

select {
    margin: 4px;
    padding: 4px;
    background-color: var(--body-background);
    color: var(--body-color);
    border-radius: 5px;
}

.button-border {
    background-color: transparent;
    color: var(--button-border);
    padding: 5px 10px;
    margin: 6px 0px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.button-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.button-border:hover {
    color: var(--body-background);
}

.button-border:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.ctn-textarea-btn {
    max-width: 450px;
    background-color: var(--ctn-textarea);
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    min-height: 150px;
    max-height: 150px;
    padding: 10px;
    border: 1px solid var(--ctn-textarea);
    border-radius: 5px;
    background-color: var(--bg-textarea);
    color: var(--fr-textarea);
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
}

.ctn-textarea-btn button {
    margin: 2px;
}

.ctn-textarea-btn button:hover {
    cursor: pointer;
    color: var(--body-color);
    background-color: var(--body-background);
}

#copyInfo {
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-copy);
  border: 2px solid var(--br-copy);
  padding: 10px;
  box-shadow: 0 4px 8px var(--bx-copy);
  border-radius: 8px;
  z-index: 1000;
  display: none;
}

#copyInfo.show,
.show #copyInfo {
  display: block;
}

.info {
    border-top: 1px solid var(--footer-bt);
    color: var(--fr-textarea);
    background-color: var(--bg-textarea);
    display: flex;
    width: calc(2/100vw);
}

.use {
    padding: 4px;
    width: 100%;
    border-right: 1px solid var(--footer-bt);
}

.cr {
    padding: 4px;
    width: 100%;
    border-left: 1px solid var(--footer-bt);
}

h3 {
    margin-bottom: 10px;
}

li {
    list-style: none;
    margin: 2px 0px;
}

footer {
    border-top: 1px solid var(--footer-bt);
    text-align: center;
    padding: 6px;
    font-weight: bold;
    background-color: var(--bg-textarea);
}

@media screen and (max-width: 1023px) and (min-width: 600px) {
    h1, h2 {
        font-size: medium;
    }
}

@media screen and (max-width: 600px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        box-sizing: border-box;
        min-height: auto;
    }
    
    h1, h2, label {
        font-size: 1.1em;
        text-align: center;
        margin-bottom: 8px;
    }

    .ctn-textarea-btn {
        max-width: 100%;
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    textarea {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 120px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .info {
        width: 100%;
        flex-direction: column;
    }
    
    .use, .cr {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--footer-bt);
    }
    
    .cr {
        border-bottom: none;
    }
    
    #copyInfo {
        top: 50%;
        width: 80%;
        max-width: 300px;
        box-sizing: border-box;
    }
    
    footer {
        font-size: smaller;
    }
}