html {
    height: 100%;
    box-sizing: border-box;

    background-attachment: scroll;
    background-color: #f4f4f4;
    background-image: linear-gradient(
        135deg,
        #0000,
        #0002
    );
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    background-attachment: fixed;   
}

body {
    min-height: 100%;

    font-family: futura-pt, sans-serif;
    padding-bottom: 100px;

    background-color: transparent;
    background-image: url("wtr-bg.png");
    background-size: 80px;

    padding: 20px;
}

.language-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    position: fixed;
    top: 20px;
    right: 20px;
}

.language-selector-container > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;

    cursor: pointer;
    text-decoration: none;
}

.language-selector-container .active-language {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: solid 2px rgb(20, 20, 20) !important;
}

.rule-container {
    height: 75vh;
    height: 75dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 36px;
}

@media screen and (max-width: 800px) {
    .rule-container {
        height: 60vh;
        height: 60dvh;
        font-size: 24px;
    }
}

#rule-text {
    max-width: 1000px;
    padding: 50px;
}

[contenteditable] {
    outline: 0px solid transparent;
}

.button {
    width: 14em;
    height: 3em;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 10px;

    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: solid 1px rgb(20, 20, 20);

    text-transform: uppercase;
    font-size: 16px;

    cursor: pointer;
    text-decoration: none;
}

.button.button-primary {
    background-color: rgb(20, 20, 20);
    color: white;
}

.button-container {
    margin-bottom: 20px;
}

#save-rule-button {
    display: none;
}

.tab-container {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.tab {
    width: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;

    background-color: rgba(255, 255, 255, 0.5);
    border-top: solid 3px transparent;

    cursor: pointer;
    text-decoration: none;
}
.tab:hover {
    text-decoration: none;
}

.tab.active {
    background-color: rgba(255, 255, 255, 0.8);
    border-top: solid 3px #3f888f;
    

    box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.5);

    cursor: default;
}
