@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: 'Barlow', sans-serif;
    margin: 0;
    background-color: #ffffff;
}

#back {
    max-width: 100%;
    height: auto;
    margin-top: 100px;
    padding-left: 3rem;
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #DDDDDD;
  padding-bottom: 0.3rem;
}

.issue-header h1 {
    margin: 0;
}

/* Preexisting Issue Container */
/* .preexisting-issue-container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 1rem;
} */

#columns {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
}

.preexisting-issue-container {
    grid-column-start: 4;
    grid-column-end: 13;
}



/* Issue Info */
.issue-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
  
.issue-info img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
  }
  
.username {
    font-weight: 600;
    margin: 0;
}
  
.role {
    font-size: 0.9rem;
    color: gray;
    margin: 0;
}
  
/* Issue Content */
.issue-description {
    margin-bottom: 1.5rem;
}
  
.tags {
    display: flex;
    gap: 0.5rem;
}
  
.tag {
    background-color: #57545F;
    border-radius: 1rem;
    font-size: 1rem;
    color: #ffffff;
}
  
.category-date {
    font-size: 0.9rem;
    color: #888888;
}

.issue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #DDDDDD;
}

.vote-box {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 0;
}
  
/* Suggestion Textarea and Submit Button */
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
    border-radius: 0.9rem;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    resize: vertical;
  }
  
.submit-btn {
    background-color: #CC0633;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #A6192E;
  }

.suggestion-input {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%; 
    box-sizing: border-box;
  }
  
.suggestion-input .submit-btn {
    align-self: flex-end;
  }

/* Suggestions */
.suggestion-container {
    padding: 1.5rem 0;
}

.suggestion-container + .suggestion-container {
    border-top: 1px solid #cccccc;
}
  
.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
  
.votes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
  
.vote {
    cursor: pointer;
    user-select: none;
}
  
.vote.up.active {
    color: green;
}
  
.vote.down.active {
    color: #a12b34;
}
  
.score {
    font-weight: bold;
}
  
.comments-link {
    display: inline-block;
    margin-top: 1.3rem;
    color: #57545F;
    font-weight: 400;
    text-decoration: underline;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (max-width: 900px) {

    #columns {
        display: flex;
    }
    
    .preexisting-issue-container {
        margin: 23px 23px 150px 23px;
    }

    #back {
        width: 7%;
        height: auto;
        padding-left: 0rem;
        margin-left: 23px;
        margin-top: 100px;
    }
}
