.domain-title{
    font-size: 2rem;
    margin: 20px;
}
.domain-title span{
    font-weight: bold;
    font-size: 2.4rem;
}
.add-phrase-container{
    margin: 20px;
    display: flex;
    flex-direction: column;
    width: 500px;
    gap: 10px;
}
.add-container{
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.add-phrase-title{
    font-size: 2rem;
    font-weight: bold;
    grid-area: a;
    display: flex;
    align-items: center;
}
#add-phrase-input{
    grid-area: c;
    font-size: 1.4rem;
    padding: 5px;
    max-width: 350px;
    max-height: 100px;
    min-width: 200px;
}
#add-phrase-button{
    grid-area: d;
    font-size: 1.6rem;
    cursor: pointer;
    width: 80px;
}
.download-container{
    margin: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.download-container div{
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}
.download-title{
    font-weight: bold;
    font-size: 1.6rem;
}
.download-container button{
    cursor: pointer;
    font-size: 1.4rem;
}
.download-container button:disabled{
    cursor: default;
}
.month-selector{
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.date-title{
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.month-title, .year-title{
    cursor: pointer;
}
.previous-month, .next-month{
    font-size: 1.2rem;
    text-decoration: underline;
    cursor: pointer;
    transition: 500ms;
}
.previous-month:hover, .next-month:hover{
    opacity: 0.7;
    transition: 500ms;
}
.phrases-list{
    margin: 20px;
    margin-top: 10px;
    border: solid 1px black;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
}
.phrase-element{
    display: flex;
    flex-direction: row;
    border-top: solid 1px black;
}
.phrase-element:first-child{
    border-top: 0;
}
.phrase-element.no-phrase{
    font-size: 2rem;
    font-weight: bold;
    padding: 10px;
}
.remove-multiple-phrases{
    margin-left: 20px;
    cursor: pointer;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 300ms;
}
.remove-multiple-phrases:hover{
    opacity: 0.6;
    transition: 300ms;
    transform: scale(0.95);
}
.remove-multiple-phrases i{
    font-size: 1.4rem;
    color: red;
}
.remove-checkbox{
    cursor: pointer;
}
.remove-checkbox.header{
    transform: scale(1.2);
}
.ordinal-number{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    padding: 5px;
    border-left: solid 1px black;
    border-right: solid 1px black;
    font-weight: bold;
    font-size: 0.95rem;
}
.ordinal-number.header{
    position: relative;
    font-weight: normal;
}
.phrase-title{
    font-size: 1rem;
    font-weight: bold;
    width: 250px;
    position: relative;
    padding: 5px 0px 5px 10px;
    display: flex;
    justify-content: space-between;
}
.phrase-title:not(.header) span{
    display: block;
    width: 70%;
}
.phrase-operations-container{
    width: 30%;
    align-items: center;
    column-gap: 5px;
    display: none;
}
.phrase-title.header{
    font-weight: normal;
    padding: 10px 5px;
}
.phrase-remove, .phrase-charge, .phrase-color{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.phrase-remove i, .phrase-charge i, .phrase-color i{
    transition: 500ms;
}
.phrase-remove:hover i, .phrase-charge:hover i, .phrase-color:hover i{
    opacity: 0.6;
    transform: scale(0.9);
    transition: 500ms;
}
.phrase-remove i{
    color: red;
    font-size: 1.2rem;
}
.phrase-charge i{
    color: yellow;
    font-size: 1rem;
}
.phrase-color i{
    font-size: 1rem;
}
.phrase-cells{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.phrase-cell{
    height: 100%;
    text-align: center;
    border-left: solid 1px black;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.phrase-cell:not(.header){
    cursor: pointer;
}
.phrase-cell.sum{
    width: 5%;
}
.phrase-cell.header{
    font-size: 0.95rem;
    font-weight: normal;
    position: relative;
    cursor: normal;
}
.phrase-cell.top3{
    background-color: lightgreen;
}
.phrase-cell.top7{
    background-color: yellow;
}
.phrase-cell.top10{
    background-color: orange;
}
.months-select, .month-option, .years-select, .year-option{
    font-size: 1.6rem;
}
.total-sum{
    font-size: 2rem;
    margin: 20px;
}
.total-sum span{
    font-weight: bold;
    font-size: 2.2rem;
}
.page-popup{
    position: fixed;
    pointer-events: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    background-color: white;
    border: solid 2px black;
    border-radius: 5px;
}
.phrase-loader{
    grid-area: b;
    border: solid 8px black;
    border-top-color: transparent;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
.sort-container{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}
.sort-up, .sort-down{
    display: flex;
    height: 45%;
    opacity: 0.1;
    transition: 500ms;
    cursor: pointer;
    font-size: 1rem;
}
.sort-up{
    align-items: start;
}
.sort-down{
    align-items: end;
}
.sort-up.selected, .sort-down.selected{
    opacity: 1;
}
.sort-up:hover, .sort-down:hover{
    opacity: 1;
    transition: 500ms;
}
.sort-containers-container{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    justify-content: end;
}
.sort-container.phrase{
    position: static;
    width: auto;
    display: grid;
    grid-template-areas: "a b" "a c";
    justify-content: center;
    align-items: center;
    column-gap: 5px;
}
.sort-icon{
    grid-area: a;
}
.sort-up.phrase{
    grid-area: b;
}
.sort-down.phrase{
    grid-area: c;
}
.sort-up.phrase, .sort-down.phrase{
    display: flex;
    justify-content: end;
    padding-right: 10px;
    align-items: center;
}
@keyframes rotate{
    0%{
        transform: rotate(0deg);
    }
    50%{
        transform: rotate(180deg);
    }
    100%{
        transform: rotate(360deg);
    }
}