.terminal{
    margin: 0 auto;
    border: 3px solid #0dbe3e;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 7px 0 #009945;
    background: rgba(0, 153, 69, 0.05);
    font-family: 'Cascadia Code', sans-serif;
    font-size: clamp(12px, 2vw, 20px);
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
}

.terminal-top{
    display: flex;
    flex-direction: column;
}

.terminal-top div{
    display: flex;
    padding-left: clamp(5px, 2vw, 10px);
    align-items: center;
}

.terminal-top div p{
    margin-left: clamp(3px, 1vw, 10px);
    font-size: clamp(10px, 1.5vw, 16px);
}

.terminal-block{
    padding: clamp(5px, 1.5vw, 10px) clamp(8px, 2vw, 18px);
}

.screenfetch-image{
    font-weight: 700;
    font-size: clamp(8px, 2.5vw, 24px);
    background: linear-gradient(180deg, #0dbe3e 0%, #8eff01 100%);
    background-clip: text;
    text-shadow: 0 0 10px #009945;
    line-height: 1.2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screenfetch{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: clamp(10px, 3vw, 30px);
}

.screenfetch p{
    line-height: 1.6;
    font-size: clamp(11px, 1.8vw, 16px);
}

.terminal-block a:hover{
    color: #eeff6c;
    text-shadow: 0 0 7px rgba(255, 243, 111, 0.5);
}

.whoami{
    display: flex;
    flex-direction: column;
    margin: clamp(10px, 3vw, 20px) auto;
    padding: 0 clamp(10px, 5vw, 60px);
}

.whoami a{
    margin: clamp(8px, 2vw, 15px) 0 0 0;
    font-size: clamp(11px, 1.8vw, 16px);
}

.field-cards{
    margin: clamp(20px, 5vw, 50px) 0;
    padding: 0 clamp(10px, 5vw, 60px);
}

.field-card{
    margin: 0 auto clamp(20px, 4vw, 40px) auto;
    background: rgba(110, 60, 233, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
    gap: 15px;
}

.field-card:hover{
    background: rgba(110, 60, 233, 0.07);
}

.field-card-border{
    border-left: solid 3px #AC8EF6;
    box-shadow: 0 0 7px #6e3ce9;
    height: stretch;
}

.field-card-content{
    margin: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 30px);
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 15px) 0;
    flex-wrap: wrap;
    gap: 15px;
}

.field-card-content div p{
    margin-top: 10px;
    font-size: clamp(11px, 1.8vw, 16px);
}

.field-card-img{
    margin-right: clamp(15px, 3vw, 30px);
    width: clamp(82px, 15vw, 188px);
    height: auto;
    aspect-ratio: 188/216;
}

.system-message{
    margin: 0 auto;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 7px 0 #6E3CE9;
    background: rgba(110, 60, 233, 0.05);
    border: 3px solid #AC8EF6;
    max-width: 950px;
    width: 95%;
    padding-bottom: clamp(15px, 3vw, 20px);
}

.system-message-content{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 30px);
    flex-wrap: wrap;
    gap: 20px;
}

.system-message-content-text{
    margin: 0 clamp(15px, 3vw, 30px) 0 0;
    flex: 1;
    min-width: 250px;
}

.system-message-content img{
    height: auto;
    width: clamp(150px, 30vw, 330px);
    aspect-ratio: 1/1;
    max-width: 100%;
}

.system-message-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 2px clamp(8px, 2vw, 15px);
}

.system-message-content p{
    font-size: clamp(12px, 3vw, 24px);
    margin-bottom: clamp(15px, 3vw, 30px);
    text-align: right;
    line-height: 1.4;
}

.system-message-content div{
    display: flex;
    flex-direction: column;
    align-items: end;
}

.btn-join{
    background: url("../img/join-btn.3cc117eb89b4.svg");
    background-size: cover;
    display: flex;
    justify-content: center;
    font-size: clamp(12px, 2.5vw, 20px);
    width: clamp(160px, 30vw, 270px);
    height: clamp(60px, 12vw, 110px);
    margin: 0 auto;
}

.btn-join a{
   margin: 0 auto;
}

.facts {
    margin: clamp(20px, 5vw, 50px) clamp(15px, 3vw, 30px) 0 clamp(15px, 3vw, 30px);
}

.fact {
    margin-bottom: 10px;
}

.fact-title {
    padding: 10px;
    font-size: clamp(12px, 2.5vw, 20px);
    cursor: pointer;
    display: flex;
    align-items: start;
}

.fact-title::before {
    content: '>';
    margin-right: 15px;
    color: #0dbe3e;
    text-shadow: 0 0 7px #009945;
    transition: transform 0.3s;
}

.fact-title.active-fact::before {
    content: '>';
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.fact-content {
    padding: 0 clamp(20px, 4vw, 37px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fact-content.fact-opened {
    max-height: 500px;
}

.fact-content p{
    font-size: clamp(11px, 2vw, 16px);
    line-height: 1.6;
}

@media screen and (max-width: 1024px){
    .screenfetch{
        flex-direction: column;
        align-items: flex-start;
    }

    .field-card-content{
        flex-direction: column;
        text-align: center;
    }

    .field-card-img{
        margin-right: 0;
        margin-bottom: 15px;
    }

    .system-message-content{
        flex-direction: column;
    }

    .system-message-content div{
        align-items: center;
    }

    .system-message-content p{
        text-align: center;
    }

    .system-message-content-text{
        margin: 0;
    }
}

@media screen and (max-width: 768px){
    .terminal{
        font-size: 16px;
    }

    .terminal-top img{
        width: clamp(50px, 10vw, 80px);
        height: auto;
    }

    .screenfetch-image{
        font-size: 14px;
        line-height: 1.3;
        align-self: center;
    }

    .field-cards{
        padding: 0 20px;
    }

    .screenfetch{
        padding: 20px 30px;
    }

    .system-message-content img{
        width: 200px;
        height: 200px;
    }

    .whoami{
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px){
    .terminal{
        font-size: 12px;
        border-width: 2px;
    }

    .terminal-top div{
        padding-left: 5px;
    }

    .terminal-top img{
        width: 50px;
    }

    .screenfetch-image{
        font-size: 8px;
        line-height: 1.2;
    }

    .terminal-block{
        padding: 5px 8px;
    }

    .terminal-top div p{
        margin-left: 3px;
    }

    .screenfetch, .whoami{
        padding: 0 10px;
    }

    .screenfetch p, .whoami p{
        line-height: 1.5;
        font-size: 11px;
    }

    .whoami a{
        line-height: 1.4;
        font-size: 11px;
    }

    .whoami{
        margin: 10px auto;
    }

    .fact-title {
        font-size: 12px;
    }

    .fact-content {
        font-size: 11px;
        padding: 0 25px;
    }

    .facts {
        margin: 15px 15px 0 15px;
    }

    .system-message-content img{
        width: 150px;
        height: 150px;
    }

    .system-message-top img{
        height: 30px;
        width: 30px;
    }

    .system-message-content p{
        font-size: 12px;
        margin-bottom: 15px;
    }

    .btn-join{
        font-size: 11px;
        width: 140px;
        height: 55px;
    }

    .field-cards{
        padding: 0 10px;
    }

    .field-card-img{
        width: 80px;
    }

    .system-message{
        border-width: 2px;
    }
}

@media screen and (max-width: 320px){
    .terminal{
        font-size: 10px;
    }

    .screenfetch-image{
        font-size: 6px;
    }

    .btn-join{
        width: 120px;
        height: 50px;
        font-size: 10px;
    }

    .system-message-content img{
        width: 120px;
        height: 120px;
    }
}