/* Rontekhne stylesheet */

/* color variables */
:root {
    /* light mode */
    --font-light: #1e1e1e; 
    --bg-light: #d0d0d1;

    /* dark mode */
    --font-dark: #d0d0d1;
    --bg-dark: 	#1e1e1e;

    /* others */
    --blk-btn-font: #FFF;
    --blk-btn-bg: #1e1e1e;
    --error-message: #ed2424;
}

*, html, body {
    margin: 0;
    padding: 0;  
    font-family: "Open Sans", serif;
    font-weight: 300;
    font-style: normal;
    font-optical-sizing: auto;
    /*overflow-x: hidden;
    overflow-y: auto;*/
}

body {
    width: 100%;
    font-weight: 700;
}

a {
    outline: none;
}

::selection {
    background-color: var(--bg-light);
    color: var(--font-light);
}

/* index banner */

/* end index banner */

.image-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px 20px 10px 20px;
    max-width: 700px;
    height: 100%;
    padding-bottom: 5px;
}

.image-wrapper {
    position: relative;
    width: 100%; 
    height: 100%; 
    overflow: hidden;
    font-size: 16px;
  }
  
.image-wrapper img {
    width: 100%;
    object-fit: cover; 
}

.image-caption {
    padding: 10px;
    text-align: left;
    font-size: 15px;
}
  
.overlay {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.2); 
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: right;
    text-align: center;
    padding: 5px 10px 5px 10px;
}
  
.text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
  
.credits {
    font-size: 14px;
    font-style: italic;
}

/* Nav */

nav {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    background-color: #fff;
    position: fixed;
    display: flex;              
    justify-content: space-between; 
    align-items: center;    
    padding: 20px;      
    top: 0;
    width: 100%;
    z-index: 999;     
    transition: 1.0s;
}

nav.hidden {
    transform: translateY(-200px);
}

#dark-mode-btn {
    color: var(--font-light);
    padding: 4px 4px;
    width: 24px;
    height: 24px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    position: fixed;
    font-size: 20px;
    right: 15px;
    top: 19px;
    overflow: hidden;
    z-index: 999;
    transition: 1.0s;
}

#dark-mode-btn.hidden {
    transform: translateY(-200px);
}

nav .login, 
nav .profile {
    margin-right: auto; 
    margin-top: 3px;
}

nav .link {
    margin: 0 8px 0 0; 
}

nav a {
    text-decoration: none; 
    color: inherit;        
    font-size: 16px;       
}

nav a:hover {
    color: grey;
}

nav .link-container {
    display: flex;        
    justify-content: center;
    flex-grow: 1;    
    margin-right: 48px;
}

.fa-sign-in,
.fa-sign-out,
.fa-user-o
.fa-unlock,
.fa-home {
    font-size: 22px;
}

.fa-unlock {
    margin-left: 20px;
}


.logout {
    text-decoration: none; 
    color: inherit;        
    font-size: 16px;       
}

.logout:hover {
    color: grey;
}

/* End Nav */

/* Container and Card */

.container {
    margin: 80px auto 20px auto;
    max-width: 700px;
}

.jumbo {
    color: var(--font-light);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    padding: 20px 0 20px 0;
}

.post-error {
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    margin: 15px 10px 25px 10px;
    max-width: 700px;
}

.card-title {
    text-align: left;
    font-size: 20px;
    padding: 10px 0px;
}

.card-subtitle {
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 0px;
}

.card-section-title {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 0px;
}

.card-username {
    font-size: 14px;
    font-style: italic;
}

.card-text {
    margin-top: 5px;
    font-size: 15px;
    text-align: left;
}

.card-comment {
    margin: 10px 0 0 10px;
    font-size: 15px;
    text-align: left;
}

p {
    font-size: 15px;
    text-align: left;
}

.card-content p {
    margin: 12px 0;
}

.card-content {
    text-align: left;
}

.card-poem {
    font-size: 15px;
    text-align: center;
}

.card-link {
    text-align: right;  
}

.card-link a {
    text-decoration: none;
    color: black;
    font-size: 15px;
}

.card-a,
.card-a a {
    text-decoration: none;
    color: black;
    font-weight: 800;
    font-size: 15px;
}

.card-link a:hover,
.card-a:hover {
    color: grey;
}

.card-posted {
    padding-top: 20px;
    font-size: 12px;
    text-align: right;
}

.card-info {
    display: flex;
    justify-content: space-between; 
    align-items: baseline;
    position: relative;
    padding: 5px 0 10px 0;
}

.card-info p {
    font-size: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between; 
    align-items: baseline;
    position: relative;
    z-index: 1;
}

