/*===============[ BODY ]===============*/
body{
    color: black;
    background-color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    gap: 1vw;
    margin: 0;
    min-height: 100vh;
}

/*===============[ DIV ]===============*/
div[id="header"]{
    background-color: rgb(39, 39, 39);
    display: flex;
    margin: 0;
    width: 100%;
    height: clamp(50px, 6vw, 70px);
    align-items: center;
    justify-content: center;
}

div[id="footer"]{
    background-color: rgb(39, 39, 39);
    display: flex;
    position: relative;
    margin-top: auto;
    width: 100%;
    height: clamp(75px, 9vw, 120px);
    align-items: center;
    justify-content: center;
}

div[id="divisor"]{
    display: flex;
    background-color: rgb(39, 39, 39);
    margin: 0;
    width: 100%;
    min-height: 5vw;
    align-items: center;
    justify-content: center;
}

div[id="archive"]{
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    margin: 0;
    height: clamp(220px, 40vw, 300px);
    width: clamp(140px, 30vw, 220px);
    align-items: center;
    justify-content: center;
    align-self: center;
}

div[id="logo"]{
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

div[id="tray"]{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 10%;
    align-items: left;
    justify-content: center;
}

div[id="tray-content"].closed{
    color: white;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-content: center;
    background-color: rgb(39, 39, 39);
    margin-left: -100vw;
    margin-top: clamp(120px, 12vw, 150px);
    width: clamp(180px, 20vw, 250px);
    padding: 2px;

    transform: translateX(-100vw);
    transition: transform 1s ease;
}

div[id="tray-content"].opened{
    transform: translateX(99.9vw);
    transition: transform 0.5s ease;
}

div[id="configs"]{
    display: flex;
    height: 100%;
    width: 10%;
    align-items: center;
    justify-content: center;
}

div[id="tools"]{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    border-radius: 10px;
    margin: auto;
    height: auto;
    width: clamp(300px, 65vw, 800px);
}

div[id="downloads"]{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

/*===============[ IMG ]===============*/
img[alt="logo"]{
    height: 90%;
}

img[id="loading"]{
    height: 6vw;
    width: 6vw;
    margin: auto;
    padding: 1vw;

    animation: loading 2s infinite;
}

@keyframes loading{
    0%{
        content: url('./animations/loading1.png');
    }
    25%{
        content: url('./animations/loading2.png');
    }
    50%{
        content: url('./animations/loading3.png');
    }
    75%{
        content: url('./animations/loading4.png');
    }
    100%{
        content: url('./animations/loading1.png');
    }
}

/*===============[ H1 ]===============*/
h1[id="logo"]{
    font-size: clamp(20px, 4vw, 50px);
    color: white;
}

/*===============[ H2 ]===============*/
h2[id="title"]{
    font-size: clamp(30px, 3vw, 50px);
    color: rgb(39, 39, 39)
}

/*===============[ H3 ]===============*/
div[id="tray-content"] h3{
    color: white;
    background-color: rgb(39, 39, 39);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    height: 100%;
    margin: 5%;
}

/*===============[ LABEL ]===============*/
label{
    font-size: clamp(10px, 2vw, 15px);
    margin: 3vw;
}

/*===============[ CANVAS ]===============*/
canvas{
    align-self: center;
    width: 25vw;
    border: 3px solid black;
    border-radius: 10px;
}

/*===============[ BUTTON ]===============*/
button{
    background-color: white;
    font-size: clamp(10px, 2vw, 15px);
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px; 
    margin: 1vw;
}

button:hover{
    color: #CE4A41;
    border-color: #CE4A41;
}

button[id="tray-button"]{
    color: white;
    background: none;
    border: none;
    position: absolute;
    font-size: 150%;
    cursor: pointer;

    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

button[id="tray-button"].opened{
    transform: rotate(-90deg);
    transition: transform 0.5s ease;
}

button[id="tray-button"]:hover{
    color: #CE4A41;
}

div[id="divisor"] button{
    background-color: rgb(39, 39, 39);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    padding: 0.5vw; 
    margin: 1vw
}

div[id="divisor"] button:hover{
    color: #CE4A41;
    border-color: #CE4A41;
}

/*===============[ A ]===============*/
a, a:visited{
    color: black;
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px;
    text-decoration: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

a:hover{
    color: #CE4A41;
    border-color: #CE4A41;
}

#downloads a{
    width: clamp(150px, 20vw, 200px);
    height: clamp(15px, 2vw, 20px);
}

div[id="home"] a{
    font-size: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1vw;
    padding: 1vw;
    border: 1px solid black;
    cursor: pointer;
}

div[id="header"] a{
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    height: 80%;
}

div[id="tray-content"] a{
    position: relative;
    border: none;
    background-color: white;
    margin: 0.20vw;
    border-radius: 2px;
    color: rgb(39, 39, 39);
    height: clamp(10px, 1vw, 20px);
    width: 93%;
    font-size: 80%;
    font-weight: 700;
}

div[id="tray-content"] a:hover{
    background-color: #CE4A41;
    color: white;
}
