@font-face {
    font-family: 'Anurati';
    src: url('assets/fnt/anurati.otf') format('truetype');
}

@font-face {
    font-family: 'Product Sans';
    src: url('assets/fnt/product sans.otf') format('truetype');
}

h2, h3, .help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .polish_manual h4, .english_manual h5, .polish_manual p, .english_manual p, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button, .alert p, .confirmation p, .win p { font-family: 'Product Sans', sans-serif; }

h2, h3, .polish_button, .english_button, .dark_button, .light_button, .help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .keyboard, .polish_manual, .english_manual, .alert, .confirmation, .win { position: absolute; }

h1 {
    font-family: 'Anurati', sans-serif;
    font-size: 100px;
}

.polish_button, .english_button, .dark_button, .light_button, .help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .button, .polish_manual, .english_manual, .alert, .confirmation, .win, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button, .alert img, .confirmation img { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }

.polish_button, .english_button, .dark_button, .light_button, .help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .button, .polish_manual, .english_manual, .alert, .confirmation, .win, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button {
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.polish_button, .english_button, .dark_button, .light_button {
    top: calc(0% + 110px);
    border: none;
    padding: 4px 4px 0px 4px;
}

h2, .dark_button, .light_button, .help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .button, .polish_manual, .english_manual, .alert, .confirmation, .win, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button { left: calc(100% - 175px); }

h2, .dark_button, .light_button {
    font-size: 16px;
    top: calc(100% - 200px);
}

.polish_button, .english_button, .dark_button, .light_button { left: calc(0% + 100px); }

.english_button, .light_button { left: calc(0% + 200px); }

.help_button, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .button, .polish_manual, .english_manual, .alert, .confirmation, .win, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button {
    top: calc(0% + 100px);
    height: 60px;
    color: #fff;
    border: 3px solid #2d2d30;
}

.give_up_button, .reset_button, .delete_button, .enter_button, .button, .polish_key, .key {
    top: 255px;
    left: calc(50% - 290px);
    width: 125px;
    background-color: #3e3e42;
}

.help_button, .polish_key, .key, .button, .polish_manual, .english_manual, .alert, .confirmation, .win, .polish_manual button, .english_manual button, .alert button, .confirmation button, .win button {
    width: 60px;
    font-size: 30px;
}

h3, .give_up_button, .reset_button, .delete_button, .enter_button, .polish_key, .key, .polish_manual p, .english_manual p, .alert p, .confirmation p, .win p { font-size: 20px; }

.reset_button, .enter_button  { left: calc(50% + 165px); }

.delete_button, .enter_button { top: 579px; }

.keyboard { top: 675px; }

.keyboard_row {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    gap: 2px;
}

.polish_key, .key {
    width: 50px;
    font-size: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
}

.button { font-weight: bold; }

.polish_manual, .english_manual, .alert, .confirmation, .win  {
    width: 400px;
    height: auto;
    background: #1e1e1e;
    border: 4px solid #4caf50;
    border-radius: 16px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
}

.open-manual, .open-alert, .open-confirmation, .display-win {
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.polish_manual h4, .english_manual h5 { font-size: 40px; }

.polish_manual button, .english_manual button, .alert button, .confirmation button, .win button {
    width: 50%;
    height: 40px;
    background: #54545a;
    font-size: 18px;
}

.alert, .confirmation, .win {
    background: #3e3e42;
    border: 4px solid #f05050;
}

.alert img, .confirmation img {
    width: 100px;
    margin-top: -50px;
    border-radius: 50%;
}

.confirmation { border: 4px solid #fff; }

.win { border: 4px solid #fbb014; }

.win img {
    width: 200px;
    margin-top: -100px;
}

.win p, .win button { color: #fbb014; }

button:hover { background-color: #2d2d30; }