@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400&family=Roboto+Mono&display=swap');

* {
    font-family: 'Nunito', sans-serif;
}

body {
    margin: 0 auto;
    max-width: 90%;
    padding: 1rem;
    border-radius: 6px;
    background-color: #121212;
    color: white;
}

.navbar {
    background-color: #CDB4DB;
    padding-top: 2px;
    padding-left: 20px;
    padding-right: 10px;
    padding-bottom: 2px;
    box-shadow: 0 40px 50px rgba(205, 180, 219, .1);
    height: 120px;
    display: flexbox;
    border-bottom-right-radius: 10px;
}

.navbar img {
    height: 100%;
    float: right;
    vertical-align: middle;
}

.links * {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}

a {
    color: ivory;
    text-decoration: none;
}

code, code * {
    border-radius: 2px;
	padding: 2px 4px;
    background: #252525;
    font-family: 'Jetbrains Mono', monospace;
    font-size: smaller;
}

a:hover {
    color: #ff9770;
    text-decoration: none;
    transition: 0.3s;
}

button:hover {
    cursor: pointer;
}

.ui div[class="notice"], .ui div[class="aboutme"], .post p[class="content"] {
    white-space: pre-line
}

.ui .notice {
    border-left: 4px solid #ff686b;
    padding-left: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 1em;
    border-top: 1px solid #282828;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background-color: #282828;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    width: max-content !important;
}

.posts div[class="post"] {
    margin-bottom: 10px;
}

.post {
    max-width: 50%;
    border-left: 4px solid #202020;
    padding-left: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-top: 1px solid #282828;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background-color: #282828;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.aboutme {
    max-width: 100%;
    border-left: 4px solid #202020;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-top: 1px solid #282828;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background-color: #282828;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.blogpost, .mainframe {
    white-space: pre-line;
    max-width: 100%;
    border-left: 4px solid #202020;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 3px;
    border-top: 1px solid #282828;
    border-right: 1px solid #282828;
    border-bottom: 1px solid #282828;
    background-color: #282828;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.blogpost img {
    object-fit: contain;
    max-width: 100%;
}

.blogpost .info, .infohead {
    font-size: small;
    font-weight: normal;
    color: #feffe0;
}

.infohead span[class="tags"] {
    border: 1.8px solid #a2d2ff;
    background-color: #404040;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    padding-left: 3px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: small;
    font-weight: normal;
    color: #feffe0;
}

div[class="quote"] {
    white-space: pre-line;
    display: inline-block;
    border-left: 4px solid #2ec4b6;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    border-top: 1px solid #121212;
    border-right: 1px solid #121212;
    border-bottom: 1px solid #121212;
    background-color: #121212;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.embedwrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.embedwrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
}

.editor textarea {
    resize: none;
    width: 60%;
    box-sizing: border-box;
    min-height: 10rem;
    border: 2px solid #242424;
    background-color: #323232;
    color: white;
}

.editor .textformatting {
    display: flex;
    flex-direction: row;
    gap: 4px
}

.editor .hyperattachments {
    display: flex;
    flex-direction: row;
    gap: 3px
}

.textformatting button {
    width: 24px;
}

.textformatting button, .hyperattachments button, button[class="post"] {
    border-radius: 4px;
    border: 2px solid #242424;
    background-color: #404040;
    font-size: medium;
    color: white
}

button[class="post"] {
    padding-left: 10px;
    padding-right: 10px;
}

.postoption {
    display: inline;
    flex-direction: row;
}

.smlinks {
    display: flex; 
    max-width: 100%; 
    flex-direction: row; 
    gap: 10px; 
    padding: 5px;
}

.smlinks * {
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 15px;
}

.smlinks button {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;  
    padding-top: 8px;  
    padding-bottom: 8px;  
    padding-left: 10px;
    padding-right: 10px;
    border: 2px solid #242424;
    background-color: #404040;
    font-size: medium;
    color: white
}

img[class="smlogo"] {
    width: 24px; 
    height: 24px;
}

@media only screen and (max-width: 768px) {
    body {
        max-width: 100%;
    }

    .post {
        max-width: 100%;
    }
    
    .editor textarea {
        width: 100%;
    }
    
    .textformatting button, .hyperattachments button {
        font-size: medium;
    }
    
    button[class="post"] {
        float: right;
    }

    .smlinks {
        flex-direction: column;
    }
}

@media only screen and (min-width: 1367px) {
    h1 {
        font-size: xx-large;
    }

    .links * {
        font-family: 'Roboto Mono', monospace;
        font-size: medium;
    }
}
