html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

.select-none {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.duck {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
}

.language-switch {
    position: fixed;
    top: 0px;
    right: 0;
    z-index: 2;
    color: #0009;
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
    cursor: pointer;
}

.language-switch:hover {
    color: #db5b5b;
}

.language-switch:active {
    color: #e4b1b1;
}


.tech-notes {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
}

.tech-notes-big-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.tech-notes-big-title a {
    color: #75a0c4;
    text-decoration: none;
}

.tech-notes-join {
    color: #75a0c4;
    text-decoration: none;
    font-size: 1.5rem;
}

.tech-notes-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 10px;
    color: #555555;
    width: 100%;
    max-width: 70%;
}

.tech-notes-more {
    position: sticky;
    font-size: 1.5rem;
    color: #aaaaaa;
    text-align: center;
    margin-top: 200px;
}

.tech-notes-more-text {
    font-size: 1.5rem;
    color: #aaaaaa;
    text-align: center;
    user-select: none;
}

.tech-notes-more>span {
    cursor: pointer;
    user-select: none;
}

.daily-topic {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
    flex-wrap: wrap;
}

.daily-topic h2 a {
    font-size: 2rem;
    font-weight: bold;
    color: #75a0c4;
    margin-bottom: 30px;
    text-align: center;
    text-decoration: none;
}

.daily-topic-row {
    display: flex;
    align-items: start;
}

#commits {
    position: sticky;
    top: 20px;
}

#commits ul {
    padding-left: 0;
    margin: 5px;
    user-select: none;
}

#commits li {
    list-style-type: circle;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-family: monospace;
    font-size: 20px;
}

#commits li:first-child {
    list-style-type: none;
    font-size: 35px;
    color: #db5b5b;
}

#commits li::first-line {
    font-size: 2rem;
}


topic-item-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.topic-item {
    background-color: #f7f7f7;
    box-shadow: 5px 5px 15px #00000020;
    border-radius: 10px;
    padding: 20px;
    max-width: 70%;
    width: 90%;
    margin-bottom: 40px;
}

.topic-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #666666;
    text-align: center;
    margin-bottom: 15px;
}

.topic-title strong {
    background: linear-gradient(90deg, #909090, #303030);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.topic-summary {
    font-size: 1.2rem;
    color: #707070;
    text-align: center;
    margin: 20px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.topic-tags .tag {
    background-color: #f36f6f;
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 2px 2px 5px #00000020;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.topic-tags .tag:hover {
    background-color: #e2e2e2;
    color: #333;
}

.topic-date {
    color: #999999;
    text-align: end;
}

.topic-link {
    text-align: end;
}

.topic-link a {
    color: #75a0c4;
    text-decoration: none;
    font-size: larger;
}

.daily-topic-more {
    position: sticky;
    bottom: 20px;
    font-size: 1.5rem;
    color: #aaaaaa;
    text-align: center;
    margin-top: 150px;
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
}

.daily-topic-more-text {
    font-size: 1.5rem;
    color: #aaaaaa;
    text-align: center;
    user-select: none;
}

.daily-topic-more>span {
    cursor: pointer;
    user-select: none;
}


main {
    background-color: #f0f0f0;
}

.content {
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
    width: 100%;
}

.about {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
    width: 100dvw;
    height: 100dvh;
}

.about h1 {
    min-height: 43px;
}

.title {
    align-self: center;
    word-break: break-word;
    text-align: center;
    width: 70dvw;
    color: #75a0c4;
}

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

.about-subtitle>p {
    width: 50%;
    text-align: center;
    color: #555555;
}

.about-subtitle>p>strong {
    color: #75a0c4;
    font-size: larger;
}

.about-subtitle>span {
    margin-top: 10dvw;
    text-align: center;
}

.about-subtitle>span>a {
    font-size: 25px;
    color: #f36f6f;
    text-align: center;
    text-decoration: none;
}

.bg-l {
    position: fixed;
    rotate: 180deg;
    opacity: 0.2;
    transform: scaleX(-1);
    top: 30%;
    left: 20px;
    width: auto;
    max-width: 50%;
    z-index: -1;
}

.bg-r {
    position: fixed;
    rotate: 180deg;
    opacity: 0.2;
    top: 30%;
    right: 20px;
    width: auto;
    max-width: 50%;
    z-index: -1;
}

.recommended {
    width: auto;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 100%;
    min-height: 100dvh;
}

.recommended>span {
    font-size: 30px;
    padding: 50px;
}

.recommended-picks {
    background-color: #f7f7f7;
    box-shadow: 5px 5px 15px #00000020;
    border-radius: 10px;
    padding: 20px;
    max-width: 50%;
    width: 90%;
    margin-bottom: 40px;
}

.recommended-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #666666;
    text-align: center;
    margin-bottom: 30px;
}

.recommended-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.recommended-tags .tag {
    background-color: #f36f6f;
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 2px 2px 5px #00000020;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.recommended-tags .tag:hover {
    background-color: #e2e2e2;
    color: #333;
}

.recommended-link {
    text-align: end;
}

.recommended-link a {
    color: #75a0c4;
    text-decoration: none;
    font-size: larger;
}

.contact {
    width: auto;
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20%;
    z-index: 0;
}

.contact h1 {
    color: #75a0c4;
    align-self: center;
    justify-content: center;
}

.field {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
}

.field>* {
    margin-bottom: 5%;
}

.field>.name-field {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
    width: 100dvw;
    max-width: 545px;
}

.field>#textarea {
    align-self: center;
    width: 70dvw;
    max-width: 380px;
    height: auto;
    min-height: 150px;
    background: white;
    text-align: left;
    padding: 5%;
    word-break: break-all;
    border: 1px solid #00000050;
    font-size: 20px;
    font-family: 'Poiret_One', 'ZenMaruGothic-Light';
}

