/*THIS IS FOR THE CONTACT PAGE*/
.fading_paragraph
{
    position: relative;
    word-wrap: break-word;
    text-align: left;
    padding: 1%;
    width: 96%;
    border: groove 0.5vw rgba(0,0,0,0.1);
    border-radius: 5vw;
    background-color: var(--header-footer-color);
    background-image: url("../images/contact_message_texture.jpg");
    background-blend-mode: overlay;
    background-position: center;
    background-size: var(--header-footer-background-size);
    background-repeat: repeat;
    
    /*The following will ensure that the width of the element will not grow with the added border-size.
    So the border will be within the defined element width.
    */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

.fading_paragraph .paragraph{

    position: relative;
    margin: 2% auto;
    padding:0%;
    width: 80%;
    height: auto;
    border: none 0px black;

    font: var(--paragraph-font);
    line-height: 2.3rem;
    border: none 1px red;
    
    /*The following will ensure that the width of the element will not grow with the added border-size.
    So the border will be within the defined element width.
    */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

/*if the text is too short the parent will parent to contain the floated image.*/
.fading_paragraph .paragraph::after {
  content: "";
  display: block;
  clear: both;
}

.fading_paragraph span{
    display: block;        /* makes it behave like its own line */
    margin-bottom: 15px;
}

.centered_span{
    text-align: center;
}

#contact_logo_img {
    position: relative;
    float: left;
    border: groove 0.5vw rgba(0,0,0,0.1);
    margin: 0%;
    margin-right: 1%;
    width: 200px;
    max-width: 100%;
}

@media (max-width: 768px) 
{
    #contact_logo_img
    {
        width: 170px;
    }
    
    .fading_paragraph .paragraph{
        line-height: 1.9rem;
    }
    
}

@media (max-width: 480px) 
{
    #contact_logo_img
    {
        width: 150px;
    }
    
    .fading_paragraph .paragraph{
        line-height: 1.7rem;
    }
}

#contact_details{
    position: relative;
    display: flex;
    flex-wrap: wrap; /*this wrap will ensure the elements are displayed one on top of the other in case the viewport gets smaller*/
    
    word-wrap: break-word;
    
    width:98%;
    margin: 1%;
    padding: 0%;
    min-height: 32vw;
    border: groove 0.5vw rgba(0,0,0,0.1);
    /*background-image: linear-gradient(to left, white, #ffeecc);*/
    background-color: rgba(255,255,255,0.8);
    background-image: url("../images/contact_form_texture.jpg");
    background-blend-mode: overlay; /* Blend the image and color */
    background-repeat: repeat;
    background-position: center;
    background-size: 600px;
    border-radius: 5px;
    border-collapse: separate;
}

#contact_details #contact_form, #contact_details #contact_info
{
    position: relative;
    border: solid 2px rgba(0, 120, 0, 0.2);
    border-radius: 15px;
    margin: 0.5% auto;
    padding: 30px;
    vertical-align: top;
    display: block;
    /*The following will ensure that the width of the element will not grow with the added border-size.
    So the border will be within the defined element width.
    */
    
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

#contact_details #contact_form
{
    width: 68%;
    font-family: 'Arial', sans-serif;
    color: #333333;
}


#contact_details #contact_info
{
    position: relative;

    width: 28%;

    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    /*The following will ensure that the width of the element will not grow with the added border-size.
    So the border will be within the defined element width.
    */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

/* Form Heading */
#contact_form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: rgba(0,100,0,0.7) !important;
}

/* Labels */
#contact_form label {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Inputs & Textarea */
#contact_form input, #contact_form textarea
{
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #cccccc;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    
    /*The following will ensure that the width of the element will not grow with the added border-size.
    So the border will be within the defined element width.
    */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

/* Focus effect */
#contact_form input:focus, #contact_form textarea:focus
{
    border-color: #00aa00;
    box-shadow: 0 0 5px rgba(170,0,0,0.4);
}

/* Submit Button */
#contact_form button
{
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: rgba(0,100,0,0.7);
    color: #ffffff;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#contact_form button:hover
{
    background-color: rgba(0,100,0,0.9);
    transform: translateY(-2px);
}

/* Log message */
#contact_form .log-message {
    margin-top: 15px;
    font-size: 0.95em;
    text-align: center;
}

/* Responsive for mobile */
@media (max-width: 768px)
{
    #contact_details
    {
        flex-direction: column; /* stack vertically */
    }

    #contact_details #contact_form, #contact_details #contact_info
    {
        width: 100%; /* full width */
    }
}

/*========================================================================*/
#contact_details #clock
{
    position: relative;
    width: 97%;
    margin:0%;
    height:4vw;
    padding-left: 2%;
    padding-top: 2vw;
    text-align: left;
    font-family: FjallaOne;
    font-size:15px;
    text-decoration:none;
    color:var(--darkred-color);
    letter-spacing: 1px;
    background-color: transparent;
    text-shadow: 0.1vw 0.1vw pink;
    vertical-align: bottom;
}

#contact_info p{
    width: 100%;
    font: var(paragraph-font);
    border: none 0px black;
    padding: 5px;
    margin: 4% 2%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#contact_info p .value{
    color: var(--darkbrown-color);
    font-weight: bold;
}

#contact_info a{
    text-decoration: none;
    font-weight: bold;
    word-wrap: break-word;
}

#contact_info a:hover{
    color: red;
}

#contact_info a:selected{
    color:green;
}

#contact_info img{
    width: 5vw;
}

#contact_info audio{
    position: relative;
    margin: 0% 5%;
    margin-top: 2%;
    width: 300px;
    max-width: 90%;
    height: 10px;
    max-height: 100%; /*This will forbid the element to overpass the bounderies of viewport.*/
    border: solid 1px black;
    border-radius: 10px;
    padding: 0.2vw;
}