.card-2x {
    display: flex;
    align-items: center;
}

.card-img-v-center {
    margin: 16px 0;
    text-align: center;
}

.card-img-v-center img {
    width: 300px;
    height: 400px; 
    border-radius: 8px;
}

code {
    font-size: 15px;
    border-radius: 5px;
    margin: 14px 0;
    padding-bottom: 20px;
}

/* bio */
.bio-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.bio-avatar {
    text-align: center;
    width: 15%;
}

.bio-avatar i {
    font-size: 64px;
}

.bio-text {
    width: 85%;
}

.bio-text p {
    color: var(--font-light);
    font-size: 14px;
    font-style: italic;
}

/* Misc */
.bold {
    font-weight: 600;
}

.italic {
    font-style: italic !important;
}

.center {
    text-align: center;
}

.subscribe-btn,
.unsubscribe-btn,
.change-pwd-btn {
    cursor: pointer;
    margin-top: 15px;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
}

.table-container {
     margin: 22px 0 12px 0;
}

.table-art-credits {
    margin-left:auto;
    margin-right:auto;
    border-collapse: collapse;
    border: none;
}

.table-art-credits tr {
    border: none;
}


.table-art-credits th {
    border: none;
    background-color: #ccc;
    font-size: 14px;
}


.table-art-credits td {
    border: none;
    padding: 0 16px 0 0;
    font-size: 14px;
}

.table-art-credits a{
    text-decoration: none;
    font-size: 14px;
    color: black;
    font-weight: 800;
}

@media only screen and (max-width: 768px) {
    .table-art-credits th {
        font-size: 9px;
    }

    .table-art-credits td,
    .table-art-credits a {
        font-size: 8px;
    }
}

.table-art-credits a:hover {
    color: var(--font-light);
}

/* Temp: Android app news*/
.android-icon {
    color: var(--font-light);
    font-size: 42px;
    margin-right: 30px;
    padding-right: 20px;

}

.android-text {
    font-size: 16px;
}

/* post share section */

.share {
    display: flex;               
    gap: 10px; 
}

.share-icon {
    color: var(--font-light);
    cursor: pointer;
}

.share-icon svg {
    width: 20px;
    height: 20px;
}

.share-icon svg:hover {
    color: grey;
}

.share-message {
    margin-top: 0;
    font-size: 14px;
}

/* end of post share section */

/* End Container and Card */

/* topics */

.topic-container {
    display: flex;
    justify-content: space-evenly;
}

.topic-all {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topics {
}

.topic-list {
    float: left;
    font-size: 46px;   
    padding: 8px;
}

.topic-dot {
}

.topic {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: var(--font-light);
}

.topic-list:hover,
.topic:hover {
    color: grey;
}

/* href links */

.href-nav {
    display: inline-block;
}

.href-nav-item  {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;  
    background-color: transparent;
    color: var(--font-light);  
    border: none;
    border-radius: 8px;
    padding: 6px 4px 6px 0px;
    display: inline-block;
    overflow: hidden;
}

.add-link {
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.href-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    margin: 10px;
    max-width: 700px;
}

.href-link {
    font-size: 15px;
    text-decoration: none;
    color: var(--font-light);
    font-weight: 900;
}


.href-nav-item:hover,
.add-link:hover,
.href-link:hover {
    color: #5f5f5f;
}

.href-domain {
    color: var(--font-light);
    margin-left: 8px;
    font-size: 12px;
    padding-right: 16px;
}

.href-username {
    margin-left: 8px;
}

.href-vote-btn {
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: var(--font-light);
}

.href-vote-btn:hover {
    color: #5f5f5f;
}

.href-vote-counter {
    font-size: 12px;
    margin-left: 3px;
}

.href-sublink {
    display: flex;
    padding: 5px 0;
    font-size: 12px;
}

.href-vote-form {
    display: flex;
}

.href-vote-link-id {
    display: flex;
}

.href-vote-btn {
    display: flex;
}

.href-date {
    display: flex;
    font-size: 10px;
    margin-top: 2px;
    margin-left: 10px;
}

.href-total-comments {
    display: flex;
    font-size: 10px;
    margin-top: 2px;
    margin-left: 10px;
}

.href-comments {
    display: flex;
    color: var(--font-light);
    text-decoration: none;
    font-size: 10px;
    margin-top: 2px;
    margin-left: 2px;
}

.href-comments:hover {
    color: #5f5f5f;
}

.add-link-add-btn {
    cursor: pointer;
}

.add-link-add-btn:hover {
    color: #5f5f5f;
}

.add-link-container {
    display: none;
    width: 100%;
}

.add-link-form {
    width: 100%;
}

.add-link-title, 
.add-link-link {
    color: var(--font-light);
    font-size: 14px;
    display: block;
    width: 96%;
    padding: 5px 3px;
    margin: 4px 0;
    border: solid #ccc 1px;
    border-radius: 4px;
}

.add-link-title:focus,
.add-link-link:focus {
    outline: none;
}

.add-link-topic {
    border: none;
    font-size: 12px;
    padding: 8px 0px;
    color: var(--font-light);
}

.add-link-topic-item {
    font-size: 12px;
}

.add-link-topic input[type="radio"]:checked + label {
    color: #1e1e1e; 
}

.add-link-topic input[type="radio"]:checked {
    accent-color: #5f5f5f; 
}

.add-link-btn {
    font-size: 14px;
    padding: 4px 8px;
    border: none;
    border-radius: 5px;
}

.btn-right {
    text-align: right;
}

li {
    color: var(--font-light);
}

/* end href links */

.pagination {
    text-align: center;
    margin: 20px 0;
    padding: 12px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--blk-btn-bg);
    border: none;
    border-radius: 8px;
}

