@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600&display=swap');

/* Global */
:root {
    --primary-color: #3498ff;
}

html {
    direction: rtl;
    font-size: 62.5%;
    position: absolute;
    min-width: 100vw;
}

body {
    position: absolute;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#image-section, main {
    height: 100%;
    flex: 1;
}


/* image section */
#image-section {
    background-color: #F0F0F0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-section img {
    position: relative;
    width: 90%;
}


/* main section */
main {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

main .info-item {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

main #hebrew-info {
    font-family: Rubik;
}

main #english-info {
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1;
}



/* utilities */
.info-item h1 {
    font-size: 6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-item h2 {
    font-size: 3.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.info-item h3 {
    font-size: 2.6rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    margin-top: 4rem;
    text-decoration: none;
    font-size: 3rem;
    color: white;
    padding: 1rem;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: 200ms;
}

.btn:hover {
    filter: brightness(1.3);
}

.btn:active {
    transform: scale(0.98);
}



/* media queries */
@media (max-width: 1150px) {
    .info-item h1 {
        font-size: 5rem;
        margin-bottom: 1.3rem;
    }
    
    .info-item h2 {
        font-size: 3rem;
        margin-bottom: 0.4rem;
    }
    
    .info-item h3 {
        font-size: 2rem;
        font-weight: 400;
    }
}

@media (max-width: 900px) {
    body {
        position: relative;
        height: auto;
        width: 100%;
        display: block;
    }

    #image-section, main {
        height: auto;
    }

    #image-section {
        display: block;
        text-align: center;
        width: 100%;
        height: 500px;
    }

    #image-section img {
        width: auto;
        height: 90%;
    }

    .info-item:first-child {
        margin-bottom: 6rem;
    }

    
} 

@media (max-width: 575px) {
  #english-info h1 {
    font-size: 4.5rem;
  }

  #english-info h2 {
    font-size: 2.6rem;
  }

  #english-info h3 {
    font-size: 1.8rem;
  }
}