html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: rgb(235, 235, 235);
    background-color: rgb(0, 0, 0);
}

.menu-container {
    display: flex;
    justify-content: center;
    background-color: rgba(26, 28, 32, 1);
    border-color: rgba(46, 49, 53, 1);
    border-style: solid;
    border-width: 0 0 1px;
}

.menu {
    width: 100%;
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-color: rgba(26, 28, 32, 1);
    padding: 10px 20px;
}

.logo-link {
    position: absolute;
    left: 200px;
    z-index: 3;
}

.menu-spacer {
    flex: 1;
}

#navbarNav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

a:link,
a:visited,
a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.navbar-nav {
    color: rgb(235, 235, 235);
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cup-icon {
    height: 23px;
    width: auto;
    margin-right: 8px;
    transform: translateY(-2px);
}

.nav-link.active .cup-icon {
    filter: none;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    background-color: rgb(56, 56, 56);
    border-radius: 6px;
    padding: 20px 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(70, 70, 70);
    margin-right: 10px;
}

.navbar-nav .nav-link.active {
    color: #e7e7e7;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 6px;
    padding: 20px 22px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:not(.active):hover {
    color: #202020;
    background: rgb(213, 213, 213);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.navbar-nav .nav-link:hover {
    transform: translateY(-5px);
}

.site-logo {
    height: 65px;
    vertical-align: middle;
}

.event-strip-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 5px 5px;
    background-color: rgba(33, 37, 41, 0.8);
    border-bottom: 1px solid rgba(70, 70, 70, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 960px;
    width: 100%;
}

.event-strip-label {
    font-weight: bold;
    color: #adb5bd;
    font-size: 14px;
}

.event-strip-title {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

.event-strip-title:hover {
    color: #ffffff;
    text-decoration: underline;
}

.event-strip-date {
    font-weight: normal;
    color: #ced4da;
    font-size: 16px;
}

.container {
    display: flex;
    flex-direction: row;
    margin: 10px;
    flex: 1;
}

main {
    width: 80%;
}

.sidebar-left,
.sidebar-right {
    flex: 0 0 10%;
    padding: 0 10px 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fc-day-grid-event .fc-content,
.fc-day-grid-event .fc-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.fc-today {
    background-color: #ffeb3b;
    color: black;
}

.fc-today .fc-day-number,
.fc-today .fc-content {
    color: black;
}

#nearest-event {
    display: flex;
    align-items: center;
    gap: 10px;
}

#event-label {
    font-weight: bold;
    color: rgb(223, 0, 59);
}

#event-title {
    font-weight: bold;
    color: rgb(235, 235, 235);
}

#event-date {
    font-weight: bold;
    color: #ff2614;
}

.footer-logo {
    height: 50px;
    vertical-align: middle;
}

.footer-logo-link {
    padding: 0;
}

.firstpage-footer {
    color: rgb(235, 235, 235);
    gap: 32px;
    left: 0px;
    width: 100%;
    display: flex;
    padding: 30px 0;
    position: flex;
    align-items: center;
    flex-shrink: 0;
    border-color: rgba(46, 49, 53, 1);
    border-style: solid;
    border-width: 1px 0 0;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(26, 28, 32, 1);
}

.firstpage-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.firstpage-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
}

.firstpage-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

ul.footer-nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-nav .nav-link {
    text-decoration: none;
    color: inherit;
}

.footer-nav .nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.firstpage-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.firstpage-media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.firstpage-item10,
.firstpage-item11,
.firstpage-item12 {
    display: flex;
    align-items: center;
}

.mail-icon,
.phone-icon {
    width: 30px;
    margin-right: 10px;
}

.discord-icon {
    width: 38px;
}

.insta-icon {
    width: 37px;
}

.youtube-icon {
    width: 40px;
}

.facebook-icon {
    width: 33px;
}

.twitter-icon,
.twitch-icon,
.patreon-icon {
    width: 30px;
    height: auto;
    display: block;
    align-items: center;
    transition: transform 0.1s ease-in-out;
}

