:root {
    --primary-color: #D9CECF;
    --secondary-color: #f7f1ef;
    --third-color: #D9C6B6;
    --fourth-color: #AFC7B5;
    --fifth-color: #CECCE6;
    --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    --paragraph-text: font-family: "Lato", sans-serif;
}

body {
    background: white;
}

h1 {
    line-height: 100px;
    font-family: "Lato", sans-serif;
    font-size: 60px;
}
h2 {
    font-family: "Lato", sans-serif;
    margin-bottom: 60px;
    font-weight: thin;
}
p {
    font-family: var(--paragraph-text);
    font-size: 18px;
}
footer {
    background-color: #D9CECF;
    text-align: start;
}

.menu {
    margin-left: 20px;
}
.menu-color {
    background-color: var(--primary-color);
}
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    background-image: url("/images/hero.jpg");
    /* background-color: #CED3D7; */
    min-height: 720px;
    margin: 0px 20px 50px 20px;
}
.hero-img {
    width: 400px;
    height: auto;
    margin-left: -100px;
}
.hero-txt h1 {
    margin-bottom: 0.5rem;
}
.buttons {
    display: block;
}
.header {
    padding-top: 70px;
    text-align: center;
    min-height: 120px;
    margin: 0px 20px 50px 20px;
}
.preview {
    text-align: center;
    margin-top: 300px;
    padding-top: 20px;
}
.info-block {
    padding: 30px 50px 30px 50px;
    background-color: var(--secondary-color);
    min-height: 387px;
}
.info-block h2 {
    margin-bottom: 40px;
}
.contact-block {
    padding: 30px 50px 30px 10px;
    background-color: var(--secondary-color);
    min-height: 389px;
}
.theme-change {
    margin: -10px -10px 0px 0px;
    font-size: 34px;
    color: white;
    font-weight: bolder;
}
.theme-change:hover {
    color: black;
    cursor:pointer;
}
.h2-center {
    text-align: center;
}
.contact-options {
    font-family: var(--paragraph-text);
    font-weight: 700;
}

.images {
   border-radius: 10px;
   max-width: 80%;
   box-shadow: var(--box-shadow);
}

.cert-images {
    border-radius: 10px;
    max-width: 100%;
    box-shadow: var(--box-shadow);
 }

.certificate-images1:hover {
    transform: scale(1.7) translate(60px);
    transition: ease-in-out 0.3s;
   
}

.certificate-images2:hover {
    transform: scale(1.7);
    transition: ease-in-out 0.3s;
   
}

.certificate-images3:hover {
    transform: scale(1.7) translate(-60px);
    transition: ease-in-out 0.3s;
   
}
.disappear:hover {
    transform: scale(0);
    transition: ease-in-out 0.3s;
}

.large-images {
   box-shadow: var(--box-shadow);
}

.hover-div-weather {
    position: relative;
  }
  .hover-div-weather img:hover {
    filter: opacity(0.5);
    filter: blur(4px);
    transform: scale(1.2);
    transition: ease-in-out 0.3s;
}
  
  .hover-div-weather::after {
    padding: 15px 5px;
    content: "A world weather app using Javascript, advanced CSS, API integration";
    font-family: var(--paragraph-text);
    position: absolute;
    max-width:70%;
    background-color: white;
    border-radius: 5px;
    top: 60%;
    left: 70px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .hover-div-weather:hover::after {
    visibility: visible;
    opacity: 1;
  }

  .hover-div-clock {
    position: relative;
  }
  .hover-div-clock img:hover {
    filter: opacity(0.5);
    filter: blur(4px);
    transform: scale(1.2);
    transition: ease-in-out 0.3s;
}
  
  .hover-div-clock::after {
    padding: 15px 5px;
    content: "A world clock app using Javascript, advanced CSS, API integration";
    font-family: var(--paragraph-text);
    position: absolute;
    background-color: white;
    border-radius: 5px;
    max-width:70%;
    top: 60%;
    left: 70px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .hover-div-clock:hover::after {
    visibility: visible;
    opacity: 1;
  }

  .hover-div-pasta {
    position: relative;
  }
  .hover-div-pasta img:hover {
    filter: opacity(0.5);
    filter: blur(4px);
    transform: scale(1.2);
    transition: ease-in-out 0.3s;
}
  
  .hover-div-pasta::after {
    padding: 15px 5px;
    content: "A page about pasta using HTML, Javascript and advanced CSS";
    font-family: var(--paragraph-text);
    position: absolute;
    background-color: white;
    border-radius: 5px;
    max-width:70%;
    top: 60%;
    left: 70px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
.hover-div-pasta:hover::after {
    visibility: visible;
    opacity: 1;
  }

.preview-button {
    background-color: var(--fourth-color);
    padding:15px 25px;
    color: white;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    text-align: center;
}
.preview-button:hover {
    background-color: var(--fifth-color);
    color: white;
    font-weight: bold;
}
.back-button {
    text-align: center;
}
.icons {
padding:10px 30px;
color:gray;
font-size: 50px;
}
.credits {
    text-align: center;
    font-size: 11px;
}
.dark {
    background-color: rgb(31, 31, 31);
    color: white;
  }
  .dark .container {
    background: rgb(49, 49, 49);
  }
  .dark a {
    color: red;
  }
  .dark footer {
    background: rgb(49, 49, 49);
  }

@media (max-width:767px) {
    .infoblock a {
        text-align: center;
    }
    .certificate-images1:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;  
    }
    .certificate-images2:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;     
    }  
    .certificate-images3:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;  
    }
    .preview-button {
        text-align: center;
    }
    a {
        text-align: center;
    }
  } 

@media (max-width:576px) {
    h1 {
        font-size: 34px;
        line-height: 1.1;
    }
    h2 {
        font-size: 20px;
        line-height: 1.5;
    }
    h3 {
        margin-top: 5px;
    }
    p {
        font-size: smaller;
    }
    a {
        text-align: center;
    }
    .icons {
        font-size:30px;
    }
    .contact-block {
        padding: 30px 0px 30px 0px;
        background-color: var(--secondary-color);
        min-height: 0px;
    }
    .infoblock a {
        text-align: center;
    }
    .certificate-images1:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;
       
    }
    
    .certificate-images2:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;
       
    }
    .certificate-images3:hover {
        transform: scale(1);
        transition: ease-in-out 0.3s;
       
    }
    .preview-button {
        text-align: center;
    }
  } 