@font-face {
    font-family: 'CustomFont';
    src: url('fonts/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'CustomFont', Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 2s ease-out, visibility 2s ease-out; /* Smooth fade-out */
    opacity: 1;
    visibility: visible;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Disable interaction with loading screen */
}

/* Loader Styles */
.loader {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Noscript Warning */
.noscript-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: black;
    color: white;
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
    z-index: 9999;
    font-size: 18px;
    width: 80%;
    max-width: 600px;
}

/* Background and Overlay */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: url('background.png') no-repeat center center;
    background-size: cover;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Login Modal */
.login-modal {
    position: relative;
    z-index: 2;
    background-color: rgba(44, 44, 44, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    max-width: 90%;
    width: 400px;
    margin-bottom: 100px;
}

.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-arrow {
    position: absolute;
    left: 10px;
    top: 10px;
    text-decoration: none;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    cursor: pointer;
}

.header img {
    width: 80px;
    margin-bottom: 20px;
    pointer-events: none;
    border-radius: 0;
}

h2 {
    margin: 0 0 20px 0;
    font-weight: normal;
}

/* Default styles for the first button */
.login-button {
    background-color: white; /* Fully opaque */
    border: none; /* Remove the blue border */
    color: black; /* Change text color to black for contrast */
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Add transition for background-color */
    font-weight: normal;
}

/* Make the button 30% transparent on hover */
.login-button:hover {
    background-color: rgba(255, 255, 255, 0.7); /* 30% transparent */
}

.login-button:active {
    transform: scale(0.98);
}

/* Style for vk-group-button */
.vk-group-button {
    background-color: #0078ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    font-weight: normal;
}

/* Image inside vk-group-button */
.vk-group-button img {
    width: 20px; /* Adjusted width for PNG icon */
    height: 20px; /* Adjusted height for PNG icon */
    margin-right: 10px; /* Space between the image and text */
    flex-shrink: 0; /* Prevents the icon from shrinking */
    position: absolute; /* Position the icon absolutely */
    left: 10px; /* Align icon to the left */
}

/* Center text in vk-group-button */
.vk-group-button span {
    flex: 1;
    text-align: center; /* Center text */
    display: flex;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
}

/* Hover and active states for vk-group-button */
.vk-group-button:hover {
    background-color: #0064d2; /* Slightly darker blue for hover effect */
}

.vk-group-button:active {
    transform: scale(0.98);
}

/* Separator styles */
.separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0; /* Adjust the margin as needed */
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: #b0b0b0; /* Color of the lines */
    margin: 0 10px; /* Space between text and lines */
}

.separator-text {
    font-size: 16px;
    color: #b0b0b0; /* Color of the text */
    white-space: nowrap;
    font-weight: normal; /* Ensure default weight for separator text */
}

.social-links p {
    margin: 20px 0 10px 0;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: normal; /* Ensure default weight for social links text */
}

@media (max-width: 600px) {
    .login-modal {
        padding: 15px;
        width: 90%;
        margin-bottom: 40px;
    }

    .login-button, .vk-group-button {
        padding: 10px;
        font-size: 14px;
    }

    .header img {
        width: 60px; /* Further adjust for smaller screens */
    }
}
