/* FONTS */

@font-face {
    font-family: OpenSans-Regular;
    src: url(../fonts/OpenSans-Regular.ttf);
}

@font-face {
    font-family: OpenSans-Semibold;
    src: url(../fonts/OpenSans-SemiBold.ttf);
}

/* VARIABLES */
:root {
    --clr-text-body: #131212;
    --clr-text-footer: #999999;
    --clr-accent: #CC1417;
    --clr-accent-hover: #a00512;
    --clr-accent-transparent: hsla(359, 82%, 44%, 0.09);
    --clr-section-bg: #F1F1F1;

/*desktop*/
    --fs-body: 1.6rem;
    --fs-nav: 1.8rem;
    --fs-headline: 2.4rem;
    --fs-footer: 1.1rem;

/*mobile*/
    --fs-body-mobile: 1.3rem;
    --fs-nav-mobile: 1.4rem;
    --fs-headline-mobile: 1.8rem;
    --fs-footer-mobile: 0.8rem;

    --ff-regular: 'OpenSans-Regular', sans-serif;
    --ff-semibold: 'OpenSans-Semibold', sans-serif;
}


/* RESETS */

/*easier calculation of px -> rem */
html {
    font-size: 62.5%;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
    padding: 0;
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-size: var(--fs-body);
  color: var(--clr-text-body);
  font-family: var(--ff-regular);
  display: flex;
  flex-direction: column;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* list style reset */
ul {
    list-style: none;
}

/* remove default styles of a elements */
a {
    text-decoration: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*UTILITY CLASSES*/

.flex-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.margin-bottom-10 {
  margin-bottom: 10rem;
}
.margin-bottom-3 {
  margin-bottom: 3rem;
}

.active {
  color: var(--clr-accent);
}

.semibold {
  font-family: var(--ff-semibold);
}
.accent-color {
  color: var(--clr-accent)
}

/* NAVIGATION */

.navlist {
  display: flex;
  justify-content: center;
  gap: 8rem;  
  padding-block: 3rem;
  max-width: 94.8rem;
  margin-inline: auto;
}

img {
  margin-top: 1.5rem;
}
li > a {
  padding: 0.6rem;
}
li > a:hover {
color: var(--clr-accent)
}

/* MAIN */

h1,h2 {
  font-size: var(--fs-headline);
  color: var(--clr-accent);
}
h3 {
  font-size: var(--fs-body);
  color: var(--clr-accent);
}
section {
  padding-top: 11rem;
  margin-bottom: 6rem;
}

.wrapper {
  max-width: 94.8rem;
  margin-inline: auto;
padding-left: 2.86rem;

}
p {
  max-width: 130rem;
}
p > a {
  color: var(--clr-accent);
  text-decoration: underline;
}
p > a:hover {
  color: var(--clr-accent-hover)
}
a {
  color: var(--clr-text-body);
}


/* FOOTER */
footer, footer > a {
    gap: 4rem;
    color: var(--clr-text-footer);
    font-size: var(--fs-footer);
}
footer {
  flex-grow: 1;
  align-items: end;
  margin-bottom: 2rem;
}

/* BUTTONS */
button {
  padding: 0.7rem;
  width: 11rem;
  color: white;
  background-color: var(--clr-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: var(--clr-accent-hover);
  color: white;
}


/* MEDIA QUERIES */

@media (max-width:927px) {
  .navlist {
    gap: 3rem;
}
}
@media (max-width: 630px) {
  .tools {
    flex-direction: column;
    gap: 10rem;
  }
  .services {
    gap: 5rem;
  }
  .tools, .services, .monitoring {
    margin-top: 5rem;

}}
@media (max-width:560px) {
  .navlist {
    flex-direction: column;
    gap: 
    1.5rem;
    align-items: center;
    font-size: var(--fs-nav-mobile);
}
.monitoring {
  gap:1rem;
}
body {
  font-size: var(--fs-body-mobile);
}
h1,h2 {
  font-size: var(--fs-headline-mobile);
}
footer {
  font-size: var(--fs-footer-mobile);
}

}
@media (max-width: 440px) {
  .monitoring {
    flex-direction: column;
  }
  .margin-bottom-10 {
    margin-bottom: 5rem;
  }
  .margin-bottom-3 {
    margin-bottom: 1rem;
  }
  td {
    padding: .5rem 8rem .5rem 2rem;
}}