:root {
    /* color-list */
    --text-color: #000000;
    --main-color: #E53935;
    --second-color: #2b2b2b;
    --background-color: #fafafa;
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, .2);

    /* transition-list */
    --transition-speed: 0.3s ease-in-out;
}

/*---------- BODY ----------*/
body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white-color);
    width: auto;
    height: auto;
}

/*----------WEB-SYNTAX-TOOLS ----------*/

/*----------webtool - header ----------*/
.app-header.scrolled {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/*----------webtool - divider ----------*/
.divider-marker {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
}

.divider-marker .divider-marker__diamond {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-top: 2px solid var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5px;
    padding: 10px;
    box-shadow: inset 10px 10px 10px 0px var(--shadow-color);
    transform: rotate(45deg);
}

.divider-marker .divider-marker__content {
    justify-content: center;
    align-items: center;
    width: 300px;
    transform: rotate(-45deg);
    color: var(--main-color);
    font-size: 24px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.divider-marker .divider-marker__line {
    width: 100px;
    height: 2px;
    background-color: var(--main-color);
}

/*---------- HEADER ----------*/
.app-header {
    position: fixed;
    top: 0;
    background-color: transparent;
    width: 1800px;
    display: flex;
    margin: 0 auto;
    height: 70px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px;
    z-index: 100;
    transition: var(--transition-speed);
}

.app-header .app-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px var(--shadow-color);
    font-size: 24px;
    font-weight: 100;
    color: var(--main-color);
    background-color: transparent;
    cursor: pointer;
}

.app-header .app-header__title {
    width: 150px;
    height: 50px;
    display: flex;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    margin-right: auto;
    color: var(--main-color);
    border-radius: 10px;
}

.app-header .app-header__language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px var(--shadow-color);
    font-size: 24px;
    font-weight: 100;
    color: var(--main-color);
    background-color: transparent;
    cursor: pointer;
}

.app-header .app-header__language-container {
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 60px;
    right: 10px;
    width: 60px;
    background-color: var(--background-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-radius: 12px;
    padding: 8px 0;
    gap: 6px;
}

.app-header .app-header__language-option {
    background-color: transparent;
    color: var(--second-color);
    font-weight: 600;
    width: 52px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.app-header .app-header__language-container .app-header__language-option.active {
    background-color: var(--main-color);
    color: #ffffff;
    font-weight: 100;
}

/*---------- MAINTENANCE ----------*/
.maintenance-section {
    display: flex;
    flex-direction: row;
    padding-top: 60px;
    width: 1800px;
    height: 1000px;
    background-color: var(--background-color);
}

.maintenance__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
    background-color: transparent;
    padding-left: 20px;
}

.maintenance__content .maintenance__card {
    width: 80%;
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--background-color), #a2a2a2);
    border-right: 5px solid var(--main-color);
    box-shadow: 2px 2px 20px var(--shadow-color);
    text-align: center;
    color: var(--text-color);
}

.maintenance__content .maintenance__card .maintenance__title,
.maintenance__content .maintenance__card .maintenance__subtitle {
    margin-bottom: 15px;
    color: var(--main-color);
}

.maintenance__content .maintenance__card .maintenance__text {
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 500;
}

.maintenance__content .maintenance__card:nth-child(2) {
    background: linear-gradient(135deg, #a2a2a2, var(--background-color));
    border-left: 5px solid var(--main-color);
    border-right: 0px solid transparent;
}

/*---------- MAINTENANCE - info ----------*/
.maintenance__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5%;
    width: 50%;
    height: 100%;
    gap: 2%;
}

.maintenance__info .maintenance__tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 40px;
    background-color: #0000005d;
    box-shadow: 2px 2px 2px var(--shadow-color);
}

.maintenance__info .maintenance__tabs .maintenance__tab-btn {
    color: var(--text-color);
    background-color: var(--background-color);
    width: 100%;
    height: 100%;
    box-shadow: inset 2px 2px 2px var(--shadow-color);
    font-weight: 200;
    cursor: pointer;
}

.maintenance__info .maintenance__tabs .maintenance__tab-btn.active {
    background-color: var(--second-color);
    color: #ffffff;
    border-bottom: 2px solid var(--main-color);
}

.maintenance__tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--second-color);
    border-radius: 10px;
}

.maintenance__tab-content.maintenance__tab-content--current {
    display: flex;
    overflow-y: auto;
}

.maintenance__tab-content.maintenance__tab-content--history {
    display: none;
    overflow-y: auto;
}

/*---------- SPEEDTEST ----------*/
.speedtest-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1800px;
    height: 1000px;
    background: linear-gradient(to right, var(--background-color) 20%, var(--main-color) 400%);
}

.speedtest__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 20%;
    gap: 20px;
    line-height: 1.5;
    padding-top: 70px;
}

.speedtest__header .speedtest__title {
    color: var(--main-color);
    margin-left: auto;
}

.speedtest__header .speedtest__description {
    width: 80%;
    margin-left: auto;
    font-weight: 400;
    text-align: end;
}

