@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');

html, body {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 16px;
    background: #0a1213;
    color: #edf7ea;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    color: #edf7ea;
    margin-bottom: 20px;
}

input { 
    font-size: 0.6em;
    border: hidden;
    border-radius: 2px;
    text-align: center;
    background-color: #0a1213;
    color: #a2aabc;
    width: 150px;
    margin-left: 0;
}

input::placeholder {
    font-size: 1.25em;
    color: #a2aabc;
}

input:focus {
    outline: none;
    background-color: #0a1213;
}

.secret-label {
    color: #a2aabc;
}

.secret-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.totp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -15px;
}

.totp {
    font-size: 1.2em;
    color: #a2aabc;
    text-align: center;
    display: inline-block;
    margin-right: 8px;
}

.copy-icon {
    width: 24px; 
    height: 24px; 
    cursor: pointer;
    vertical-align: middle;
    transition: filter 0.3s ease;
    filter: brightness(0.6)
}

.copy-icon:hover {
    filter: brightness(0.8);
}

.timer {
    font-size: 1.25em;
    color: #535353;
    margin-top: 20px;
}

.secret {
    font-size: 1.15em;
    margin: 20px 0;
    color: #777777;
}

.copied-message {
    position: absolute;
    top: 50%;
    right: 140px;
    font-size: 0.85em;
    color: #bdc0d1;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.copied-message.visible {
    display: inline-block;
    opacity: 1;
}

.cherryrgb {
    color: #f35626;
    background-image: linear-gradient(92deg, #f35626, #feab3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: hue 10s infinite linear;
}

@keyframes hue {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(-360deg);
    }
}

a {
    text-decoration: none;
    color: #7e889e;
}

a:hover {
    color: #847e9e;
}

.dropdown {
    width: 630px;
    margin: 20px auto;
    color: #626262;
    text-align: center;
    padding: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dropdown-header {
    display: inline;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
}

.dropdown-header span {
    font-size: 1em;
    flex-grow: 1;
    text-align: center;
}

.dropdown-icon {
    color: #626262;
    transition: transform 0.3s ease;
}

.dropdown-header.expanded .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    padding: 10px;
    animation: fadeIn 0.3s ease;
    text-align: left;
    font-size: 0.75em;
}

.dropdown-content p {
    margin: 10px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dropdown-content.fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.copied-message.fade-out {
    animation: fadeOutMessage 1s ease-in-out;
}

@keyframes fadeOutMessage {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
