.terminal{
    margin: 0 auto;
    border: 3px solid #ac8ef6;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 15px 0 #6e3ce9;
    background: rgba(110, 60, 233, 0.05);   
    font-family: 'Cascadia Code', sans-serif;
    font-size: 20px;
}

.terminal-top{
    display: flex;
    flex-direction: column;
}

.terminal-top div{
    display: flex;
    padding-left: 10px;
    align-items: center;
}

.terminal-top div p{
    margin-left: 10px;
}

.terminal-block{
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
}

.loading{
    background-color: #ac8ef6;
    box-shadow: 0 0 15px 0 #6e3ce9;
}

.ctf-image{
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
}

.ctf{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    margin: 20px 0;
}

.ctf p{
    line-height: 23px;
    font-family: 'Pixel', sans-serif;
}

.ctf-profile{
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}

.ctf-profile p{
    margin-left: 8px;
    font-family: 'Pixel', sans-serif;
}

.ctf-profile img{
    width: 400px;
    height: 50px;
}

.ctf-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 70px;
    padding: 0 120px;
}

.information{
    position: relative;
    width: 600px;
}

.information-block{
    backdrop-filter: blur(4px);
    background: rgba(0, 153, 69, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.information-border-side{
    border-left: 3px solid #0dbe3e;
    box-shadow: 0 0 7px 0 #009945;
    height: stretch;
}

.information-block p{
    padding: 25px 49px 50px 49px;
}

.information-title, .score-title{
    z-index: 1000;
    position: absolute;
    margin-top: -18px;
}

.information-title{
    margin-left: 50px;
}

.scores{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.score-list{
    display: flex;
    margin-top: 20px;
    align-items: center;
    justify-content: space-between;
    width: 350px;
}

.helpers-top{
    display: flex;
    width: 500px;
    justify-content: space-between;
}

.helpers{
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 60px;
}

.helper{
    display: flex;
    align-items: center;
    justify-self: center;
    padding: 10px 40px;
    cursor: pointer;
    border: 3px solid #00000000;
    border-bottom: 0;
}

.helper-content img{
    width: 155px;
    height: 200px;
}

.helper-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 30px;
    width: 900px;
}

#help p{
    font-size: 20px;
}

.helper.active-tab{
    box-shadow: 0 0 7px 0 #009945;
    border: 3px solid #0dbe3e;
    border-bottom: 0;
    background: rgba(0, 153, 69, 0.05);
    backdrop-filter: blur(4px);
    transition: all 0s;
}

#help span{
    color: #eee;
}

#help.ron-mode .green-text {
    color: #ac8ef6;
    text-shadow: 0 0 7px #6e3ce9;
}

#help.ron-mode span {
    text-shadow: 0 0 7px #6e3ce9;
}

#help.ron-mode .container-line {
    border-top: 3px solid #ac8ef6;
    box-shadow: 0 0 15px 0 #6e3ce9;
}

.helper[id="ron"].active-tab {
    box-shadow: 0 0 7px #6e3ce9;
    border: 3px solid #ac8ef6;
    border-bottom: 0;
    background: rgba(110, 60, 233, 0.05);   
    backdrop-filter: blur(4px);
    transition: all 0s;
}

.helper-info-line{
    padding: 10px 40px;
    width: 400px;
    border: 3px solid #00000000;
    margin: 15px 0;
}

.helper-info-line:hover{
    box-shadow: 0 0 7px 0 #009945;
    border: 3px solid #0dbe3e;
    background: rgba(0, 153, 69, 0.05);
    backdrop-filter: blur(4px);
}

#help.ron-mode .helper-info-line:hover{
    border: 3px solid #ac8ef6;
    box-shadow: 0 0 15px 0 #6e3ce9;
    background: rgba(110, 60, 233, 0.05);   
    backdrop-filter: blur(4px);
}

#helper-info{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#helper-info p{
    width: 350px;
    height: 100px;
    margin-top: 10px;
    text-align: center;
}

.rules{
    backdrop-filter: blur(4px);
    box-shadow: 0 0 7px 0 #009945;
    background: rgba(0, 153, 69, 0.05);
    border: 3px solid #0dbe3e;
    margin: 0 60px 20px 60px;
}

