* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
	font-family: 'Widock TRIAL'; 
	src: local('Widock TRIAL Bold'), url(assets/fonts/WidockTRIALBold.otf);
}

body {
    font-family: Widock TRIAL;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: linear-gradient(to right, #4a6de2, #1e00a5);
    color: white;
    text-align: center;
    padding: 50px 0;
    align-items: center;
}

header h1 {
    font-size: 90px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

header p {
    font-size: 1.2em;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    height: calc(100vh - 150px); /* Учитываем высоту хедера и футера */
    background-size: cover;
    background-image: linear-gradient(to bottom, rgba(18, 54, 255, 0.205), rgba(7, 0, 102, 0.767)), url(assets/bg.jpg);
    overflow:hidden; 
    overflow-y:scroll;
}

h2 {
    text-align: center;
    margin: 10px;
    font-size: 30px;
}
nav {
    justify-content: center;
    margin: 20px;
    text-align: center;
}

nav ul {
    display: flex;
    text-align: center;
    list-style-type: none;
    flex-wrap: nowrap; /* Позволяет кнопкам размещаться в несколько строк */
    flex-direction: column;
    justify-content: center;
}

nav ul li {
    display: flex;
    flex: 1 0 90px; /* Минимальная ширина кнопок 200px */
    font-family: Widock TRIAL;
    font-size: 1.2em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px; /* Единая высота для всех кнопок */
    width: 1500px;
    font-size: 1.2em;
    color: #333;
    background-color: #f8f8f8; /* Цвет кнопки */
    text-decoration: none;
    border-radius: 20px;
    text-align: center; /* Центрирование текста внутри кнопки */
    transition: transform .2s, background-color .2s;
}

.button:hover {
    background: #e6e6e6; /* Цвет кнопки при наведении */
    transform: scale(1.025);
}

footer {
    font-family: monospace;
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

.back {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px; 
    width: 300px;
    font-size: 1.2em;
    color: #333;
    background-color: #f8f8f8; 
    text-decoration: none;
    border-radius: 50px;
    text-align: center; 
    transition: transform .2s, background-color .2s;
}

.back:hover {
    background: #e6e6e6; 
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em; 
    }

    nav ul li {
        font-size: 1em; 
    }

    .button {
        height: 50px;
        font-size: 0.8em; 
        width: 450px;
    }
}