@charset "UTF-8";

body {
    padding: 0px 20px;
    font-size: 20px;
    text-align: center;
}

#title {
    margin: 20px 0px;
    font-size: 32px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
}

#words {
    display: flex;
    flex-direction: column;
}

.words-item {
    border: solid 1px black;
    padding: 10px;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.words-item-title {
    font-size: 28px;
    font-family: 'Times New Roman', Times, serif;
}

.words-item-description, .words-item-description-text {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.words-item-delete {
    width: auto;
    border: solid 1px black;
    border-radius: 10px;
    padding: 10px;
}

.words-item-delete:hover {
    background-color: rgb(255, 100, 100);
    cursor: pointer;
}

#add {
    width: 60px;
    height: 60px;
    border: solid 2px black;
    border-radius: 50px;
    right: 20px;
    bottom: 20px;
    font-size: 36px;
    background-color: white;
    position: fixed;
}

#add:hover {
    background-color: rgb(0, 255, 128);
    cursor: pointer;
}

#add-form-background {
    height: 100vh;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, .5);
    position: fixed;
    display: flex;
    flex-direction: column;
}

#add-form-background.hidden {
    display: none;
}

#add-form {
    width: 480px;
    margin: auto;
    border: solid 2px black;
    border-radius: 10px;
    background-color: white;
}

#add-form-title {
    border-bottom: solid 2px black;
    padding: 5px 0px;
}

#add-form-contents {
    padding: 0px 20px;
}

.add-form-item {
    margin: 10px 0px;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.add-form-item-label {
    font-family: 'Times New Roman', Times, serif;
}

.add-form-item-value {
    border: solid 1px black;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}

textarea.add-form-item-value {
    height: 20vh;
    font-size: 12px;
}

.add-form-buttons {
    border-top: solid 2px black;
    display: flex;
    flex-direction: row;
}

.add-form-button {
    padding: 5px 0px;
}

.add-form-button:hover {
    cursor: pointer;
}

.add-form-button:first-child {
    border-right: solid 2px black;
}

@media (max-width: 480px) {
    body {
        padding: 0px;
    }

    .words-item {
        border: 0px;
        border-top: solid 1px black;
    }

    .words-item:last-child {
        border-bottom: solid 1px black;
    }

    #add-form {
        width: 100%;
    }

    .add-form-item-label {
        width: 50%;
    }
}