html {
    font-size: 25px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
}
.color {
    border-radius: 10px;
    width: 200px;
    height: 240px;
    background-color: #8a2be2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.copy-color {
    position: relative;
    font-size: 0.7rem;
    color: rgb(248, 248, 248);
    background-color: rgba(0, 0, 0, 0.432);
    padding: 7px 20px 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.copy-color:hover {
    background-color: rgba(0, 0, 0, 0.596);
}

.copy-color:active {
    background-color: rgba(0, 0, 0, 0.747);
}

.generate-color {
    font-size: 0.8rem;
    color: rgb(248, 248, 248);
    background-color: rgba(0, 0, 0, 0.432);
    padding: 7px 20px 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}
.generate-color:hover {
    background-color: rgba(0, 0, 0, 0.596);
}

.generate-color:active {
    background-color: rgba(0, 0, 0, 0.747);
}

.result-container {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.747);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.copied-result {
    height: 70px;
    border-radius: 10px;
    width: max-content;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgb(0, 0, 0);
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
