:root {
    --tree-trunk-color: #1e170e;
    --tree-base-color: #1e1000;
    --tree-leaves-light-color: #354a45;
    --tree-leaves-dark-color: #192727;
    --background-color: #152238ee;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 1.4rem;
    color: white;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-top: 20px;
}

.container {
    height: 350px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tree {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.tree__base {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--tree-base-color);
}

.tree__trunk {
    height: 120px;
    width: 3px;
    border-radius: 2px 2px 0 0;
    background-color: var(--tree-trunk-color);
    position: relative;
    transform-origin: 50% 100%;
    animation: grow-tree ease-in-out 600ms forwards 200ms;
}

.tree__branch {
    position: absolute;
    height: 3px;
    background-color: var(--tree-trunk-color);
    border-radius: 2px;
    transform-origin: 0% 0%;
}

.tree__branch:nth-of-type(1) {
    width: 50px;
    bottom: 20%;
    transform: rotate(-45deg);
}

.tree__branch:nth-of-type(2) {
    width: 40px;
    bottom: 35%;
    transform: rotate(225deg);
}

.tree__branch:nth-of-type(3) {
    width: 30px;
    bottom: 50%;
    transform: rotate(-45deg);
}

.tree__branch:nth-of-type(4) {
    width: 20px;
    bottom: 65%;
    transform: rotate(225deg);
}

.tree__branch:nth-of-type(5) {
    width: 15px;
    bottom: 80%;
    transform: rotate(-45deg);
}

.tree__leaves {
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    background-color: var(--tree-leaves-light-color);
    position: absolute;
    top: -30%;
    height: 110%;
    width: 60px;
    z-index: -1;
}

.tree__leaves:nth-of-type(7) {
    transform: rotateY(180deg) translateX(99%);
    background-color: var(--tree-leaves-dark-color);
}
