html {
    overflow-y: scroll;
}

header {
    display:flex;
    justify-content: center;
}

body {
    background-color: #0F172B;
    color:#EDEDF6;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

main {
    display:flex;
    align-items: center;
    flex-direction: column;
    padding-top:100px;
    min-height: 65vh;
}

footer {
    display: flex;
    justify-content: center;
    justify-self: center;
    flex-direction: row;
    margin-top: 80px;
    padding:30px;
    background-color: #1D293D;
    width:90%;
    height:auto;
    border-radius: 10px;
}

footer div {
    display:flex;
    gap:50px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    footer {
        padding:10px
    }
}

a {
    color:#5ccfe6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    position: fixed;
    justify-content: center;
    width:92%;
    height: 50px;
    margin-top:10px;
    text-align: center;
    display:flex;
    z-index: 9999;
    background-color:#A684FF;
    border:3px solid #1D293D;
    border-radius:15px;
}

.logo {
    display:flex;
    align-items: center;
    justify-content: left;
    padding-left:1%;
    flex:1;
    text-decoration: none;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.logo p {
    color:#000000
}

.logo:hover {
    text-decoration: none;
}

.top-button {
    flex:1;
    display:flex;
    align-items: center;
    justify-content: center;
}

.top-button a {
    color:#000000;
    text-decoration: none;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}


.top-button a:hover, .logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
    .top-bar {
        width:95%;
    }
}

/*ARTICLE PAGE*/

.info {
    display:flex;
    margin-top:50px;
    justify-content:center;
    width:60%;
    gap:20px;
    margin:100px 0px;
}

.script-image {
    flex:1;
    background-color:#1D293D;
    display:flex;
    justify-content: center;
    align-items: center;
    border:2px solid #A684FF;
    border-radius: 5px;
}

.script-image img {
    width:100%;
    padding:5px;
}

.script-menu {
    flex:1;
    background-color:#1D293D;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border:2px solid #A684FF;
    border-radius: 5px;
}

.script-name {
    margin:20px;
    text-align: center;
}

.test_2 {
    display:flex;
    justify-content:center;
    align-items: center;
    justify-items:auto;
    text-align: center;
    padding:10px;
    max-height: 40%;
}

.test_2 h3 {
    flex:1;
    border:1px solid #EDEDF6;
    border-radius:10px;
    padding:10px
}

.test_2 p {
    flex:2;
    padding:10px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.copy-script {
    background-color: #A684FF;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    font-size:16px;
    width:90%;
    height:20%;
    margin:5px;
    transition: all 0.1s ease;
}

.copy-script:hover {
    transform: scale(1.05);
}

.script {
    display:flex;
    background-color: #1D293D;
    width:65%;
    justify-content: center;
    align-items: center;
    overflow:hidden;
}

.script-text {
    width:90%;
    overflow-y:scroll;
    min-height:100px;
    max-height: 250px;
    border:2px solid #b69bfc;
    background-color:#0F172B;
    padding:5px;
}

/* CONTACT PAGE */

.contact-form {
    background-color: #1D293D;
    border:2px solid #A684FF;
    border-radius: 5px;
    margin-top: 20px;
    width:50%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form div {
    display: flex;
    flex-direction: column;
}

.contact-form select {
    background-color: #1D293D;
    color:#EDEDF6;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 3px;
}

.contact-form div input, textarea {
    background-color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    border:none;
    font-weight: 500;
    border-radius: 5px;
    font-size: 15px;
}

.btn-submit {
    background-color:#5633cc;
    color: white;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.btn-submit:focus-visible {
    background-color: #09BB5E;
}

.info-ecole {
    display: flex;
    gap:20px;
    margin:50px;
    width: 90%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align:center;
}

@media (max-width: 900px) {
    .contact-form {
        width:90%;
    }
}

/* INDEX PAGE */

.quality {
    display:flex;
    margin-top:70px;
    gap:40px;
    width:80%;
    min-height:100px;
    flex-wrap: wrap;
}

.quality div {
    flex:1;
    padding:20px;
    border:1px solid #7c7c7c;
    border-radius:5px
}

.quality div img {
    height:42px;
    width:auto;
    object-fit: contain;
}

.quality div h3 {
    margin:5px 0px
}

.quality div p {
    color:#747c94;
    margin: 0px;
}

hr {
    width:85%;
    background-color:#747c94;
    height:1px;
    margin:40px 0px;
    border:none;
}

.us-title {
    margin:0px 0px 60px 0px;
}

.about-us {
    display:flex;
    flex-direction: column;
    width:80%;
    gap:30px;
}

.about-us div h2 {
    padding:0px 10px;
    margin:0
}

.left, .right {
    display:flex;
    flex-direction: column;
    width:55%;
    padding:10px;
    border:1px solid #8f62dd;
    border-radius: 5px;
}

.left {
    align-self: flex-start;
    text-align: left;
}

.right {
    align-self: flex-end;
    text-align: right;
    
}

span {
    font-weight: bold;
    color: #b69bfc;
}

/* FAQ PAGE*/

.faq-title {
    margin-bottom:80px;
}

.faq {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width:60%;
    gap:5px
}

.faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    width:100%
}

.faq-item p {
    margin:0
}


.faq-item label {
    display: block;
    background-color: #A684FF;
    border-radius: 8px;
    color: #0F172B;
    font-weight: 600;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.faq-item label {
    display:flex;
    justify-content: center;
    gap:3px;
}

.faq-item label:hover {
    background-color: #b69bfc;
}

.faq-item .answer {
    height: 0;
    overflow: hidden;
    background-color: #1D293D;
    border:none;
    border-radius: 8px;
    color: #EDEDF6;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.5;
    transition: height, padding 0.4s ease
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item input[type="checkbox"]:checked ~ .answer {
    height:fit-content;
    padding: 15px 20px;
    border:1px solid #A684FF;
}

@media (max-width: 1600px) {
    .faq {
        width:80%;
    }
}

/* SCRIPT PAGE*/

.scripts {
    display:flex;
    flex-direction: row;
    justify-content:center;
    text-align: center;
    color:#6b6b6b;
    gap:30px;
    width:80%;
    flex-wrap: wrap;
}

.scripts a {
    border:1px solid #5633cc;
    border-radius: 5px;
    background-color: #1D293D;
    padding:10px;
    overflow: hidden;
    width:390px;
    transition: all 0.1s ease;
}

.scripts a:hover {
    transform: scale(1.05);
}

.scripts a img {
    object-fit: contain;
    width:100%;
    height:auto;
}

.scripts a h1 {
    text-shadow: 0 0 5px black;
}

@media (max-width: 1700px) {
    .scripts a {
        width:300px;
    }
}

@media (max-width: 1350px) {
    .scripts a {
        width:220px;
    }
}

@media (max-width: 700px) {
    .scripts {
        width:95%;
    }

    .scripts a {
        width:180px;
    }
}

@media (max-width: 500px) {
    .scripts a {
        width:150px;
    }
}

/*RULES PAGE*/

.rules {
    width:50%;
    min-height: 700px;
    border:2px solid #5633cc;
    border-radius: 10px;
    background-color: #1D293D;
    display:flex;
    flex-direction: column;
    padding:10px 20px;
}

.rules .top {
    text-align: center;
}

.rules h2 {
    margin-bottom:0px;
}

small {
    font-size: 10px;
}

@media (max-width: 700px) {
    .rules {
        width:70%
    }
}