:root {
    --button-color: rgb(23,23,23);
    --bg-color:rgb(36, 36, 36);
}

@font-face {
    font-family: Main-Font;
    src: url("Oswald-VariableFont_wght.ttf");
}


body {
    background: url("../img/background.png");
    color: rgb(225, 225, 225);
    font-family: Main-Font;
    background-size: 100%;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 4%;
}

#title_name {
    font-size: 250%;
}

#title {
    font-size: 600%;
}

#intro {
    margin-top: 5%;
    font-size: 300%;
    background-color: rgb(30, 30, 30);
    border: 20px solid rgb(20, 20, 20);
}

#endtext {
    margin-top: 5%;
}

#scriptlist {
    padding: 25px;
    text-align: left;
}
/* progressstuff */

#scriptlist {
    background-color: rgb(24, 24, 24);
    border: 15px solid gray;
    border-radius: 20px;
}

.progress {
    margin-left: 75px;
    width: 500px;
    height: 15px;
    background-color: gray;
    border: 5px solid gray;
    border-radius: 10px;
  }

.progress div{
    margin-top: 2px;
    height: 10px;
    border-radius: 5px;
    width: 0%;
    background-color: red;
}

.progress div span {
    height: 40px;
    width: 40px;
    font-size: 20px;
    border-radius: 50%;
    background-color: rgb(36, 36, 36);
    float: right;
    margin-top: -15px;
    margin-left: -20px;
    align-items: center;
    display: flex;
    justify-content: center;
    border: 2px solid grey;
}
#python {
    animation: python 1.6s ease-in-out forwards;
}

#Java {
    animation: Java 1s ease-in-out forwards;
}

#JavaScript {
    animation: JavaScript 1s ease-in-out forwards;
}

#css {
    animation: css 1.4s ease-in-out forwards;
}

#batch {
    animation: batch 0.8s ease-in-out forwards;
}

#db {
    animation: db 0.4s ease-in-out forwards;
}

#linux {
    animation: linux 0.2s ease-in-out forwards;
}

#lua {
    animation: lua 0.8s ease-in-out forwards;
}
#assembly {
    animation: assembly 0.1s ease-in-out forwards;
}
@keyframes python {
    100%{
        width: 80%;
    }
}
@keyframes Java {
    100%{
        width: 50%;
    }
}
@keyframes JavaScript {
    100%{
        width: 50%;
    }
}
@keyframes css {
    100%{
        width: 70%;
    }
}
@keyframes batch {
    100%{
        width: 40%;
    }
}
@keyframes db {
    100%{
        width: 20%;
    }
}
@keyframes linux {
    100%{
        width: 10%;
    }
}
@keyframes lua {
    100%{
        width: 40%;
    }
}
@keyframes assembly {
    100%{
        width: 5%;
    }
}



/*Button System*/


#buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 916px;
    width: calc(100% - 20px);
    align-items: center;
    display: flex;
    justify-content: center;
    margin:auto;
    padding: 0px;
    
}

.button {
    border-radius: 15px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    height: 260px;
    position: relative;
    width: 300px;
}

.button:hover::before {
    opacity: 1;
}

#buttons:hover > .button > .button_border{
    opacity: 1;
}

.button::before,
.button_border {
    opacity: 0;
    transition: opacity 500ms;
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 2;
}

.button::before {
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255,255,255, 0.06),
        transparent 40%
    );
    z-index: 3;
}

.button > .button_border {
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(255,255,255, 0.3),
        transparent 40%
    );
    z-index: 1;
}

.button_content {
    overflow: hidden;
}

.button_img{
    position: relative;
    width: 170px;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
}

.button_name {
    text-align: center;
    position: absolute;
    font-size: 40px;
    top: 75%;
    left: 50%;
    transform: translate(-50%);
}

.button > .button_content {
    height: calc(100% - 3px);
    width: calc(100% - 3px);
    background-color: var(--button-color);
    border-radius: inherit;
    margin: 1px;
    z-index: 2;
    position: relative;
}

#button_controller_img {
    position: relative;
    width: 170px;
    top: 20%;
    left: 50%;
    transform: translate(-50%);
}

a {
    color: white;
}