body{
    background: radial-gradient(circle, #B6D0E2, #7FB3D5, #549DC7);
    font-family: 'Poppins', sans-serif;
    height: 100%;
    background-attachment: fixed;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login_body , .reg_body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

header {
    background-color: #549DC7; 
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px;
    width: 100%;
    height: 50px;
}

.head{
    display: flex;
}

.admin_sidebar{
    max-height: 80vh;
    overflow-y: auto;
}

.alert-success {
    position: absolute;
    bottom: 0;
}

#faq-content{
    height: 250px;
    width: 100%;
    border: 1px solid #4169E1;
    border-radius: 10px;
}

.faq-btn{
    margin-bottom: 7px;
}

.button-add {
    border: 1px;
    border-radius: 10px;
    width: 100%;
    background-color: #ADD8E6;
    padding: 10px;
}
.button-add:hover {
    background-color: #4169E1;
}

.logo{
    color: black;
    text-decoration: none;
    
    
}
.logo:hover{
    text-decoration: underline;
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}
/* Шапка */
header .user-info {
    display: flex;
    align-items: center;
}

header .user-icon {
  margin-right: 10px;
}

main {
    flex-grow: 1;
    padding: 20px;
}

.main-content {
    margin-top: 8%;
    text-align: center;
    margin-bottom: 1%;
}

.main-content p {
    font-size: 30px; 
    color: #333; 
    max-width: 600px;
    margin: 20px auto; 
}

.search-bar {
    margin: 0 auto;
    width: 80%;
    max-width: 600px;
    margin-bottom: 5%;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

#search-results{
    width: 100%;
    background: #fff; 
    border: 1px solid #ccc; 
    padding: 10px; 
    /* position: absolute;  */
    max-height: 200px; 
    overflow-y: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.section-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 400px));
    /* grid-template-columns: 30% 30%; */
    justify-content: center;
    grid-gap: 20px;
    margin-bottom: 40px; 
}

.section-item {
    background-color: #DCFFD8; 
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    transition: background-color 0.3s ease; 
}

.section-wrapper , .mater-wrapper{ 
    background-color: #B6D0E2; 
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 450px;
    width: 60%;
}

.center-section-wrapper, .center-mater-wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-item:hover , .mater:hover{
    background-color: #74c56b; 
}

.section-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.spacer {
    height: 80px;
}
.spacer1 {
    height: 10px; 
}
.mater-wrapper {
    margin-top: 70px;
    background-color: #B6D0E2;
    border: 1px;
    border-radius: 10px;
    text-align: center;
    
}
.mater-wrapper p{
    font-size: 30px;
}
.mater-conteiner{
    display: grid; 
    /* grid-template-columns: 30% 30% 30%; */
    grid-template-columns: repeat(2, minmax(200px, 400px));
    justify-items: center;
    justify-content: center;
}
.mater{
    color: blue;
    align-content: center;
    margin: 10px;
    border: black;
    width: 80%;
    height: 70%;
    margin-bottom: 10px;
    background-color: #DCFFD8;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    padding: 10px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.form-container h1{
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.login_header h1, .reg_header h1, .termin_header, .termin_header h1{
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: black;
    text-decoration: none;
    
}

.termin_header .user-info{
    display: flex;
    align-items: center;
}

.termin_header .user-icon{
    margin-right: 10px;
}

.login_header h1:hover , .reg_header h1:hover, .termin_header h1:hover{
    text-decoration: underline;
}

/* .form-group {
    margin-bottom: 15px;
} */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}
.trash-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 10px;
    float: right;
    margin-right: 10px;
}

.profile_p {
    width: auto;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    align-content: center;
}
#textarea {
    width: 100%;
    height: 200px;
}
.tema{
    margin-bottom: 10px;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    width: 100%;
    outline:none;
}

.button1{
    width: 100%;
    margin-bottom: 10px;
}

.btn-group {
    margin-bottom: 15px;
}
.alert{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    height: 5%;
    padding: 1%;
    text-align: center;

    display: flex;
    justify-content: center;   /* по горизонтали */
    align-items: center; 
}
.test-container{
    min-height: 80vh;
}

@media (max-width: 450px){
    .main-content p{
        font-size: 20px;
    }
    .section-wrapper, .mater-wrapper{
        min-width: 220px;
        width: 90%;
    }
    .section-container, .mater-conteiner{
        grid-template-columns: repeat(1, minmax(150px, 200px));
    }
    .mater{
        width: 100%;
        height: 80%;
    }
    header h1{
        font-size: 20px;
    }
    .form-container{
        width: 80%;
    }
    .termin-group{
        width: 80%;
    }
    .check-faq, .exit{
        font-size: 12px;
    }
    .alert{
        width: 80%;
        height: 10%;
    }
    .reg_text{
        font-size: 30px;
    }
    .list-group-container, .h-container, .termin-container, .add-term-form-container, .translator-container{
        display: flex;
        justify-content: center;
    }
    .h-container h3{
        font-size: 20px;
        max-width: 90%;
    }
    .list-group-container{
        margin-bottom: 10px;
    }
    .list-group-width, #col-md-9, .add-termin-form, #translator{
        width: 85%;
    }
    .test-container{
        min-height: auto;
        max-height: 40%;
    }
}