@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

body{
    background: linear-gradient(90deg, rgb(22, 22, 22) 0%, rgb(0, 0, 0) 50%); 
    color:rgb(168, 168, 168);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}
main {
    position:absolute; top:0; left:0;
    width:100vw; height:100vh;
}
::selection {
    background: rgba(104, 0, 202, 0.5);
    color: white;
  }

wrapper{
    display:block;
    margin: 0 auto;
    padding: 0;
    width:85vw; max-width:500px;
    border-top: 1px solid rgb(104, 0, 202);
}

h1{
    text-align:center;
    color: rgb(104, 0, 202);
    margin:.8em 0 .5em 0;
}

table,tr,td {
    width:100%;
    padding:0; margin:0;
    text-align:center;
}

input, button {
    width:100%;
    font-size:1.2em;
    padding:.3em 0 .3em 0;
    margin : .2em 0 .2em 0;
    border-radius: .5em;
    border: 2px rgb(41, 41, 41) solid;
    font-family: "Oswald", sans-serif;
    outline:0;
}

input.url{
    background: radial-gradient(circle, rgb(37, 37, 37) 0%, rgb(26, 26, 26) 100%);
    color:rgb(119, 119, 119);
    text-indent:.5em;
}
input.name{
    background: radial-gradient(circle, #351d61  0%, #170327  100%);
    color:white;
    text-align:center;
}
input::placeholder {
    font-style: italic;
    opacity: 0.4;
}
input.url:focus{
    color:rgb(171, 98, 240);
}
input.name:focus{
    background:rgb(171, 98, 240);
}
.url:focus, input:hover, button:hover{
    border:2px solid rgb(104, 0, 202);
    background:rgb(20, 7, 34);
}
input.name:hover,input.name:focus{
    background:#29064b;
}
#watch,#copy,input.name{
    border: 1px solid #7c2bff;
    transition: 0.5s;
    background-size: 200% auto;
    font-weight:600;
}
#watch,#copy{
    margin-top:.5em;
    cursor:pointer;
    font-size:1.4em;
}
#watch{
    color: white;
    background-image: linear-gradient(to right, #6441A5 0%, #2a0845  51%, #6441A5  100%);
}
#copy{
    color: #c4a0ff;
    background-image: linear-gradient(to right, #160225 0%, #2a0845  51%, #390f5c  100%);
}
#watch:hover,#copy:hover{
    background-position: right center;
    text-shadow: 0 0 3px #ffffff;
    color: #fff;
    text-decoration: none;
}
#watch:hover{
    box-shadow: 0 0 10px #7c2bff;
}
#copy:hover{
    box-shadow: 0 0 10px #4c16a3;
}






#copy {
    position: relative;
    overflow: hidden;
}

#copy .btn-text {
    display: block;
    transition: all 0.4s ease;
}

#copy.copied .btn-text {
    transform: translateY(-100%);
    opacity: 0;
}

#copy::after {
    content: "COPIED !";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px #c4a0ff;
    transition: all 0.4s ease;
    pointer-events: none;
}

#copy.copied::after {
    transform: translate(-50%, -50%);
    opacity: 1;
}

#copy.copied {
    background-position: right center !important;
    box-shadow: 0 0 20px #8e15ff !important;
}





#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 7, 56, 0.95);
    color: #e0bbff;
    padding: 14px 28px;
    border-radius: 1em;
    border: 1px solid #8e15ff;
    box-shadow: 0 0 20px rgba(142, 21, 255, 0.4);
    font-size: 1.1em;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}