@charset "utf-8";
/* CSS Document */

main {
    font-size: 100%;
    width: calc(100% - 250px);
}

.exerise, .exercise-top {
    width: calc(90% - 80px);
    margin: 25px 5%;
    background-color: #fefefe;
    display: flex;
    padding: 20px 40px;
    position: relative;   
}

.exercise-top {
    flex-direction: column;
}

.exerise .text, .exerise .circle {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exerise .text h1, .exercise-top h1 {
    text-decoration: underline;
    text-decoration-color: var(--base-color);
}

#correct-answers, #wrong-answers, #koefficent {
    color: var(--base-color);
    font-weight: bolder;
}

.exercise-top tr th {
    padding: 10px;
    text-decoration: underline;
    text-decoration-color: var(--base-color);
}

.exercise-top tr td {
    font-style: italic;
    text-align: center;
    padding: 5px;
}

.exercise-top table {
    width: 100%;
    min-width: 671px;
    overflow: scroll;
    border: 1px solid var(--text-color);
}

.arrow-container {
    height: 10px;
    transform: translate(10px, -12px);
    display: none;
}

.arrow {
    width: 0;
    height: 0;
    border-top: 7.5px solid transparent;
    border-bottom: 7.5px solid transparent;
    border-left: 11.25px solid #000; 
    position: relative;
    animation: arrowBlink 1s infinite alternate; 
}

#name1, #koefficent1, #correct-answers1, #wrong-answers1, #place1,
#place1-g, #name1-g, #record1-g, #mode1-g, #difficulty1-g {
    color: var(--base-color);
}

@keyframes arrowBlink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1; 
    }
}

@media (max-width: 834px) {	
    .arrow-container  {
        display: block;
    }
}

@media (max-width: 1175px) {	
    main {
        margin-top: 100px;
        width: 100%;
    }
}

@media (max-width: 970px) {	
    .exerise {
        flex-direction: column;
    }

    .exerise .text, .exerise .circle  {
        width: 100% !important;
    }
}

@media (max-width: 500px) {	
    canvas {
        display: none !important;
    }

    .exerise .text, .exercise-top {
        font-size: small;
    }
}

footer {
    width: 100%;
    height: 108px;
    display: none;
    margin-top: 50px;
    position: relative;
    align-items: center;
    justify-content: space-between;
	background: linear-gradient(180deg, rgba(1,128,61,0.5046393557422969) 0%, rgba(1,127,128,0.5046393557422969) 100%);
}

footer .logo {
    height: 100px;
    width: 100px;
}

footer .logo img {
    width: 50px;
    margin: 15px 25px 35px;
}

footer .copyright {
    position: absolute;
    bottom: 0px;
    width: 100%;
    left: 0;
    text-align: center;
    padding: 7px 0;
    color: var(--background-color);
    font-size: .7em;
}

footer .to-top {
    width: 100px;
    text-align: center;
    transform: translateY(-10px);
}

footer .to-top button {
    border: none;
    color: var(--background-color);
    background-color: var(--base-color);
    padding: 5px 10px;
    font-size: 1em;
    cursor: pointer;
}

@media (max-width: 1175px) {
    footer {
        display: flex !important;
    }
}
