* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background-image: url("background/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: Arial, sans-serif;
}

#tab {
    position: absolute;
    top: -100px;
    left: 0;

    width: 100%;
    height: 80px;

    background-image: url("ui/tab/tab.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    z-index: 1000;
}

#search {
    position: absolute;
    top: 15px;
    right: 10px;

    display: flex;
    gap: 10px;
}

#searchbox {
    width: 400px;
    height: 50px;

    padding: 0 15px;

    border: none;
    outline: none;

    color: rgb(230, 230, 230);

    background-color: transparent;
    background-image: url("ui/search/search.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

#searchbox::placeholder {
    color: #ccc;
}

#ok {
    width: 100px;
    height: 50px;

    padding: 0;

    border: none;
    outline: none;

    background-color: transparent;
    background-image: url("ui/search/ok.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    font-size: 18px;
    cursor: pointer;

    transition: transform 0.2s ease;
}

#ok:active {
    transform: scale(0.90);
}

#content {
    position: absolute;
    top: 100px;
    left: 0%;

    width: 80%;
    max-width: 1000px;

    padding: 20px;

    color: white;
    font-size: 18px;

    white-space: pre-wrap;
    overflow-wrap: break-word;

    transition: opacity 0.2s ease;

    display: none;
}

#content.searching {
    opacity: 0;
}

.tabslideout {
    animation: tabslideout 1s ease forwards;
}

.tabslidein {
    animation: tabslidein 1s ease forwards;
}

@keyframes tabslideout {
    from {
        top: -100px;
    }

    to {
        top: 0;
    }
}

@keyframes tabslidein {
    from {
        top: 0;
    }

    to {
        top: -100px;
    }
}

@font-face {
    font-family: "McplBoot";
    src: url("McplBoot.ttf") format("truetype");
}

#tab .element {
    position: absolute;

    font-family: "McplBoot", sans-serif;
    color: white;

    background: transparent;
    border: none;

    cursor: pointer;
}

#tool {
    left: 292.5px;
    top: 30px;

    font-size: 20px;
}

#celement-tool {
    position: absolute;
    top: 80px;
    left: 232.5px;

    width: 150px;
    height: 50px;

    display: none;

    background-image: url("ui/tab/celement.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    font-family: "McplBoot", sans-serif;
    color: white;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.celement {
    width: 112.5px;
    height: 37.5px;

    background-image: url("ui/tab/celement.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "McplBoot", sans-serif;
    font-size: 100%;
    color: white;

    cursor: pointer;
}

#mcplier {
    position: relative;
}

#mcplierdownload {
    position: absolute;

    top: -6.25px;
    left: 132.5px;

    width: 150px;
    height: 50px;

    display: none;
}

#home {
    left: 160px;
    top: 30px;

    font-size: 20px;
}

#download-parts {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    gap: 250px;

    transform: translate(-50%, -50%);
}

.part {
    position: relative;

    width: 400px;
    height: 500px;
}

.part::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("ui/tab/part.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.download-button {
    position: absolute;

    left: 50%;
    bottom: 20px;

    width: 200px;
    height: 50px;

    transform: translateX(-50%);

    z-index: 10;
}

.part-content {
    position: relative;
    z-index: 1;

    width: 80%;
    height: 70%;

    margin: auto;

    display: flex;
	flex-direction: column;

    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}

.part-content :is(h3, h4, h5, h6, p) {
    text-align: left;
}

.download-button {
    position: absolute;

    left: 50%;
    bottom: 20px;

    width: 150px;
    height: 50px;

    transform: translateX(-50%);

    z-index: 10;

    transition:
        transform .2s ease,
        opacity 1s ease;
	
}

.download-button:active {
    transform: translateX(-50%) scale(0.90);
	opacity: 0
}