.pagination a.active {
    background-color: var(--blk-btn-bg);
    color: var(--font-dark);
    border-radius: 8px;
}

.pagination a:hover {
    background-color: var(--bg-light);
    color: var(--font-light);
}

.pagination a.prev, .pagination a.next {
    font-weight: bold;
}

/* end post */

/* Comments */
.comment-form {
}

.comment-input {
    width: 98%;
    height: 110px;
    min-height: 110px;
    max-height: 250px;
    resize: vertical; 
    margin: 10px 0 10px 0;
    font-size: 14px;
    padding: 5px;
    border: solid #ccc 1px;
    border-radius: 4px;
}

@media only screen and (max-width: 768px) {
    .comment-input {
        width: 96%;
    }
}

.comment-input:focus {
    outline: none;
}

.comment-btn {
    border: solid #ccc 1px;
    font-size: 14px;
    border-radius: 4px;
}

.hidden-comment-btn {
    visibility: hidden;
}

.char-counter {
    font-size: 14px;
}

.char-color {
    color: red;
}

.reply-btn,
.send-reply-btn {
    border: none;
    font-size: 14px;
    padding: 5px 8px;
    margin-right: 5px;
    border-radius: 4px;
}

/* Comments */
/* Footer */

footer {
    padding: 100px;
}

footer p {
    text-align: center;
    font-size: 12px;
}

footer a {
    font-size: 12px !important;
}

/* End Footer */

/* Login */

.auth-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 8px 40px 8px;
    margin: 10px 10px 10px 10px;
    max-width: 400px;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-input,
.register-input {
    width: 280px; 
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0;
}

.login-input:focus,
.register-input:focus {
    outline: none;
}

.login-btn,
.register-btn {
    width: 300px;
    padding: 10px;
    font-size: 14px;
    background-color: var(--blk-btn-bg); 
    color: var(--blk-btn-font); 
    border: none;
    border-radius: 4px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: grey;
}

.captcha {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-link {
    text-align: center;
}

.error-response {
    text-align: center;
    color: var(--error-message);
}

/* End Login and register */

/* links carousel */

.carousel-wrapper{
    height: 60px;
    position:relative;
    width: 100%;
    margin:0 auto;
    text-align: center;
}
  
.carousel-item{
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    padding: 20px 50px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

.carousel-item a {
    color: var(--font-light);
}
  
.arrow{
    font-size: 20px;
    color: var(--font-light);
    border: solid var(--font-light);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 12px;
}
  
.arrow-prev{
    left: 10px;
    position:absolute;
    top:50%;
    transform:translateY(-50%) rotate(135deg);
}
   
.arrow-next{
    right: 10px;
    position:absolute;
    top:50%;
    transform:translateY(-50%) rotate(-45deg);
}
  
.light{
    color:white;
}
  
@media (max-width: 480px) {
    .arrow, .light .arrow {
        background-size: 10px;
        background-position: 10px 50%;
    }
}
  
/*Select every element*/
[id^="item"] {
    display: none;
}
  
.item-1 {
    z-index: 2;
    opacity: 1;
}
  
*:target ~ .item-1 {
    opacity: 0;
}
  
#item-1:target ~ .item-1 {
    opacity: 1;
}
  
#item-2:target ~ .item-2
{
    z-index: 3;
    opacity: 1;
} 

/* end of links carousel */

/* Dark mode post */
body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--font-dark);
}

body.dark-mode nav {
    background-color: var(--bg-dark);
}