.speedtest__container {
    display: flex;
    flex-direction: row;
    width: 80%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.speedtest__interface {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    gap: 50px;
    height: 100%;
}

.speedtest__display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    background-color: transparent;
    border: 10px solid var(--main-color);
    border-radius: 50%;
    box-shadow: inset 0px 0px 20px var(--shadow-color);
}

.speedtest__buttons {
    height: 100px;
}

.speedtest__button--start {
    display: inline-block;
    margin: 15px;
    padding: 15px 30px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--main-color);
    background: transparent;
    cursor: pointer;
    transition: ease-out 0.5s;
    border: 2px solid var(--main-color);
    border-radius: 10px;
}

.speedtest__button--start:hover {
    color: white;
    box-shadow: inset 0 -100px 0 0 var(--main-color);
}

.speedtest__button--start:active {
    transform: scale(0.95);
}

.speedtest__button--reset {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    color: white;
    font-family: sans-serif;
    font-weight: 600;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0px 0px 0px 4px var(--shadow-color);
}

.speedtest__button--reset .icon {
    font-size: 20px;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.speedtest__button--reset .speedtest__button-text {
    position: absolute;
    opacity: 0;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    transform: scale(0.9);
}

.speedtest__button--reset:hover {
    width: 120px;
    border-radius: 40px;
    background-color: var(--main-color);
    justify-content: center;
}

.speedtest__button--reset:hover .icon {
    transform: rotate(360deg);
    opacity: 0;
}

.speedtest__button--reset:hover .speedtest__button-text {
    opacity: 1;
    transform: scale(1);
}

/*---------- SPEEDTEST - info ----------*/
.speedtest__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 100%;
    gap: 10px;
}

.speedtest__checking {
    display: flex;
    padding: 20px;
    border: 1px solid #000000;
    border-radius: 10px;
    margin-bottom: 20%;
}

.speedtest__timer {
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    padding: 20px;
    color: var(--main-color);

}

.speedtest__results {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.speedtest__result {
    width: 200px;
    height: 40px;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 10px;
    background-color: var(--main-color);
    color: #ffffff;
    border-radius: 10px;
}

.speedtest__result.speedtest__result--download {
    background-color: transparent;
    width: 220px;
    height: 50px;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.speedtest__ip {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #000000;
    gap: 20px;
}

/*---------- MAIN-FOOTER ----------*/
.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    flex-direction: row;
    width: 1800px;
    height: auto;
    margin-bottom: 50px;
    padding: 20px 120px;
    box-sizing: border-box;
    gap: 25px;

    background-image: url('../images/footer.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.footer__column,
.footer--social {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer__title,
.social__title {
    padding-bottom: 20px;
    color: var(--main-color);
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-bottom: 2px solid var(--main-color);
    width: 100%;
}

.footer__list,
.social__list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    width: 100%;
    height: 100%;
    padding: 2px;
}

.footer__column--hours .footer__list li span {
    display: inline-block;
    width: 100px;
    min-width: 24px;
    color: var(--main-color);
    font-size: 16px;
    margin-right: 10px;
    font-weight: 100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__column--service .footer__list li i {
    min-width: 24px;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__list li {
    line-height: 2;
}

.footer__list li a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__list li a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.social__list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-top: 20px;
    width: 100%;
    height: 100%;
}

.footer--social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    cursor: pointer;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px var(--shadow-color);
    font-size: 24px;
    font-weight: 100;
    color: var(--main-color);
    color: var(--main-color);
}


/*---------- FOOTER ----------*/
footer {
    position: absolute;
    display: flex;
    bottom: 0;
    height: 50px;
    justify-content: center;
    align-items: center;
    background-color: #101010;
    width: 1800px;
    color: #ffffff;
    border-top: 2px solid #4e4e4e;
}

.maintenance__table {
    border-collapse: separate;
    font-size: 14px;
    color: #eee;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    font-weight: 500;
    padding: 10px;
}

/* Header styling */
.maintenance__row--head {
    background: linear-gradient(90deg, #b71c1c, #7f0000);
    color: #fff;
    text-align: left;
    border-radius: 8px;
}

.maintenance__row--head th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.maintenance__row--head th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.maintenance__cell,
.maintenance__cell--head {
    padding: 8px 12px;
    border: none;
    vertical-align: middle;
    transition: background-color 0.3s ease;
    position: relative;
}

/* Data rows with card style */
.maintenance__table tbody tr {
    background: #1e1e1e;
    border-radius: 8px;
    display: table-row;
}

.maintenance__table tbody tr:nth-child(even) {
    background: #2c2c2c;
}

/* Remove borders between cells, use spacing */
.maintenance__table tbody tr td:not(:last-child) {
    border-right: 1px solid #3a3a3a;
}

/* Empty or error messages */
.maintenance__empty,
.maintenance__error {
    color: #b71c1c;
    font-style: italic;
    padding: 1rem 0;
    text-align: center;
}