@font-face {
    font-family: "Reey";
    src: url('../fonts/ReeyRegular.woff2');
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #FFFFFF;
}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background-color: #2C2F33;
}

::-webkit-scrollbar-thumb{
    background-color: #0077B6;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #00A8E8;
}

.container{
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 15px;
}

/* .wrapper{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../image/background_fixed.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 40% 50%;
    background-attachment: fixed;
} */

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../image/background_fixed.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 40% 50%;
    background-attachment: fixed; /* This is causing the issue on mobile */
}

/* .wrapper-home{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../image/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 40% 50%;
} */

.wrapper-home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../image/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; /* Changed from 40% 50% */
    width: 100%;
    overflow-x: hidden;
}

.main{
    min-height: 100%;
    flex: 1 1 auto;
}

.header{
    padding: 20px 0;
    height: 80px;
    width: 100%;
    top: 0;
    right: 0;
    position: relative;
    z-index: 5;
}

.home{
    padding-top: 100px;
}

.header_inner{
    display: flex;
    align-items: center;
    justify-content: end;
}

.menu_list{
    display: flex;
    align-items: center;
}

.menu_item{
    margin-left: 30px;
}

.menu_item:first-child{
    margin-left: 0;
}

.menu_link{
    color: #FFFFFF;
    font-size: 20px;
    position: relative;
}

.menu_link::after{
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #0077B6;
    transform: translate(-50%);
    left:50%;
    transition: all 0.3s ease-in-out;
}

.menu_link:hover{
    color: #0077B6;
}

.menu_link:hover::after{
    width: 80%;
}

.header_logo{
    margin-left: 50px;
}

.logo_img{
    max-width: 100px;
}

.home_inner{
    text-align: right;
    max-width: 500px;
    text-align: center;
    margin-left: auto;
}

.home_subtitle{
    font-weight: 600;
    color: #CCCCCC;
    font-size: 30px;
    margin-bottom: 10px;
}

.home_title{
    font-size: 80px;
    font-weight: 700;
    color: #00CCFF;
}

.home_descr{
    font-family: 'Robot';
    font-size: 40px;
    color: #E0E0E0;
    margin-top: -5px;
    margin-bottom: 30px;
}

.home_text{
    color: #E0E0E0;
    font-size: 20px;
    font-weight: 300;
    line-height: 30px;
    margin-bottom: 40px;
}

.home_link{
    font-weight: 600;
    color: #FFFFFF;
    background-color: #00CCFF; 
    padding: 8px 60px;
    border-radius: 30px;
    letter-spacing: 2px;
    transition: all 0.3s ease-in-out;
}

.home_link:hover{
    background-color: #0077B6;
}

.home_social{
    text-align: left;
    margin-top: 100px;
    opacity: 0.7;
    padding-bottom: 100px;
}

.home_social_fixed{
    text-align: left;
    margin-top: 100px;
    opacity: 0.7;
    padding-bottom: 10px;
}

.parent-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.home_social_fixed_v3 {
    text-align: left;
    margin-top: 100px;
    opacity: 0.7;
    padding-bottom: 10px;
}

.home_social--link{
    margin-left: 15px;
}

.home_social--link:first-child{
    margin-left: 0;
}

.social_img{
    width: 35px;
    height: 35px;
    transition: all 0.3s ease-in-out;
}

.social_img:hover{
    transform: rotate(-15deg);
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    max-width: 300px;
    background-color: #00A8E8;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;

    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#copy-message {
    visibility: hidden;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0077B6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 16px;
}

.menu_link.active {
    color: #0077B6;
}

.menu_link.active::after {
    width: 80%;
}

/* ----------------------------------------------------------------------------- */

.about {
    padding: 100px 0;
}

.about_inner {
    max-width: 800px;
    margin: 0 auto;
}

.about_title {
    font-size: 60px;
    color: #00CCFF;
    text-align: center;
    margin-bottom: 50px;
}

