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

/* Container */
.container {
    width: 80%;
    height: 100%;
    margin: 0 auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px;
}

header {
    background-color: #7da0ca;

    max-height: 12vh;
    height: 7vh;
}


main {
    min-height: 86vh;
    background-color: #7da0ca33;
}

footer {
    height: 7vh;
    background-color: #6b8eb9;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    font-family: cursive;
}

.form {
    display: grid;
    grid-template-columns: 3fr auto;
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 0px;
    width: 100%;
    margin: 25px;
    padding: 12px;
    box-shadow: inset 0 0 0px 0px, 0 0 13px 2px;
    border-radius: 600px;
    background-color: #7da0ca;
}

.input {
    grid-area: 2 / 1 / 3 / 2;
    height: 35px;
    border-radius: 250px;
    padding-left: 15px;
    outline: none;
    border: 2px solid #aab;
    box-shadow: 0 0 6px 0px #000000;
    font-size: 16px;
}

.btn {
    color: white;
    font-weight: bold;
    max-width: 140px;
    grid-area: 2 / 2 / 3 / 3;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgb(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #0096c7, #0077b6);
    transition: all 0.1s ease-in-out;
}

.btn:hover {
    background: linear-gradient(145deg, #00b4d8, #0096c7);
}

.btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) inset;
}

form {
    margin: 25px;
    margin-top: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

/* Result */
.result {
    margin: 25px;
    padding: 20px;
    background-color: #6490c59e;
    width: 100%;
    height: auto;
    box-shadow: inset 0 0 0px 0px, 0 0 13px 2px;
    border-radius: 45px;

    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

table {
    border-collapse: collapse;
    width: auto;
    max-width: 90%;
    margin: 20px auto;
    direction: ltr;
    -webkit-animation: opacity 1s forwards;
            animation: opacity 1s forwards;
}

@-webkit-keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

td {
    border: 1px solid #000;
    padding: 10px;
}

td.label {
    background-color: #f2f2f2;
    font-weight: bold;
    width: auto;
    text-align: center;
}

td.value {
    width: auto;
    text-align: center;
}

.facebook-link {
  text-decoration: none;
  display: inline-block;
}

.facebook-box {
  background-color: #1877f2; /* لون فيسبوك */
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  margin:  10px 25px 25px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.facebook-box:hover {
  background-color: #155db2; /* لون أغمق عند الـ hover */
  transform: translateY(-2px); /* حركة بسيطة عند المرور */
  cursor: pointer;
}

.facebook-icon {
  width: 24px;
  height: 24px;
}

.facebook-text {
  font-size: 16px;
  font-weight: bold;
}














































/* ==================================================================== */
/* media and screens */
/* Container */
@media (max-width : 426px) {
    .container {
        width: 100%;
    }

}


/* form */
@media (max-width : 426px) {
    .btn {
        width: 85px;
    }

    td {
        font-size: 15px;
    }
}

@media (min-width : 426px) {
    .btn {
        width: 100px;
    }

}

@media (max-width : 500px) {
    .input {
        font-size: 14px;
    }
}

/* Rotation */
@media (max-height : 425px) {
    header {
        height: 12vh;
    }

    footer {
        height: 12vh;
    }
}