.field>#textarea:empty::before {
    content: attr(data-content);
    opacity: 0.5;
    cursor: text;
}

.field>.name-field>#name {
    width: 70%;
    padding: 5%;
    margin-left: 10%;
    border: 1px solid #00000050;
    font-size: 16px;
    font-family: 'Poiret_One', 'ZenMaruGothic-Light';
}

#btn-field {
    font-weight: 800;
}

#btn-status {
    width: auto;
    font-weight: 900;
    color: green;
    border: 0;
    cursor: pointer;
}

.textarea-tools {
    display: flex;
    align-self: center;
    justify-content: center;
    background-color: #ffffffaa;
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.2);
    width: auto;
    height: auto;
    border-radius: 5px;
    padding: 2%;
    margin: 2%;
}

.tools-active {
    background-color: #00000050;
}

.tools-hover {
    background-color: #00000020;
}

#textarea:focus+.textarea-tools {
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.textarea-tools .tools-blod {
    width: 30px;
    height: 30px;
    font-size: larger;
    font-weight: 800;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
}

.textarea-tools .tools-blod:active {
    background-color: #00000070;
}

.textarea-tools .tools-i {
    width: 30px;
    height: 30px;
    font-size: larger;
    font-weight: 600;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
}

.textarea-tools .tools-i:active {
    background-color: #00000070;
}

.textarea-tools .tools-size {
    width: 30px;
    height: 30px;
    font-size: larger;
    font-weight: 600;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
}

.textarea-tools .tools-size:active {
    background-color: #00000070;
}

.textarea-tools .tools-size-num {
    width: 30px;
    height: 30px;
    font-size: larger;
    font-weight: 600;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
}

.error {
    border: 1px solid #d93025;
    border-radius: 3px;
}

.error+#error-name-txt {
    display: block;
}

.error+#error-textarea-txt {
    display: block;
}

#error-name-txt {
    font-size: 12px;
    color: #d93025;
    text-align: left;
    display: none;
    margin-left: 10%;
}

#error-textarea-txt {
    font-size: 12px;
    color: #d93025;
    text-align: left;
    display: none;
    margin-left: 10%;
}

.contact #post {
    font-family: 'Ysabeau_SC', 'ZenMaruGothic-Light';
    font-size: large;
    border: 1px solid #c0c0c0;
    background-color: #f8f8f8;
    padding: 5px;
    width: 100%;
    max-width: 150px;
    cursor: pointer;
}

.contact #post:active {
    border: 1px dashed #c0c0c0;
    background-color: transparent;
}

#comments {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
}

#comments>* {
    margin-top: 10px;
}

#comments>.comments-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    min-width: 150px;
    max-width: 350px;
    background-color: #f0f0f0;
    box-shadow: 5px 5px 10px #00000020;
    cursor: pointer;
}

#comments>.comments-container:hover {
    box-shadow: 5px 5px 15px #00000030;
}

#comments>.comments-container>.comments-name {
    font-family: 'Poiret_One', 'ZenMaruGothic-Light';
    letter-spacing: 1px;
    font-size: 20px;
    word-break: break-word;
    font-weight: bolder;
    padding: 5px;
    margin-left: 10px;
    border: 1px solid #e0e0e0;
}

#comments>.comments-container>.comments-content {
    width: 100%;
    word-break: break-word;
    background-color: #e2e2e2;
}

#comments>.comments-container>.button-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

#comments>.comments-container>.button-container>button {
    border: 0px solid #ffffff;
    padding: 10px;
}

#comments>.comments-container>.button-container>button:hover {
    background-color: #f36f6f;
}

#comments>.comments-container>.button-container>button:active {
    background-color: #db5b5b;
}

.other-info {
    margin: 30px 10px 30px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-info>a {
    color: #000;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 5px;
    font-size: 12px;
}

.other-info>a:hover {
    color: #f36f6f;
}

footer {
    background-color: #222;
    color: #eee;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
}

footer a {
    color: #9fc4e2;
    text-decoration: none;
    margin: 0 8px;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .topic-title {
        font-size: 1.8rem;
    }

    .topic-summary {
        font-size: 1rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .topic-tags .tag {
        font-size: 0.7rem;
        padding: 3px 7px;
    }

    .daily-topic-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    #commits ul {
        margin: 10%;
    }

    #commits li {
        list-style-type: none;
        text-align: center;
        font-size: 1.2rem;
    }

    #commits li::first-line {
        font-size: 1.6rem;
    }

    #commits li:first-child {
        font-size: 1.5rem;
    }
}