.discord-button,
.insta-button,
.youtube-button,
.facebook-button,
.twitter-button,
.twitch-button,
.patreon-button {
    display: flex;
    align-items: center;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.discord-button:hover,
.insta-button:hover,
.youtube-button:hover,
.facebook-button:hover,
.twitter-button:hover,
.twitch-button:hover,
.patreon-button:hover {
    transform: scale(1.2);
}

.simgrid-button {
    display: flex;
    align-items: center;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.simgrid-icon {
    width: 85px;
    height: auto;
    display: block;
    align-items: center;
    transition: transform 0.1s ease-in-out;
}

.simgrid-button:hover {
    transform: scale(1.1);
}

.simgrid-button:hover .simgrid-icon {
    filter: brightness(1.2);
}

.firstpage-items1,
.firstpage-items2,
.firstpage-items3 {
    padding-top: 30px;
}

.footer-nav .nav-item {
    margin-bottom: 15px;
}

.firstpage-items2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.firstpage-items3 {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.firstpage-txt10 {
    margin-top: 40px;
    text-align: center;
}

.wrap {
    max-width: 100%;
    margin: auto;
    padding: 20px 0;
}

.items-wrap {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 50px;
}

.items-wrap::before,
.items-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
}

.items-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgb(0, 0, 0), transparent);
}

.items-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgb(0, 0, 0), transparent);
}

.items {
    flex-shrink: 0;
    display: flex;
    gap: 80px;
    justify-content: flex-start;
    animation: scroll 20s linear infinite;
}

.items-wrap:hover .marquee {
    animation-play-state: paused;
}

.item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    transition: transform 0.1s ease-in-out;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.item img {
    width: 120px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 7))
    }
}

@media (max-width: 600px) {
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * 7))
        }
    }
}

.user-auth-button {
    background: none;
    border: none;
    /* color: rgb(235, 235, 235); */
    color: rgb(26 28 32);
    font-family: 'Inter', sans-serif;
    /* font-size: 18px; */
    font-size: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    outline: none;
}

.user-auth-button.login-link-style:hover {
    text-decoration: underline;
}


.user-auth-button.profile-image-style {
    background-color: rgb(56, 56, 56);
    border: 1px solid rgb(70, 70, 70);
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-auth-button.profile-image-style:hover {
    box-shadow: 0 0 20px rgb(255, 255, 255, 0.8),
                0 0 10px rgb(183, 183, 183, 0.5);
}

.auth-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.user-auth-button.profile-image-style .auth-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.placeholder-text {
    color: #aaa;
    font-size: 0.9em;
    margin-top: 20px;
    opacity: 0.8;
}

.user-auth-item {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

#auth-section {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(56, 56, 56);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1;
    right: 0;
    top: calc(100% + 5px);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgb(70, 70, 70);
}

.user-dropdown-content .dropdown-item {
    color: rgb(235, 235, 235);
    padding: 5px 0px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.user-dropdown-content .dropdown-item:hover {
    background-color: #2563eb;
    color: #fff;
}

.user-dropdown-content a {
    color: rgb(235, 235, 235);
    padding: 12px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.user-dropdown-content a:hover {
    background-color: rgba(46, 49, 53, 1);
    color: #fff;
}

.user-dropdown-content .dropdown-icon {
    height:1.8em;
    width: auto;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Styles for auth forms and alerts */
.card.auth-card {
    background-color: rgb(56, 56, 56);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
    color: rgb(235, 235, 235);
    border: 1px solid rgb(70, 70, 70);
}

.card.auth-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #e7e7e7;
    font-size: 2em;
    font-weight: 700;
}

.card.auth-card p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
    font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"], /* Хотя email не используется для входа, оставим для общности */
.form-group input[type="password"] { /* Хотя password не используется, оставим для общности */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgb(70, 70, 70);
    border-radius: 5px;
    background-color: rgb(40, 40, 40);
    color: rgb(235, 235, 235);
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: #888;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.btn.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.btn.btn-primary:hover {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    text-align: left;
}

.alert-info {
    background-color: #2196F3;
    color: white;
    border: 1px solid #0b7dda;
}

.alert-success {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #388e3c;
}

.alert-danger {
    background-color: #f44336;
    color: white;
    border: 1px solid #d32f2f;
}

.card.auth-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.card.auth-card a:hover {
    text-decoration: underline;
}

.main-content-wrapper-registration {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-content-wrapper-registration {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .sidebar-left,
    .sidebar-right {
        flex: auto;
        width: 100%;
        padding: 0;
    }
    .container {
        width: 100%;
        max-width: none;
        margin: 10px 0;
    }
}