body.dark-mode .card,
body.dark-mode .image-card {
}

body.dark-mode .card-a a,
body.dark-mode .card-link a {
    text-decoration: none;
    color: white;
    font-weight: 800;
}

body.dark-mode a,
body.dark-mode p,
body.dark-mode span,
body.dark-mode .card-subtitle {
    color: var(--font-dark);
}

body.dark-mode th {
    color: var(--font-light)
}

body.dark-mode textarea,
body.dark-mode button {
    background-color: var(--bg-dark);
    color: var(--font-dark);
}

body.dark-mode .line-under-username {
    color: rgb(49, 49, 49);
}

body.dark-mode a:hover {
    color: grey;
}

body.dark-mode .table-art-credits a {
    color: #fff;
}

body.dark-mode .table-art-credits a:hover {
    color: var(--font-dark);
}

body.dark-mode code {
    background-color: var(--bg-dark);
    color: var(--font-dark);
}

body.dark-mode .rtkn-text {
    color: var(--font-dark);
}

body.dark-mode .rtkn-ball {
    background-color: var(--bg-light);
}

body.dark-mode .bio-text p {
    color: var(--font-dark);
}

body.dark-mode .subscribe-btn,
body.dark-mode .unsubscribe-btn,
body.dark-mode .change-pwd-btn {
    background-color: #5f5f5f;
    color: var(--font-dark);
}

body.dark-mode .subscribe-btn:hover,
body.dark-mode .unsubscribe-btn:hover,
body.dark-mode .change-pwd-btn:hover {
    background-color: var(--bg-light);
    color: var(--font-light);
}

body.dark-mode .arrow{
    border: solid var(--font-dark);
    border-width: 0 3px 3px 0;
}

body.dark-mode .arrow-next,
body.dark-mode .arrow-prev {
}

body.dark-mode .add-link-title,
body.dark-mode .add-link-link {
    background-color: var(--bg-dark);
    color: var(--font-dark);
}

body.dark-mode .add-link-btn {
    background-color: #5f5f5f;
    color: var(--font-dark);
}

body.dark-mode .add-link-btn:hover {
    background-color: var(--bg-light);
    color: var(--font-light);
}

body.dark-mode .add-link-topic label {
    color: var(--font-dark);
}

body.dark-mode li {
    color: var(--font-dark);
}

/* End dark mode post */

/* Animations */

/* rtkn ball animation on index */

.rtkn-animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    height: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.rtkn-ball {
    width: 0;
    height: 0;
    background-color: var(--font-light);
    border-radius: 50%;
    animation: ballAnimation 3s ease-out forwards;
}

.rtkn-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--font-light);
    white-space: nowrap;
    opacity: 0;
    margin-left: 4px; 
    animation: textAnimation 4s ease-out forwards 2s;
}

.math-container {
    padding: 10px 0px;
}

@keyframes ballAnimation {
    0% {
        width: 0;
        height: 0;
        transform: translateX(120px); 
    }
    50% {
        width: 50px;
        height: 50px;
        transform: translateX(60px); 
    }
    100% {
        width: 50px;
        height: 50px;
        transform: translateX(-2px); 
    }
}

@keyframes textAnimation {
    0% {
        opacity: 0;
        transform: translateX(60px); 
    }
    100% {
        opacity: 1;
        transform: translateX(4px); 
    }
}
/* end of rtkn ball animation on index */

/* End animations */

/* red a */

.p-card {
    justify-content: center;
    max-width: 700px;
    padding: 10px 10px 10px 20px;
}

.p-card h1 {
    font-size: 24px;
    padding: 8px 0;
}

.p-main {
    display: block;
    width: 98%;
}

.p-main input {
    display: block;
    width: 98%;
    font-size: 15px;
    margin-bottom: 10px;
}
  
.p-main textarea {
    display: block;
    width: 98%;
    min-height: 300px;
    resize: vertical;
    font-size: 15px;
    margin-bottom: 10px;
}

.p-inline {
    
}

.p-inline select,
.p-inline button {
    border: none;
    padding: 4px;
    border-radius: 4px;
}

.p-inline option {
    
}

.p-inline input {
    width: 40px;
}

.p-main input:focus,
.p-main textarea:focus,
.p-inline input:focus {
    outline: none;
}

.a-table form table {
    width: 100%;
    border: solid #1e1e1e 1px;
    border-collapse: collapse;
    text-align: center;
}

.a-table form tr,
.a-table form td {
    border: solid #1e1e1e 1px;
    border-collapse: collapse;
}

.a-table form table tr td {
    font-size: 12px;
}

/* end red a */