.rules-content{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    margin: 20px 30px;
}

.rules-line{
    display: flex;
    text-align: left;
    font-size: 20px;
}

.rules-line p{
    margin: 20px 0;
    padding: 0 20px;
}

.rules-top{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.rules-top h2{
    font-size: 32px;
}

.comic{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 60px 0;
}

.comic-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    position: relative;
}

.comic-page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.comic-page.active {
    display: block;
}

.comic-image {
    width: 100%;
    height: auto;
    display: block;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    font-family: 'Pixel';
}

.nav-btn:disabled {
    display: none;
}

.page-counter {
    font-size: 24px;
    padding: 8px 16px;
}

@media screen and (max-width: 768px){
    .terminal{
        font-size: 20px;
    }

    .terminal-top img{
        width: 80px;
        height: 30px;
    }

    .terminal-top div p{
        margin-left: 5px;
    }

    .ctf-image{
        font-size: 16px;
        line-height: 19px;
    }

    .ctf{
        padding: 30px 60px;
    }

    .ctf-profile{
        margin: 40px auto;
    }

    .ctf-info{
        flex-direction: column;
        margin-top: 70px;
        padding: 0 120px;
    }

    .scores{
        margin-top: 60px;
    }

    .helpers-top{
        width: 400px;
    }

    .helper-content{
        flex-direction: column-reverse;
        width: 700px;
    }

    .helper-info-line{
        width: 500px;
    }

    .rules-top h2{
        font-size: 28px;
    }
}

@media screen and (min-width: 320px) and (max-width: 767px){
    .terminal{
        font-size: 12px;
    }

    .terminal-top div{
        padding-left: 5px;
    }

    .terminal-top img{
        width: 65px;
        height: 24px;
    }

    .ctf-image{
        font-size: 7px;
        line-height: 8px;
        align-self: center;
        margin: 15px 0;
    }

    .terminal-block{
        padding: 10px;
    }

    .terminal-block p{
        line-height: 16px;
        text-wrap: wrap;
        width: 248px;
    }

    .terminal-top div p{
        margin-left: 3px;
    }

    .ctf, .ctf-profile{
        align-items: center;
    }

    .ctf p, .ctf-profile p{
        line-height: 20px;
        text-align: center;
        text-wrap: wrap;
        width: 180px;
    }

    .ctf{
        padding: 0;
    }

    .ctf-profile{
        margin: 20px auto;
    }

    .ctf-profile img{
        width: 200px;
        height: 25px;
    }

    .ctf-profile p{
        margin: 0 auto;
    }

    .information{
        width: 290px;
    }

    .information-block p{
        padding: 25px 49px;
    }

    .ctf-info{
        margin-top: 40px;
        padding: 0;
    }

    .score-list{
        width: 230px;
    }
    
    .helper-content{
        flex-direction: column-reverse;
        width: 290px;
        padding: 20px 10px;
    }

    .helper-info-line{
        width: 250px;
    }

    #help p{
        font-size: 16px;
    }

    .helpers-top{
        width: 280px;
    }

    .helper{
        display: flex;
        align-items: center;
        justify-self: center;
        padding: 5px 20px;
        cursor: pointer;
        border: 3px solid #00000000;
        border-bottom: 0;
    }

    .helpers{
        margin-top: 50px;
    }

    #help .container-line {
        width: 316px;
    }

    #helper-info p{
        width: 250px;
    }

    .helper-content img{
        width: 120px;
        height: 160px;
    }

    .rules-top h2{
        font-size: 20px;
    }

    .rules-line{
        font-size: 12px;
    }

    .rules-line p{
        margin: 10px 0;
        padding: 0 15px;
    }

    .rules{
        margin: 0 0 20px 0;
    }

    .rules-content{
        margin: 10px;
    }

    .rules-top{
        padding: 20px 0;
    }

    .comic{
        margin: 30px 0;
    }

    .nav-btn {
        font-size: 16px;
    }

    .page-counter {
        font-size: 16px;
    }
}
