/* Part one start */
.part-one {
    background-image: url('../images/machinery-background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    min-height: 31.25rem;
    position: relative;

    margin-bottom: 5rem;   /* 80px */
}

.part-one h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);

    color: white;
    text-align: center;

    font-family: 'Roboto', sans-serif;
    font-size: 2.625rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
}

@media (min-width: 62.5em) {   /* 1000px */
    .part-one {
        min-height: 25.625rem;
    }
}
/* Part one end */


/* Part two start */
main {
    max-width: 80%;

    display: grid;
    grid-template-columns: 1fr;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8.125rem;   /* 130px */
}

main h3 {
    margin-bottom: 1.875rem;   /* 30px */

    color:#2e2e2e;
    line-height: 2.125rem;   /* 34px */

    font-family: 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
}


main p {
    padding-bottom: 0.625rem;   /* Put 10px of space between the paragraphs */
    
    color:#2e2e2e;
    line-height: 1.5rem;

    font-weight: 300;
}


/* Form start */
label {
    color: grey;
    line-height: 1.5rem;

    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

input,
textarea {
    background-color: #f0f0f0;
    border-color: transparent;
    width: 100%;

    padding: 0.9375rem;
    margin-bottom: 1.25rem;   /* 20px of space between input and next label */
    margin-top: 0.3125rem;   /* 5px of space between label and its input */

    color: black;
    line-height: 1.5rem;

    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;

    resize: none;
}

#message {
    min-height: 15rem;   /* 240px */
}

#submit {
    background-color: rgb(59, 172, 130);
    width: auto;

    padding: 0.3125rem;   /* 5px */

    color: white;
    cursor: pointer;
}

#submit:hover {
    opacity: 0.7;
}

/* Form end */

.main-hr {
    max-width: 80%;

    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 40.625em) {   /* 650px */
    main {
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 5%;
    }
}
/* Part two end */


/* Part three start */
h2 {
    max-width: 80%;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 7.5rem;
    margin-top: 6.25rem;

    color: #2e2e2e;
    text-align: center;

    font-family: 'Roboto', sans-serif;
    font-size: 2.3125rem;
    font-weight: 700;
}

.regions {
    background-color: rgba(20,20,20,0.05);
    max-width: 100%;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    margin-bottom: 6.25rem;
}

.regions div {
    cursor: pointer;
}

.regions h4 {
    padding: 1.25rem 5.625rem;

    line-height: 1.375rem;
    letter-spacing: 0.03125rem;
    text-align: center;

    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.show {
    background-color: white;
    border-left: 0.0625rem solid black;
    border-right: 0.0625rem solid black;
    margin-left:-0.0625rem;
    margin-right: -0.0625rem;
}

.countries1 {
    display: grid;
}

#usCountries {   /* Something overrided the class(.countries2) so use id instead */
    display: none;
}

[class^="countries"] {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 4.375rem;   /* 70px */

    margin-bottom: 4.375rem;   /* 70px */
}

.grid {
    width: 20.525rem;   /* 328.4px */
    height: 28.125rem;   /* 450px */
    
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
    margin-left: auto;
    margin-right: auto;
    border: 0.05rem solid #d3d3d3;

    transition: box-shadow 0.4s;
    cursor: pointer;
}

.countries2 .grid {
    width: 20.625rem;   /* 330px */
    height: 33.125rem;   /* 530px */
}

.grid:hover {
    box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.375rem 1.25rem 0 rgba(0, 0, 0, 0.19);
}

.place {
    height: 7rem;   /* 112px */

    padding-top: 1.375rem;   /* 22px */
}

h5 {
    color: #2e2e2f;
    line-height: 1.375rem;
    overflow-wrap: break-word;

    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
}

h5.country {
    color: rgb(0,167,107);
}

.place .seperator-small {  
    background-color: #00a76b;
    width: 1.25rem;   /* 20px */
    height: 0.125rem;   /* 2px */

    margin-bottom: 0.625rem;   /* 10px */
    margin-top: 0.3125rem;   /* 5px */
}

.seperator-big {
    background-color: #d3d3d3;
    height: 0.0625rem;
    
    bottom: 0%;
    margin-bottom: 0.625rem;
}

.detail-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;

    padding: 0.625rem 0rem;
}

.detail-container img {
    width: 0.8125rem;   /* 13px */
    height: 1.1666875rem;   /* 18.667px */

    margin-left: 0.4375rem;   /* 7px */
    margin-right: 0.4375rem;   /* 7px */

    opacity: 0.8;
    transition: opacity 0.2s;
}

.detail-container:hover img {
    opacity: 0.4;
}

.detail-container p {
    color: #808080;
    line-height: 1.375rem;
    letter-spacing: 0.0625rem;

    font-weight: 400;
}

.grid-hr {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 4.375rem;   /* 70rem */
}

@media (min-width: 50em) {   /* 800px */
    [class^="countries"] {
        grid-template-columns: 20.525rem 20.525rem;
        justify-content: center;
        grid-column-gap: 2rem;
    }
}

@media (min-width: 75em) {   /* 1200px */
    [class^="countries"] {
        grid-template-columns: 20.525rem 20.525rem 20.525rem;
    }
}
/* Part three end */