.about_block {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.about_subtitle {
    color: #00CCFF;
    font-size: 28px;
    margin-bottom: 20px;
}

.about_text {
    color: #E0E0E0;
    font-size: 16px;
    line-height: 1.6;
}

/* ----------------------------------------------------------------------- */

.faq {
    padding: 100px 0;
}

.faq_inner {
    max-width: 800px;
    margin: 0 auto;
}

.faq_title {
    font-size: 60px;
    color: #00CCFF;
    text-align: center;
    margin-bottom: 50px;
}

.faq_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.faq_item {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.faq_item:hover {
    transform: translateX(10px);
}

.faq_question {
    color: #00CCFF;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.faq_question::before {
    content: "Q:";
    position: absolute;
    left: 0;
    color: #0077B6;
}

.faq_answer {
    color: #E0E0E0;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

.faq_answer::before {
    content: "A:";
    position: absolute;
    left: 0;
    color: #00A8E8;
}

/* --------------------------------------------------------------------------- */

.tools {
    padding: 100px 0;
}

.tools_title {
    font-size: 60px;
    color: #00CCFF;
    text-align: center;
    margin-bottom: 50px;
}

.tools_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
}

.tool_card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.tool_card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.7);
}

.tool_content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool_icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tool_name {
    color: #00CCFF;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool_descr {
    color: #E0E0E0;
    font-size: 16px;
    line-height: 1.4;
}

.tool_card p {
    font-size: 18px;
}

.tool_card h2 {
    font-size: 24px;
}

.tool_card button {
    font-size: 18px;
}

/* --------------------------------------------------------------------------- */

.otp_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8); /* Прозора чорна рамка */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.otp_container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #00aaff; /* Блакитний заголовок */
}

.otp_container label {
    display: block;
    font-size: 16px; /* Трохи більший текст */
    font-weight: 500;
    margin-bottom: 8px; /* Більший відступ */
    color: #ddd;
}

.otp_container input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px; /* Більший відступ */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Прозора рамка */
    border-radius: 5px;
    background: rgba(42, 42, 42, 0.8);
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
}

.otp_container input[type="file"]:hover {
    background: rgba(50, 50, 50, 0.9);
}

.otp_container button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background: #007bff; /* Блакитна кнопка */
    color: #fff;
    font-size: 18px; /* Трохи більший текст кнопки */
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.otp_container button:hover {
    background: #0056b3; /* Трохи темніший блакитний при наведенні */
}

/* --------------------------------------------------------------------------- */

/* Стилі для текстового поля */
.text-input-section {
    margin-bottom: 30px;
    background: rgba(20, 20, 20, 0.7);
    padding: 15px;
    border-radius: 8px;
}

.input-hint {
    color: #0077B6;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.fixed-textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: none; /* Заборона зміни розміру */
    margin-bottom: 10px;
}

.fixed-textarea:focus {
    border-color: #00CCFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

/* Стилі для кнопок */
.text-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-btn {
    padding: 10px 20px;
    background-color: #0077B6;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #00A8E8;
}

/* Стилі для результатів шифрування */
.encryption-results {
    margin-top: 15px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 5px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.secondary-btn {
    padding: 8px 15px;
    background-color: #303030;
    color: #00CCFF;
    border: 1px solid #0077B6;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: #0077B6;
    color: white;
}

.section-divider {
    text-align: center;
    font-weight: 600;
    color: #00A8E8;
    margin: 20px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.section-divider::before {
    left: 30%;
}

.section-divider::after {
    right: 30%;
}

.decryption-result {
    margin-top: 25px;
    display: none;
}

.result-container {
    background: rgba(20, 20, 20, 0.7);
    padding: 15px;
    border-radius: 8px;
}

.result-container h3 {
    color: #00CCFF;
    font-size: 18px;
    margin-bottom: 10px;
}

.result-textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: none;
    margin-bottom: 10px;
}

/* Додайте до існуючої otp_container */
.otp_container {
    position: relative;
}

/* Індикатор формата даних */
.format-indicator {
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 10px;
    border-radius: 3px;
    background-color: #2a2a2a;
    color: #00CCFF;
}

/* --------------------------------------------------------------------------- */

.password-section {
    margin: 15px 0;
}

.password-input {
    width: 100%;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.password-input:focus {
    border-color: #00CCFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.key-generation-section {
    margin-bottom: 30px;
    background: rgba(20, 20, 20, 0.7);
    padding: 20px;
    border-radius: 8px;
}

.key-size-selection {
    margin: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.key-size-select {
    padding: 8px 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.key-display {
    margin-top: 20px;
}

.key-container {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 5px;
}

.key-textarea, 
.key-input-textarea,
.encrypted-textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    margin: 10px 0;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
}

.key-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.warning-text {
    color: #ff6347;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

.key-input-section {
    margin: 15px 0;
}

.file-input-section {
    margin-bottom: 30px;
    background: rgba(20, 20, 20, 0.7);
    padding: 20px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------- */

